Compare commits
11 Commits
6becb39a2e
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d96ae4a01b | ||
|
|
7b0324336f | ||
|
|
8950cbaa58 | ||
|
|
afc5d44f26 | ||
|
|
77c6d6ca16 | ||
|
|
80c617615f | ||
|
|
2a79226d47 | ||
|
|
96ab448550 | ||
|
|
a126aaf6b4 | ||
|
|
48d0d5e573 | ||
|
|
8d2c5b498d |
@@ -1,8 +1,7 @@
|
|||||||
ammo_grenade_limit_flashbang 1
|
ammo_grenade_limit_flashbang 1
|
||||||
ammo_grenade_limit_total 3
|
ammo_grenade_limit_total 3
|
||||||
bot_kick
|
bot_quota 10
|
||||||
bot_quota 2
|
bot_quota_mode fill
|
||||||
bot_quota_mode normal
|
|
||||||
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
|
||||||
@@ -33,6 +32,7 @@ ff_damage_reduction_other 0.0
|
|||||||
healthshot_health 50
|
healthshot_health 50
|
||||||
healthshot_healthboost_time 1
|
healthshot_healthboost_time 1
|
||||||
mp_afterroundmoney 0
|
mp_afterroundmoney 0
|
||||||
|
mp_bot_ai_bt "scripts/ai/armsrace/bt_default.kv3"
|
||||||
mp_buy_allow_grenades 0
|
mp_buy_allow_grenades 0
|
||||||
mp_buy_anywhere 0
|
mp_buy_anywhere 0
|
||||||
mp_buy_during_immunity 0
|
mp_buy_during_immunity 0
|
||||||
|
|||||||
@@ -220,35 +220,62 @@ $(document).ready(function () {
|
|||||||
$('#game').on('change', function () {
|
$('#game').on('change', function () {
|
||||||
var map_list = [];
|
var map_list = [];
|
||||||
var e = document.getElementById("game");
|
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_italy");
|
||||||
map_list.push("cs_office");
|
map_list.push("cs_office");
|
||||||
map_list.push("de_ancient");
|
// DE maps (community)
|
||||||
map_list.push("de_anubis");
|
//map_list.push("de_basalt");
|
||||||
map_list.push("de_basalt");
|
//map_list.push("de_edin");
|
||||||
map_list.push("de_dust2");
|
//map_list.push("de_grail");
|
||||||
map_list.push("de_edin");
|
map_list.push("de_golden");
|
||||||
map_list.push("de_inferno");
|
//map_list.push("de_jura");
|
||||||
//map_list.push("de_mills");
|
//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_mirage");
|
||||||
map_list.push("de_nuke");
|
map_list.push("de_nuke");
|
||||||
map_list.push("de_overpass");
|
map_list.push("de_overpass");
|
||||||
map_list.push("de_train");
|
map_list.push("de_train");
|
||||||
//map_list.push("de_thera");
|
|
||||||
map_list.push("de_vertigo");
|
map_list.push("de_vertigo");
|
||||||
} else if (e.value == "5") { // wingman
|
// WINGMAN maps
|
||||||
//map_list.push("de_assembly");
|
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_inferno");
|
||||||
//map_list.push("de_memento");
|
|
||||||
map_list.push("de_nuke");
|
map_list.push("de_nuke");
|
||||||
map_list.push("de_palais");
|
|
||||||
map_list.push("de_overpass");
|
map_list.push("de_overpass");
|
||||||
map_list.push("de_vertigo");
|
map_list.push("de_vertigo");
|
||||||
map_list.push("de_whistle");
|
// 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
|
} else if (e.value == "6") { // arms race
|
||||||
map_list.push("ar_baggage");
|
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");
|
||||||
|
map_list.push("ar_shoots_night");
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#map').empty();
|
$('#map').empty();
|
||||||
|
|||||||
@@ -13,9 +13,35 @@ router.post('/api/setup-game', is_authenticated, async (req, res) => {
|
|||||||
const server_id = req.body.server_id;
|
const server_id = req.body.server_id;
|
||||||
const team1 = req.body.team1;
|
const team1 = req.body.team1;
|
||||||
const team2 = req.body.team2;
|
const team2 = req.body.team2;
|
||||||
const map = req.body.map;
|
var map = req.body.map;
|
||||||
const game = req.body.game.toString();
|
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() != "") {
|
if (team1.trim() != "") {
|
||||||
await rcon.execute_command(server_id, `mp_teamname_1 "${team1}"`);
|
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');
|
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.
|
// Adding 1 second delay in executing warmup.cfg to make it effective after map has been changed.
|
||||||
if (game == "1" || game == "3" || game == "5") {
|
if (game == "1" || game == "3" || game == "5") {
|
||||||
|
|||||||
@@ -108,19 +108,6 @@
|
|||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="map" class="form-label">Map:</label>
|
<label for="map" class="form-label">Map:</label>
|
||||||
<select id="map" name="map" class="form-select maps">
|
<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>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
|
|||||||
Reference in New Issue
Block a user