From 6490b99fd613dc32ae51cc14c3482314ca4a7ec2 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 16 Nov 2024 18:18:30 +0100 Subject: [PATCH] UPDATE --- routes/game.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routes/game.js b/routes/game.js index 4861d26..2bd1263 100644 --- a/routes/game.js +++ b/routes/game.js @@ -27,31 +27,37 @@ router.post('/api/setup-game', is_authenticated, async (req, res) => { if (game == "1") { // Competitive Short await rcon.execute_command(server_id, `game_type 0`); await rcon.execute_command(server_id, `game_mode 1`); + await rcon.execute_command(server_id, `sv_skirmish_id 0`); execute_cfg_on_server(server_id, './cfg/live_competitive_16.cfg'); await rcon.execute_command(server_id, `mp_warmup_pausetimer 1`); } else if (game == "2") { // Competitive Long await rcon.execute_command(server_id, `game_type 0`); await rcon.execute_command(server_id, `game_mode 1`); + await rcon.execute_command(server_id, `sv_skirmish_id 0`); execute_cfg_on_server(server_id, './cfg/live_competitive_24.cfg'); await rcon.execute_command(server_id, `mp_warmup_pausetimer 1`); } else if (game == "3") { // Casual Short await rcon.execute_command(server_id, `game_type 0`); await rcon.execute_command(server_id, `game_mode 0`); + await rcon.execute_command(server_id, `sv_skirmish_id 0`); execute_cfg_on_server(server_id, './cfg/live_casual_16.cfg'); await rcon.execute_command(server_id, `mp_warmup_pausetimer 1`); } else if (game == "4") { // Casual Long await rcon.execute_command(server_id, `game_type 0`); await rcon.execute_command(server_id, `game_mode 0`); + await rcon.execute_command(server_id, `sv_skirmish_id 0`); execute_cfg_on_server(server_id, './cfg/live_casual_24.cfg'); await rcon.execute_command(server_id, `mp_warmup_pausetimer 1`); } else if (game == "5") { // Wingman await rcon.execute_command(server_id, `game_type 0`); await rcon.execute_command(server_id, `game_mode 2`); + await rcon.execute_command(server_id, `sv_skirmish_id 0`); execute_cfg_on_server(server_id, './cfg/live_wingman.cfg'); await rcon.execute_command(server_id, `mp_warmup_pausetimer 1`); } else if (game == "6") { // Arms race await rcon.execute_command(server_id, `game_type 1`); await rcon.execute_command(server_id, `game_mode 0`); + await rcon.execute_command(server_id, `sv_skirmish_id 10`); execute_cfg_on_server(server_id, './cfg/live_arms_race.cfg'); setTimeout(() => { rcon.execute_command(server_id, `mp_restartgame 1`);