diff --git a/cfg/live_workshop.cfg b/cfg/live_workshop.cfg new file mode 100644 index 0000000..70c3427 --- /dev/null +++ b/cfg/live_workshop.cfg @@ -0,0 +1,116 @@ +ammo_grenade_limit_default 1 +ammo_grenade_limit_flashbang 2 +ammo_grenade_limit_total 4 +bot_quota 0 +cash_player_bomb_defused 300 +cash_player_bomb_planted 300 +cash_player_damage_hostage -30 +cash_player_interact_with_hostage 300 +cash_player_killed_enemy_default 300 +cash_player_killed_enemy_factor 1 +cash_player_killed_hostage -1000 +cash_player_killed_teammate -300 +cash_player_rescued_hostage 1000 +cash_team_bonus_shorthanded 1000 +cash_team_elimination_bomb_map 3250 +cash_team_elimination_hostage_map_ct 3000 +cash_team_elimination_hostage_map_t 3000 +cash_team_hostage_alive 0 +cash_team_hostage_interaction 600 +cash_team_loser_bonus 1400 +cash_team_loser_bonus_consecutive_rounds 500 +cash_team_planted_bomb_but_defused 800 +cash_team_rescued_hostage 600 +cash_team_terrorist_win_bomb 3500 +cash_team_win_by_defusing_bomb 3500 +cash_team_win_by_hostage_rescue 2900 +cash_team_win_by_time_running_out_bomb 3250 +cash_team_win_by_time_running_out_hostage 3250 +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_autokick 0 +mp_autoteambalance 0 +mp_backup_restore_load_autopause 1 +mp_backup_round_auto 1 +mp_buy_anywhere 0 +mp_buy_during_immunity 0 +mp_buytime 20 +mp_c4timer 40 +mp_ct_default_melee weapon_knife +mp_ct_default_primary "" +mp_ct_default_secondary weapon_hkp2000 +mp_death_drop_defuser 1 +mp_death_drop_grenade 2 +mp_death_drop_gun 1 +mp_defuser_allocation 0 +mp_display_kill_assists 1 +mp_endmatch_votenextmap 0 +mp_forcecamera 1 +mp_free_armor 0 +mp_freezetime 15 +mp_friendlyfire 1 +mp_give_player_c4 1 +mp_halftime 1 +mp_halftime_duration 15 +mp_halftime_pausetimer 0 +mp_ignore_round_win_conditions 0 +mp_limitteams 0 +mp_match_can_clinch 1 +mp_match_end_restart 1 +mp_maxmoney 16000 +mp_maxrounds 24 +mp_molotovusedelay 0 +mp_overtime_enable 1 +mp_overtime_halftime_pausetimer 0 +mp_overtime_maxrounds 6 +mp_overtime_startmoney 10000 +mp_playercashawards 1 +mp_randomspawn 0 +mp_respawn_immunitytime 0 +mp_respawn_on_death_ct 0 +mp_respawn_on_death_t 0 +mp_round_restart_delay 7 +mp_roundtime 1.92 +mp_roundtime_defuse 1.92 +mp_roundtime_hostage 1.92 +mp_solid_teammates 1 +mp_starting_losses 1 +mp_startmoney 800 +mp_t_default_melee weapon_knife +mp_t_default_primary "" +mp_t_default_secondary weapon_glock +mp_teamcashawards 1 +mp_timelimit 0 +mp_weapons_allow_map_placed 1 +mp_weapons_allow_zeus 1 +mp_weapons_glow_on_ground 0 +mp_win_panel_display_time 3 +occlusion_test_async 0 +spec_freeze_deathanim_time 0 +spec_freeze_panel_extended_time 0 +spec_freeze_time 2 +spec_freeze_time_lock 2 +spec_replay_enable 0 +sv_allow_votes 0 +sv_auto_full_alltalk_during_warmup_half_end 0 +sv_coaching_enabled 1 +sv_competitive_official_5v5 1 +sv_damage_print_enable 0 +sv_deadtalk 1 +sv_hibernate_postgame_delay 300 +sv_holiday_mode 0 +sv_ignoregrenaderadio 0 +sv_infinite_ammo 0 +sv_occlude_players 1 +sv_talk_enemy_dead 0 +sv_talk_enemy_living 0 +sv_voiceenable 1 +tv_relayvoice 0 +mp_warmup_end +mp_restartgame 1 +say Match is live! +say Match is live! +say Match is live! diff --git a/public/js/console.js b/public/js/console.js index 8015657..a5f6965 100644 --- a/public/js/console.js +++ b/public/js/console.js @@ -283,6 +283,9 @@ $(document).ready(function () { map_list.push("ar_pool_day"); map_list.push("ar_shoots"); map_list.push("ar_shoots_night"); + } else if (e.value == "7") { // other + // WORKSHOP + map_list.push("de_inferno_prophunt"); // 3608612434 } $('#map').empty(); diff --git a/routes/game.js b/routes/game.js index 5a37396..b1d9db4 100644 --- a/routes/game.js +++ b/routes/game.js @@ -31,7 +31,10 @@ router.post('/api/setup-game', is_authenticated, async (req, res) => { break; case "de_grail": map = 3246527710; - break; + break; + case "de_inferno_prophunt": + map = 3608612434 + break; case "de_memento": map = 3165559377; break; @@ -55,7 +58,7 @@ router.post('/api/setup-game', is_authenticated, async (req, res) => { break; case "de_whistle": map = 3308613773; - break; + break; default: map = map; } @@ -103,7 +106,12 @@ 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 10`); execute_cfg_on_server(server_id, './cfg/live_arms_race.cfg'); - } + } else if (game == "7") { // Workshop + await rcon.execute_command(server_id, `game_type 0`); + 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_workshop.cfg'); + } if (isNaN(map)) { await rcon.execute_command(server_id, `changelevel ${map}`); @@ -124,6 +132,10 @@ router.post('/api/setup-game', is_authenticated, async (req, res) => { setTimeout(() => { rcon.execute_command(server_id, `mp_restartgame 30`); }, 1000) + } else if (game == "7") { + setTimeout(() => { + rcon.execute_command(server_id, `mp_restartgame 15`); + }, 1000) } return res.status(200).json({ message: 'Game Created!' }); diff --git a/views/manage.ejs b/views/manage.ejs index 9820b0a..cbc2f35 100644 --- a/views/manage.ejs +++ b/views/manage.ejs @@ -103,6 +103,7 @@ +