Compare commits

...

11 Commits

Author SHA1 Message Date
shoopea
d96ae4a01b re-add community dogtown/brewery + fix transit 2025-11-10 20:51:55 +01:00
shoopea
7b0324336f update palacio/rooftop/ancient_night 2025-10-20 21:03:40 +02:00
shoopea
8950cbaa58 missing de_underpass 2025-09-22 19:59:46 +02:00
shoopea
afc5d44f26 add de_maginot+de_underpass 2025-09-22 19:56:38 +02:00
shoopea
77c6d6ca16 remove end of line return 2025-06-16 20:01:03 +02:00
shoopea
80c617615f update 2025-05-10 11:39:58 +02:00
shoopea
2a79226d47 test workshop maps 2025-05-10 11:35:54 +02:00
shoopea
96ab448550 update season03 2025-05-10 11:03:22 +02:00
shoopea
a126aaf6b4 add wingman maps to normal pool 2024-12-09 20:51:33 +01:00
shoopea
48d0d5e573 bot add 2024-11-24 10:40:04 +01:00
shoopea
8d2c5b498d add bots 2024-11-24 10:39:48 +01:00
6 changed files with 79 additions and 35 deletions

View File

@@ -1,8 +1,7 @@
ammo_grenade_limit_flashbang 1
ammo_grenade_limit_total 3
bot_kick
bot_quota 2
bot_quota_mode normal
bot_quota 10
bot_quota_mode fill
cash_player_bomb_defused 0
cash_player_bomb_planted 0
cash_player_damage_hostage 0
@@ -33,6 +32,7 @@ ff_damage_reduction_other 0.0
healthshot_health 50
healthshot_healthboost_time 1
mp_afterroundmoney 0
mp_bot_ai_bt "scripts/ai/armsrace/bt_default.kv3"
mp_buy_allow_grenades 0
mp_buy_anywhere 0
mp_buy_during_immunity 0

View File

@@ -43,4 +43,4 @@ sv_infinite_ammo 0
sv_mute_players_with_social_penalties 0
sv_showimpacts 0
sv_voiceenable 1
tv_relayvoice 1
tv_relayvoice 1

View File

@@ -43,4 +43,4 @@ sv_infinite_ammo 0
sv_mute_players_with_social_penalties 0
sv_showimpacts 0
sv_voiceenable 1
tv_relayvoice 1
tv_relayvoice 1

View File

@@ -220,35 +220,62 @@ $(document).ready(function () {
$('#game').on('change', function () {
var map_list = [];
var e = document.getElementById("game");
if (e.value == "1" || e.value == "2" || e.value == "3" || e.value == "4") { // casual or competitive
if (e.value == "1" || e.value == "2" || e.value == "3" || e.value == "4") { // CASUAL OR COMPETITIVE
// CS maps
map_list.push("cs_agency");
map_list.push("cs_italy");
map_list.push("cs_office");
map_list.push("de_ancient");
map_list.push("de_anubis");
map_list.push("de_basalt");
map_list.push("de_dust2");
map_list.push("de_edin");
map_list.push("de_inferno");
// DE maps (community)
//map_list.push("de_basalt");
//map_list.push("de_edin");
//map_list.push("de_grail");
map_list.push("de_golden");
//map_list.push("de_jura");
//map_list.push("de_mills");
map_list.push("de_palacio");
//map_list.push("de_thera");
// DE maps (valve)
map_list.push("de_ancient");
map_list.push("de_ancient_night");
map_list.push("de_anubis");
map_list.push("de_dust2");
map_list.push("de_inferno");
map_list.push("de_mirage");
map_list.push("de_nuke");
map_list.push("de_overpass");
map_list.push("de_train");
//map_list.push("de_thera");
map_list.push("de_vertigo");
} else if (e.value == "5") { // wingman
//map_list.push("de_assembly");
// WINGMAN maps
map_list.push("de_assembly"); // 3071005299
map_list.push("de_brewery"); // 2870304806
map_list.push("de_dogtown"); // 3414036782
map_list.push("de_maginot"); // 3195399109
map_list.push("de_memento"); // 3165559377
map_list.push("de_palais"); // 3257582863
map_list.push("de_rooftop");
map_list.push("de_transit");
map_list.push("de_whistle"); // 3308613773
} else if (e.value == "5") { // WINGMAN
// DE maps (valve)
map_list.push("de_inferno");
//map_list.push("de_memento");
map_list.push("de_nuke");
map_list.push("de_palais");
map_list.push("de_overpass");
map_list.push("de_vertigo");
map_list.push("de_whistle");
map_list.push("de_vertigo");
// Community maps
map_list.push("de_assembly"); // 3071005299
map_list.push("de_brewery"); // 2870304806
map_list.push("de_dogtown"); // 3414036782
map_list.push("de_maginot"); // 3195399109
map_list.push("de_memento"); // 3165559377
map_list.push("de_palais"); // 3257582863
map_list.push("de_rooftop");
map_list.push("de_transit");
map_list.push("de_whistle"); // 3308613773
} else if (e.value == "6") { // arms race
map_list.push("ar_baggage");
map_list.push("ar_pool_day");
map_list.push("ar_shoots");
map_list.push("ar_shoots_night");
}
$('#map').empty();

View File

@@ -13,9 +13,35 @@ router.post('/api/setup-game', is_authenticated, async (req, res) => {
const server_id = req.body.server_id;
const team1 = req.body.team1;
const team2 = req.body.team2;
const map = req.body.map;
var map = req.body.map;
const game = req.body.game.toString();
switch(map){
case "de_assembly":
map = 3071005299;
break;
case "de_brewery":
map = 2870304806;
break;
case "de_dogtown":
map = 3414036782;
break;
case "de_memento":
map = 3165559377;
break;
case "de_maginot":
map = 3195399109;
break;
case "de_palais":
map = 3257582863;
break;
case "de_whistle":
map = 3308613773;
break;
default:
map = map;
}
if (team1.trim() != "") {
await rcon.execute_command(server_id, `mp_teamname_1 "${team1}"`);
}
@@ -61,7 +87,11 @@ router.post('/api/setup-game', is_authenticated, async (req, res) => {
execute_cfg_on_server(server_id, './cfg/live_arms_race.cfg');
}
await rcon.execute_command(server_id, `changelevel ${map}`);
if (isNaN(map)) {
await rcon.execute_command(server_id, `changelevel ${map}`);
} else {
await rcon.execute_command(server_id, `host_workshop_map ${map}`);
}
// Adding 1 second delay in executing warmup.cfg to make it effective after map has been changed.
if (game == "1" || game == "3" || game == "5") {

View File

@@ -107,20 +107,7 @@
</div>
<div class="mb-3">
<label for="map" class="form-label">Map:</label>
<select id="map" name="map" class="form-select maps">
<option value="cs_italy">cs_italy</option>
<option value="cs_office">cs_office</option>
<option value="de_ancient">de_ancient</option>
<option value="de_anubis">de_anubis</option>
<option value="de_basalt">de_basalt</option>
<option value="de_dust2">de_dust2</option>
<option value="de_edin">de_edin</option>
<option value="de_inferno">de_inferno</option>
<option value="de_mirage">de_mirage</option>
<option value="de_nuke">de_nuke</option>
<option value="de_overpass">de_overpass</option>
<option value="de_train">de_train</option>
<option value="de_vertigo">de_vertigo</option>
<select id="map" name="map" class="form-select maps">
</select>
</div>
<div class="mb-3">