diff --git a/cfg/live_arms_race.cfg b/cfg/live_arms_race.cfg index a1d8791..32af303 100644 --- a/cfg/live_arms_race.cfg +++ b/cfg/live_arms_race.cfg @@ -40,7 +40,7 @@ mp_buytime 0 mp_ct_default_melee weapon_knife mp_ct_default_primary "" mp_ct_default_secondary "" -mp_death_drop_defuser 0 +mp_death_drop_defuser 0 mp_death_drop_grenade 0 // 0=none, 1=best, 2=current or best mp_death_drop_gun 0 // 0=none, 1=best, 2=current or best mp_default_team_winner_no_objective -1 // 2 == CTs, 3 == Ts @@ -49,7 +49,7 @@ mp_display_kill_assists 0 mp_endmatch_votenextmap 0 mp_forcecamera 0 // Set to 1 for team only spectating mp_force_pick_time 15 -mp_free_armor 2 +mp_free_armor 2 mp_freezetime 0 mp_friendlyfire 1 mp_halftime 0 @@ -85,6 +85,7 @@ mp_weapons_glow_on_ground 0 mp_win_panel_display_time 1 r_decals_overide_fadestarttime_params 20 spec_freeze_time 2 +sv_skirmish_id 10 sv_allow_votes 0 // Voting allowed in this mode sv_deadtalk 1 sv_disconnected_players_cleanup_delay 15 diff --git a/cfg/live_casual_16.cfg b/cfg/live_casual_16.cfg index 68b31c4..ff0163a 100644 --- a/cfg/live_casual_16.cfg +++ b/cfg/live_casual_16.cfg @@ -99,7 +99,7 @@ spec_freeze_panel_extended_time 0 spec_freeze_time 2 spec_freeze_time_lock 2 spec_replay_enable 0 -sv_allow_votes 1 +sv_allow_votes 0 sv_auto_full_alltalk_during_warmup_half_end 0 sv_coaching_enabled 1 sv_competitive_official_5v5 1 @@ -114,4 +114,4 @@ sv_talk_enemy_dead 0 sv_talk_enemy_living 0 sv_voiceenable 1 sv_vote_command_delay 0 -tv_relayvoice 1 \ No newline at end of file +tv_relayvoice 1 diff --git a/cfg/live_casual_24.cfg b/cfg/live_casual_24.cfg index 77954e0..2f88125 100644 --- a/cfg/live_casual_24.cfg +++ b/cfg/live_casual_24.cfg @@ -99,7 +99,7 @@ spec_freeze_panel_extended_time 0 spec_freeze_time 2 spec_freeze_time_lock 2 spec_replay_enable 0 -sv_allow_votes 1 +sv_allow_votes 0 sv_auto_full_alltalk_during_warmup_half_end 0 sv_coaching_enabled 1 sv_competitive_official_5v5 1 @@ -114,4 +114,4 @@ sv_talk_enemy_dead 0 sv_talk_enemy_living 0 sv_voiceenable 1 sv_vote_command_delay 0 -tv_relayvoice 1 \ No newline at end of file +tv_relayvoice 1 diff --git a/cfg/live_competitive_16.cfg b/cfg/live_competitive_16.cfg index 68b31c4..ff0163a 100644 --- a/cfg/live_competitive_16.cfg +++ b/cfg/live_competitive_16.cfg @@ -99,7 +99,7 @@ spec_freeze_panel_extended_time 0 spec_freeze_time 2 spec_freeze_time_lock 2 spec_replay_enable 0 -sv_allow_votes 1 +sv_allow_votes 0 sv_auto_full_alltalk_during_warmup_half_end 0 sv_coaching_enabled 1 sv_competitive_official_5v5 1 @@ -114,4 +114,4 @@ sv_talk_enemy_dead 0 sv_talk_enemy_living 0 sv_voiceenable 1 sv_vote_command_delay 0 -tv_relayvoice 1 \ No newline at end of file +tv_relayvoice 1 diff --git a/cfg/live_competitive_24.cfg b/cfg/live_competitive_24.cfg index 77954e0..2f88125 100644 --- a/cfg/live_competitive_24.cfg +++ b/cfg/live_competitive_24.cfg @@ -99,7 +99,7 @@ spec_freeze_panel_extended_time 0 spec_freeze_time 2 spec_freeze_time_lock 2 spec_replay_enable 0 -sv_allow_votes 1 +sv_allow_votes 0 sv_auto_full_alltalk_during_warmup_half_end 0 sv_coaching_enabled 1 sv_competitive_official_5v5 1 @@ -114,4 +114,4 @@ sv_talk_enemy_dead 0 sv_talk_enemy_living 0 sv_voiceenable 1 sv_vote_command_delay 0 -tv_relayvoice 1 \ No newline at end of file +tv_relayvoice 1 diff --git a/cfg/live_prophunt.cfg b/cfg/live_prophunt.cfg index 2655f6c..3913169 100644 --- a/cfg/live_prophunt.cfg +++ b/cfg/live_prophunt.cfg @@ -99,7 +99,8 @@ spec_freeze_panel_extended_time 0 spec_freeze_time 2 spec_freeze_time_lock 2 spec_replay_enable 0 -sv_allow_votes 1 +sv_skirmish_id 0 +sv_allow_votes 0 sv_auto_full_alltalk_during_warmup_half_end 0 sv_coaching_enabled 1 sv_competitive_official_5v5 1 @@ -114,4 +115,4 @@ sv_talk_enemy_dead 0 sv_talk_enemy_living 0 sv_voiceenable 1 sv_vote_command_delay 0 -tv_relayvoice 1 \ No newline at end of file +tv_relayvoice 1 diff --git a/cfg/live_rush.cfg b/cfg/live_rush.cfg new file mode 100644 index 0000000..f197de7 --- /dev/null +++ b/cfg/live_rush.cfg @@ -0,0 +1,125 @@ +bot_autodifficulty_threshold_high 0.0 // Value between -20.0 and 20.0 (Amount above avg human contribution score, above which a bot should lower its difficulty) +bot_autodifficulty_threshold_low -2.0 // Value between -20.0 and 20.0 (Amount below avg human contribution score, below which a bot should raise its difficulty) +bot_chatter normal +bot_defer_to_human_goals 1 +bot_defer_to_human_items 1 +bot_difficulty 2 +bot_quota 2 +bot_quota_mode fill +cash_player_bomb_defused 0 +cash_player_bomb_planted 0 +cash_player_damage_hostage 0 +cash_player_interact_with_hostage 0 +cash_player_killed_enemy_default 300 +cash_player_killed_enemy_factor 1 +cash_player_killed_hostage 0 +cash_player_killed_teammate -300 +cash_player_rescued_hostage 0 +cash_team_elimination_bomb_map 0 +cash_team_elimination_hostage_map_t 2500 +cash_team_elimination_hostage_map_ct 2500 +cash_team_hostage_alive 0 +cash_team_hostage_interaction 600 +cash_team_loser_bonus 2100 +cash_team_bonus_shorthanded 0 +mp_starting_losses 0 +cash_team_per_dead_enemy 50 +cash_team_loser_bonus_consecutive_rounds 750 +cash_team_planted_bomb_but_defused 0 +cash_team_rescued_hostage 0 +cash_team_terrorist_win_bomb 0 +cash_team_win_by_defusing_bomb 0 +cash_team_win_by_hostage_rescue 2500 +cash_team_win_by_time_running_out_hostage 2500 +cash_team_win_by_time_running_out_bomb 0 +contributionscore_kill_reqs 1 // all about pew-pew and bullets +contributionscore_assist_reqs 1 // all about pew-pew and bullets +ff_damage_reduction_bullets 0.33 +ff_damage_reduction_grenade 0.85 +ff_damage_reduction_grenade_self 1 +ff_damage_reduction_other 0.4 +mp_afterroundmoney 0 +mp_buytime 15 +mp_buy_anywhere 0 +mp_buy_during_immunity 0 +mp_death_drop_defuser 0 +mp_death_drop_grenade 2 // 0=none, 1=best, 2=current or best +mp_death_drop_gun 1 // 0=none, 1=best, 2=current or best +mp_defuser_allocation 0 +mp_force_pick_time 15 +mp_forcecamera 1 // Set to 1 for team only spectating. +mp_free_armor 0 +mp_freezetime 11 +mp_spawnprotectiontime 0 +mp_friendlyfire 1 +mp_win_panel_display_time 3 +mp_respawn_immunitytime -1 // disabling immunity in warmup too for 1v1 fights +mp_halftime 0 +mp_match_can_clinch 1 // 0=No mercy rule, 1=team can clinch match win early if they win > 1/2 total rounds +mp_maxmoney 10000 +mp_maxrounds 15 +//mp_molotovusedelay 0 +mp_playercashawards 1 +mp_roundtime 0.67 +mp_roundtime_hostage 0.67 +mp_roundtime_defuse 0.67 +mp_round_restart_delay 5 +mp_solid_teammates 1 +mp_startmoney 800 +mp_teamcashawards 1 +mp_timelimit 0 +mp_technical_timeout_per_team 1 +mp_technical_timeout_duration_s 30 +mp_warmuptime 120 +mp_warmuptime_all_players_connected 6 +mp_weapons_allow_zeus 5 +//spec_freeze_panel_extended_time 0 +spec_freeze_time 2.0 +sv_allow_votes 1 // Voting allowed in this mode +sv_talk_enemy_living 0 +sv_talk_enemy_dead 0 +sv_auto_full_alltalk_during_warmup_half_end 0 +sv_deadtalk 1 +sv_ignoregrenaderadio 0 +sv_grenade_trajectory_time_spectator 4 +tv_delay 105 +mp_randomspawn 0 +mp_randomspawn_los 0 +sv_allow_approximate_spawns 1 +sv_spawn_random_nudge_offset 16 +sv_infinite_ammo 0 +ammo_grenade_limit_flashbang 1 +ammo_grenade_limit_total 1 +// +mp_weapons_allow_map_placed 1 +mp_weapons_glow_on_ground 0 +mp_display_kill_assists 1 +mp_respawn_on_death_t 0 +mp_respawn_on_death_ct 0 +mp_ct_default_melee weapon_knife +mp_ct_default_secondary weapon_hkp2000 +mp_ct_default_primary "" +mp_t_default_melee weapon_knife +mp_t_default_secondary weapon_glock +mp_t_default_primary "" +mp_default_team_winner_no_objective -1 // 2 == CTs, 3 == Ts + +//sv_occlude_players 1 +//occlusion_test_async 0 + +mp_bot_ai_bt "scripts/ai/rush/bt_default.kv3" + +bot_path_require_reachable_goal 0 + +bot_eco_limit 0 + +spec_replay_enable 0 + +sv_gameinstructor_enable 0 +mp_promoted_item_enabled 0 +sv_minimum_desired_chicken_count 0 + +sv_allow_annotations_access_level 0 + +mp_team_intro_type rush +mp_team_intro_time 9 diff --git a/cfg/live_wingman.cfg b/cfg/live_wingman.cfg index 0435a4f..52d9a1d 100644 --- a/cfg/live_wingman.cfg +++ b/cfg/live_wingman.cfg @@ -108,4 +108,4 @@ sv_occlude_players 1 sv_talk_enemy_dead 0 sv_talk_enemy_living 0 sv_voiceenable 1 -tv_relayvoice 0 \ No newline at end of file +tv_relayvoice 0 diff --git a/public/js/console.js b/public/js/console.js index b93e58e..db4d335 100644 --- a/public/js/console.js +++ b/public/js/console.js @@ -236,9 +236,13 @@ $(document).ready(function () { //map_list.push("cs_agency"); map_list.push("cs_italy"); map_list.push("cs_office"); + // CS maps (community) + map_list.push("cs_shelter"); // 3737179295 // DE maps (community) //map_list.push("de_basalt"); + map_list.push("de_boulder"); // 3663186989 map_list.push("de_edin"); // 3328169568 + map_list.push("de_fachwerk"); // 3442040035 map_list.push("de_grail"); // 3246527710 //map_list.push("de_golden"); //map_list.push("de_jura"); @@ -251,6 +255,7 @@ $(document).ready(function () { map_list.push("de_ancient_night"); map_list.push("de_anubis"); map_list.push("de_cache"); + map_list.push("de_cbble"); map_list.push("de_dust2"); map_list.push("de_inferno"); map_list.push("de_mirage"); @@ -277,6 +282,7 @@ $(document).ready(function () { } else if (e.value == "5") { // WINGMAN // DE maps (valve) + map_list.push("de_cbble"); map_list.push("de_inferno"); map_list.push("de_nuke"); map_list.push("de_overpass"); @@ -309,6 +315,9 @@ $(document).ready(function () { map_list.push("de_inferno_prophunt"); // 3608612434 map_list.push("cs_office_prophunt"); // 3644811896 map_list.push("de_mirage_prophunt"); // 3615968422 + } else if (e.value == "8") { + // rush + map_list.push("rush_001"); } $("#map").empty(); diff --git a/routes/game.js b/routes/game.js index 51d0316..973774a 100644 --- a/routes/game.js +++ b/routes/game.js @@ -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)) {