Add rush and de_cbble

This commit is contained in:
shoopea committed 2026-11-23 17:04:53 +01:00
1 parent 2c929b60fb
commit f610ec25bc
10 files changed
+164 -14

No files matched your search

+15 -1
View File
@@ -6,7 +6,7 @@ const fs = require("fs");
const rcon = require("../modules/rcon");
const is_authenticated = require("../modules/middleware");
const ALLOWED_STEAM_IDS = ["76561198154367261", "76561197961479025"];
const ALLOWED_STEAM_IDS = ["76561198154367261"];
router.post("/api/setup-game", is_authenticated, async (req, res) => {
try {
@@ -20,9 +20,15 @@ router.post("/api/setup-game", is_authenticated, async (req, res) => {
case "cs_office_prophunt":
map = 3644811896;
break;
case "cs_shelter":
map = 3737179295;
break;
case "de_assembly":
map = 3071005299;
break;
case "de_boulder":
map = 3663186989;
break;
case "de_brewery":
map = 2870304806;
break;
@@ -32,6 +38,9 @@ router.post("/api/setup-game", is_authenticated, async (req, res) => {
case "de_edin":
map = 3328169568;
break;
case "de_fachwerk":
map = 3442040035;
break;
case "de_grail":
map = 3246527710;
break;
@@ -127,6 +136,11 @@ 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, `sv_skirmish_id 0`);
execute_cfg_on_server(server_id, "./cfg/live_prophunt.cfg");
} else if (game == "8") {
// Rush
await rcon.execute_command(server_id, `game_type 0`);
await rcon.execute_command(server_id, `game_mode 6`);
execute_cfg_on_server(server_id, "./cfg/live_rush.cfg");
}
if (isNaN(map)) {