update arms race

This commit is contained in:
shoopea 2024-11-16 18:27:47 +01:00
parent 6490b99fd6
commit 347e925af7
3 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,6 @@
ammo_grenade_limit_flashbang 1 ammo_grenade_limit_flashbang 1
ammo_grenade_limit_total 3 ammo_grenade_limit_total 3
bot_quota 0
cash_player_bomb_defused 0 cash_player_bomb_defused 0
cash_player_bomb_planted 0 cash_player_bomb_planted 0
cash_player_damage_hostage 0 cash_player_damage_hostage 0

View File

@ -246,7 +246,7 @@ $(document).ready(function () {
map_list.push("de_vertigo"); map_list.push("de_vertigo");
map_list.push("de_whistle"); map_list.push("de_whistle");
} else if (e.value == "6") { // arms race } else if (e.value == "6") { // arms race
map_list.push("ar_bagage"); map_list.push("ar_baggage");
map_list.push("ar_pool_day"); map_list.push("ar_pool_day");
map_list.push("ar_shoots"); map_list.push("ar_shoots");
} }

View File

@ -59,9 +59,6 @@ router.post('/api/setup-game', is_authenticated, async (req, res) => {
await rcon.execute_command(server_id, `game_mode 0`); await rcon.execute_command(server_id, `game_mode 0`);
await rcon.execute_command(server_id, `sv_skirmish_id 10`); await rcon.execute_command(server_id, `sv_skirmish_id 10`);
execute_cfg_on_server(server_id, './cfg/live_arms_race.cfg'); execute_cfg_on_server(server_id, './cfg/live_arms_race.cfg');
setTimeout(() => {
rcon.execute_command(server_id, `mp_restartgame 1`);
}, 20000)
} }
await rcon.execute_command(server_id, `changelevel ${map}`); await rcon.execute_command(server_id, `changelevel ${map}`);
@ -75,6 +72,10 @@ router.post('/api/setup-game', is_authenticated, async (req, res) => {
setTimeout(() => { setTimeout(() => {
execute_cfg_on_server(server_id, './cfg/warmup_24.cfg'); execute_cfg_on_server(server_id, './cfg/warmup_24.cfg');
}, 1000) }, 1000)
} else if (game == "6") {
setTimeout(() => {
rcon.execute_command(server_id, `mp_restartgame 20`);
}, 1000)
} }
return res.status(200).json({ message: 'Game Created!' }); return res.status(200).json({ message: 'Game Created!' });