add arms race
This commit is contained in:
		
							parent
							
								
									faaea9a17e
								
							
						
					
					
						commit
						b57e56f35e
					
				
							
								
								
									
										95
									
								
								cfg/live_arms_race.cfg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										95
									
								
								cfg/live_arms_race.cfg
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,95 @@
 | 
				
			|||||||
 | 
					ammo_grenade_limit_flashbang 1
 | 
				
			||||||
 | 
					ammo_grenade_limit_total 3
 | 
				
			||||||
 | 
					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 0
 | 
				
			||||||
 | 
					cash_player_killed_enemy_factor 0
 | 
				
			||||||
 | 
					cash_player_killed_hostage 0
 | 
				
			||||||
 | 
					cash_player_killed_teammate 0
 | 
				
			||||||
 | 
					cash_player_rescued_hostage 0
 | 
				
			||||||
 | 
					cash_team_elimination_bomb_map 0
 | 
				
			||||||
 | 
					cash_team_elimination_hostage_map_ct 0
 | 
				
			||||||
 | 
					cash_team_elimination_hostage_map_t 0
 | 
				
			||||||
 | 
					cash_team_hostage_alive 0
 | 
				
			||||||
 | 
					cash_team_hostage_interaction 0
 | 
				
			||||||
 | 
					cash_team_loser_bonus 0
 | 
				
			||||||
 | 
					cash_team_loser_bonus_consecutive_rounds 0
 | 
				
			||||||
 | 
					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 0
 | 
				
			||||||
 | 
					cash_team_win_by_time_running_out_bomb 0
 | 
				
			||||||
 | 
					cash_team_win_by_time_running_out_hostage 0
 | 
				
			||||||
 | 
					ff_damage_reduction_bullets 0.0
 | 
				
			||||||
 | 
					ff_damage_reduction_grenade 0.0
 | 
				
			||||||
 | 
					ff_damage_reduction_grenade_self 0
 | 
				
			||||||
 | 
					ff_damage_reduction_other 0.0
 | 
				
			||||||
 | 
					healthshot_health 50
 | 
				
			||||||
 | 
					healthshot_healthboost_time 1
 | 
				
			||||||
 | 
					mp_afterroundmoney 0
 | 
				
			||||||
 | 
					mp_buy_allow_grenades 0
 | 
				
			||||||
 | 
					mp_buy_anywhere 0
 | 
				
			||||||
 | 
					mp_buy_during_immunity 0
 | 
				
			||||||
 | 
					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_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
 | 
				
			||||||
 | 
					mp_defuser_allocation 0 // 0=none, 1=random, 2=everyone
 | 
				
			||||||
 | 
					mp_display_kill_assists 0
 | 
				
			||||||
 | 
					mp_forcecamera 0 // Set to 1 for team only spectating
 | 
				
			||||||
 | 
					mp_force_pick_time 15
 | 
				
			||||||
 | 
					mp_free_armor 2 
 | 
				
			||||||
 | 
					mp_freezetime 0
 | 
				
			||||||
 | 
					mp_friendlyfire 1
 | 
				
			||||||
 | 
					mp_halftime 0
 | 
				
			||||||
 | 
					mp_halftime_pausetimer 0
 | 
				
			||||||
 | 
					mp_match_can_clinch 0 // 0=No mercy rule, 1=team can clinch match win early if they win > 1/2 total rounds
 | 
				
			||||||
 | 
					mp_maxmoney 0
 | 
				
			||||||
 | 
					mp_maxrounds 0
 | 
				
			||||||
 | 
					mp_playercashawards 0
 | 
				
			||||||
 | 
					mp_randomspawn 1
 | 
				
			||||||
 | 
					mp_randomspawn_los 0
 | 
				
			||||||
 | 
					mp_respawn_immunitytime 10
 | 
				
			||||||
 | 
					mp_respawn_on_death_ct 1
 | 
				
			||||||
 | 
					mp_respawn_on_death_t 1
 | 
				
			||||||
 | 
					mp_roundtime 10
 | 
				
			||||||
 | 
					mp_roundtime_defuse 0
 | 
				
			||||||
 | 
					mp_roundtime_hostage 0
 | 
				
			||||||
 | 
					mp_solid_teammates 0
 | 
				
			||||||
 | 
					mp_solid_teammates 2
 | 
				
			||||||
 | 
					mp_solid_teammates 2
 | 
				
			||||||
 | 
					mp_startmoney 0
 | 
				
			||||||
 | 
					mp_t_default_melee weapon_knife
 | 
				
			||||||
 | 
					mp_t_default_primary ""
 | 
				
			||||||
 | 
					mp_t_default_secondary ""
 | 
				
			||||||
 | 
					mp_teamcashawards 0
 | 
				
			||||||
 | 
					mp_teammates_are_enemies 0
 | 
				
			||||||
 | 
					mp_timelimit 10
 | 
				
			||||||
 | 
					mp_warmup_pausetimer 0
 | 
				
			||||||
 | 
					mp_warmuptime 20
 | 
				
			||||||
 | 
					mp_weapons_allow_map_placed 0
 | 
				
			||||||
 | 
					mp_weapons_allow_typecount -1
 | 
				
			||||||
 | 
					mp_weapons_allow_zeus -1
 | 
				
			||||||
 | 
					mp_weapons_glow_on_ground 0
 | 
				
			||||||
 | 
					mp_win_panel_display_time 1
 | 
				
			||||||
 | 
					r_decals_overide_fadestarttime_params 20
 | 
				
			||||||
 | 
					spec_freeze_time 2
 | 
				
			||||||
 | 
					sv_allow_votes 1 // Voting allowed in this mode
 | 
				
			||||||
 | 
					sv_deadtalk 1
 | 
				
			||||||
 | 
					sv_disconnected_players_cleanup_delay 15
 | 
				
			||||||
 | 
					sv_gameinstructor_enable 0
 | 
				
			||||||
 | 
					sv_health_approach_enabled 1
 | 
				
			||||||
 | 
					sv_health_approach_speed 20
 | 
				
			||||||
 | 
					sv_ignoregrenaderadio 1
 | 
				
			||||||
 | 
					sv_infinite_ammo 2
 | 
				
			||||||
 | 
					sv_max_deathmatch_respawns_per_tick 1
 | 
				
			||||||
 | 
					sv_minimum_desired_chicken_count 10
 | 
				
			||||||
 | 
					sv_talk_enemy_dead 1
 | 
				
			||||||
 | 
					sv_talk_enemy_living 1
 | 
				
			||||||
@ -51,11 +51,11 @@ mp_display_kill_assists 1
 | 
				
			|||||||
mp_endmatch_votenextmap 0
 | 
					mp_endmatch_votenextmap 0
 | 
				
			||||||
mp_forcecamera 1
 | 
					mp_forcecamera 1
 | 
				
			||||||
mp_free_armor 0
 | 
					mp_free_armor 0
 | 
				
			||||||
mp_freezetime 18
 | 
					mp_freezetime 10
 | 
				
			||||||
mp_friendlyfire 1
 | 
					mp_friendlyfire 1
 | 
				
			||||||
mp_give_player_c4 1
 | 
					mp_give_player_c4 1
 | 
				
			||||||
mp_halftime 1
 | 
					mp_halftime 1
 | 
				
			||||||
mp_halftime_duration 15
 | 
					mp_halftime_duration 10
 | 
				
			||||||
mp_halftime_pausetimer 0
 | 
					mp_halftime_pausetimer 0
 | 
				
			||||||
mp_ignore_round_win_conditions 0
 | 
					mp_ignore_round_win_conditions 0
 | 
				
			||||||
mp_limitteams 0
 | 
					mp_limitteams 0
 | 
				
			||||||
 | 
				
			|||||||
@ -51,11 +51,11 @@ mp_display_kill_assists 1
 | 
				
			|||||||
mp_endmatch_votenextmap 0
 | 
					mp_endmatch_votenextmap 0
 | 
				
			||||||
mp_forcecamera 1
 | 
					mp_forcecamera 1
 | 
				
			||||||
mp_free_armor 0
 | 
					mp_free_armor 0
 | 
				
			||||||
mp_freezetime 18
 | 
					mp_freezetime 10
 | 
				
			||||||
mp_friendlyfire 1
 | 
					mp_friendlyfire 1
 | 
				
			||||||
mp_give_player_c4 1
 | 
					mp_give_player_c4 1
 | 
				
			||||||
mp_halftime 1
 | 
					mp_halftime 1
 | 
				
			||||||
mp_halftime_duration 15
 | 
					mp_halftime_duration 10
 | 
				
			||||||
mp_halftime_pausetimer 0
 | 
					mp_halftime_pausetimer 0
 | 
				
			||||||
mp_ignore_round_win_conditions 0
 | 
					mp_ignore_round_win_conditions 0
 | 
				
			||||||
mp_limitteams 0
 | 
					mp_limitteams 0
 | 
				
			||||||
 | 
				
			|||||||
@ -51,11 +51,11 @@ mp_display_kill_assists 1
 | 
				
			|||||||
mp_endmatch_votenextmap 0
 | 
					mp_endmatch_votenextmap 0
 | 
				
			||||||
mp_forcecamera 1
 | 
					mp_forcecamera 1
 | 
				
			||||||
mp_free_armor 0
 | 
					mp_free_armor 0
 | 
				
			||||||
mp_freezetime 18
 | 
					mp_freezetime 10
 | 
				
			||||||
mp_friendlyfire 1
 | 
					mp_friendlyfire 1
 | 
				
			||||||
mp_give_player_c4 1
 | 
					mp_give_player_c4 1
 | 
				
			||||||
mp_halftime 1
 | 
					mp_halftime 1
 | 
				
			||||||
mp_halftime_duration 15
 | 
					mp_halftime_duration 10
 | 
				
			||||||
mp_halftime_pausetimer 0
 | 
					mp_halftime_pausetimer 0
 | 
				
			||||||
mp_ignore_round_win_conditions 0
 | 
					mp_ignore_round_win_conditions 0
 | 
				
			||||||
mp_limitteams 0
 | 
					mp_limitteams 0
 | 
				
			||||||
 | 
				
			|||||||
@ -51,11 +51,11 @@ mp_display_kill_assists 1
 | 
				
			|||||||
mp_endmatch_votenextmap 0
 | 
					mp_endmatch_votenextmap 0
 | 
				
			||||||
mp_forcecamera 1
 | 
					mp_forcecamera 1
 | 
				
			||||||
mp_free_armor 0
 | 
					mp_free_armor 0
 | 
				
			||||||
mp_freezetime 18
 | 
					mp_freezetime 10
 | 
				
			||||||
mp_friendlyfire 1
 | 
					mp_friendlyfire 1
 | 
				
			||||||
mp_give_player_c4 1
 | 
					mp_give_player_c4 1
 | 
				
			||||||
mp_halftime 1
 | 
					mp_halftime 1
 | 
				
			||||||
mp_halftime_duration 15
 | 
					mp_halftime_duration 10
 | 
				
			||||||
mp_halftime_pausetimer 0
 | 
					mp_halftime_pausetimer 0
 | 
				
			||||||
mp_ignore_round_win_conditions 0
 | 
					mp_ignore_round_win_conditions 0
 | 
				
			||||||
mp_limitteams 0
 | 
					mp_limitteams 0
 | 
				
			||||||
 | 
				
			|||||||
@ -1,46 +1,46 @@
 | 
				
			|||||||
bot_kick
 | 
					bot_kick
 | 
				
			||||||
bot_quota 0
 | 
					bot_quota 0
 | 
				
			||||||
 | 
					cash_team_bonus_shorthanded 0
 | 
				
			||||||
 | 
					cash_team_loser_bonus_shorthanded 0
 | 
				
			||||||
mp_autokick 0
 | 
					mp_autokick 0
 | 
				
			||||||
mp_autoteambalance 0
 | 
					mp_autoteambalance 0
 | 
				
			||||||
mp_buy_anywhere 0
 | 
					mp_buy_anywhere 0
 | 
				
			||||||
mp_buytime 15
 | 
					mp_buytime 15
 | 
				
			||||||
 | 
					mp_ct_default_melee weapon_knife
 | 
				
			||||||
 | 
					mp_ct_default_primary ""
 | 
				
			||||||
 | 
					mp_ct_default_secondary weapon_hkp2000
 | 
				
			||||||
mp_death_drop_gun 0
 | 
					mp_death_drop_gun 0
 | 
				
			||||||
mp_free_armor 0
 | 
					mp_free_armor 0
 | 
				
			||||||
mp_ignore_round_win_conditions 0
 | 
					mp_ignore_round_win_conditions 0
 | 
				
			||||||
mp_limitteams 0
 | 
					mp_limitteams 0
 | 
				
			||||||
 | 
					mp_maxmoney 16000
 | 
				
			||||||
 | 
					mp_maxrounds 16
 | 
				
			||||||
mp_radar_showall 0
 | 
					mp_radar_showall 0
 | 
				
			||||||
mp_respawn_on_death_ct 0
 | 
					mp_respawn_on_death_ct 0
 | 
				
			||||||
mp_respawn_on_death_t 0
 | 
					mp_respawn_on_death_t 0
 | 
				
			||||||
mp_solid_teammates 0
 | 
					mp_solid_teammates 0
 | 
				
			||||||
mp_spectators_max 20
 | 
					mp_spectators_max 20
 | 
				
			||||||
mp_maxmoney 16000
 | 
					 | 
				
			||||||
mp_startmoney 16000
 | 
					mp_startmoney 16000
 | 
				
			||||||
 | 
					mp_t_default_melee weapon_knife
 | 
				
			||||||
 | 
					mp_t_default_primary
 | 
				
			||||||
 | 
					mp_t_default_secondary weapon_glock
 | 
				
			||||||
mp_timelimit 0
 | 
					mp_timelimit 0
 | 
				
			||||||
 | 
					mp_warmup_pausetimer 1
 | 
				
			||||||
 | 
					mp_warmup_start
 | 
				
			||||||
 | 
					mp_warmuptime 9999
 | 
				
			||||||
 | 
					mp_weapons_allow_typecount -1
 | 
				
			||||||
 | 
					sm_cvar sv_mute_players_with_social_penalties 0
 | 
				
			||||||
sv_alltalk 0
 | 
					sv_alltalk 0
 | 
				
			||||||
sv_auto_full_alltalk_during_warmup_half_end 0
 | 
					sv_auto_full_alltalk_during_warmup_half_end 0
 | 
				
			||||||
 | 
					sv_cheats 0
 | 
				
			||||||
sv_coaching_enabled 1
 | 
					sv_coaching_enabled 1
 | 
				
			||||||
sv_competitive_official_5v5 1
 | 
					sv_competitive_official_5v5 1
 | 
				
			||||||
sv_deadtalk 1
 | 
					sv_deadtalk 1
 | 
				
			||||||
sv_full_alltalk 0
 | 
					sv_full_alltalk 0
 | 
				
			||||||
sv_grenade_trajectory 0
 | 
					sv_grenade_trajectory 0
 | 
				
			||||||
sv_hibernate_when_empty 0
 | 
					sv_hibernate_when_empty 0
 | 
				
			||||||
mp_weapons_allow_typecount -1
 | 
					 | 
				
			||||||
sv_infinite_ammo 0
 | 
					sv_infinite_ammo 0
 | 
				
			||||||
 | 
					sv_mute_players_with_social_penalties 0
 | 
				
			||||||
sv_showimpacts 0
 | 
					sv_showimpacts 0
 | 
				
			||||||
sv_voiceenable 1
 | 
					sv_voiceenable 1
 | 
				
			||||||
sm_cvar sv_mute_players_with_social_penalties 0
 | 
					 | 
				
			||||||
sv_mute_players_with_social_penalties 0
 | 
					 | 
				
			||||||
tv_relayvoice 1
 | 
					tv_relayvoice 1
 | 
				
			||||||
sv_cheats 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_maxrounds 16
 | 
					 | 
				
			||||||
mp_warmup_start
 | 
					 | 
				
			||||||
mp_warmup_pausetimer 1
 | 
					 | 
				
			||||||
mp_warmuptime 9999
 | 
					 | 
				
			||||||
cash_team_bonus_shorthanded 0
 | 
					 | 
				
			||||||
cash_team_loser_bonus_shorthanded 0
 | 
					 | 
				
			||||||
@ -1,46 +1,46 @@
 | 
				
			|||||||
bot_kick
 | 
					bot_kick
 | 
				
			||||||
bot_quota 0
 | 
					bot_quota 0
 | 
				
			||||||
 | 
					cash_team_bonus_shorthanded 0
 | 
				
			||||||
 | 
					cash_team_loser_bonus_shorthanded 0
 | 
				
			||||||
mp_autokick 0
 | 
					mp_autokick 0
 | 
				
			||||||
mp_autoteambalance 0
 | 
					mp_autoteambalance 0
 | 
				
			||||||
mp_buy_anywhere 0
 | 
					mp_buy_anywhere 0
 | 
				
			||||||
mp_buytime 15
 | 
					mp_buytime 15
 | 
				
			||||||
 | 
					mp_ct_default_melee weapon_knife
 | 
				
			||||||
 | 
					mp_ct_default_primary ""
 | 
				
			||||||
 | 
					mp_ct_default_secondary weapon_hkp2000
 | 
				
			||||||
mp_death_drop_gun 0
 | 
					mp_death_drop_gun 0
 | 
				
			||||||
mp_free_armor 0
 | 
					mp_free_armor 0
 | 
				
			||||||
mp_ignore_round_win_conditions 0
 | 
					mp_ignore_round_win_conditions 0
 | 
				
			||||||
mp_limitteams 0
 | 
					mp_limitteams 0
 | 
				
			||||||
 | 
					mp_maxmoney 16000
 | 
				
			||||||
 | 
					mp_maxrounds 24
 | 
				
			||||||
mp_radar_showall 0
 | 
					mp_radar_showall 0
 | 
				
			||||||
mp_respawn_on_death_ct 0
 | 
					mp_respawn_on_death_ct 0
 | 
				
			||||||
mp_respawn_on_death_t 0
 | 
					mp_respawn_on_death_t 0
 | 
				
			||||||
mp_solid_teammates 0
 | 
					mp_solid_teammates 0
 | 
				
			||||||
mp_spectators_max 20
 | 
					mp_spectators_max 20
 | 
				
			||||||
mp_maxmoney 16000
 | 
					 | 
				
			||||||
mp_startmoney 16000
 | 
					mp_startmoney 16000
 | 
				
			||||||
 | 
					mp_t_default_melee weapon_knife
 | 
				
			||||||
 | 
					mp_t_default_primary
 | 
				
			||||||
 | 
					mp_t_default_secondary weapon_glock
 | 
				
			||||||
mp_timelimit 0
 | 
					mp_timelimit 0
 | 
				
			||||||
 | 
					mp_warmup_pausetimer 1
 | 
				
			||||||
 | 
					mp_warmup_start
 | 
				
			||||||
 | 
					mp_warmuptime 9999
 | 
				
			||||||
 | 
					mp_weapons_allow_typecount -1
 | 
				
			||||||
 | 
					sm_cvar sv_mute_players_with_social_penalties 0
 | 
				
			||||||
sv_alltalk 0
 | 
					sv_alltalk 0
 | 
				
			||||||
sv_auto_full_alltalk_during_warmup_half_end 0
 | 
					sv_auto_full_alltalk_during_warmup_half_end 0
 | 
				
			||||||
 | 
					sv_cheats 0
 | 
				
			||||||
sv_coaching_enabled 1
 | 
					sv_coaching_enabled 1
 | 
				
			||||||
sv_competitive_official_5v5 1
 | 
					sv_competitive_official_5v5 1
 | 
				
			||||||
sv_deadtalk 1
 | 
					sv_deadtalk 1
 | 
				
			||||||
sv_full_alltalk 0
 | 
					sv_full_alltalk 0
 | 
				
			||||||
sv_grenade_trajectory 0
 | 
					sv_grenade_trajectory 0
 | 
				
			||||||
sv_hibernate_when_empty 0
 | 
					sv_hibernate_when_empty 0
 | 
				
			||||||
mp_weapons_allow_typecount -1
 | 
					 | 
				
			||||||
sv_infinite_ammo 0
 | 
					sv_infinite_ammo 0
 | 
				
			||||||
 | 
					sv_mute_players_with_social_penalties 0
 | 
				
			||||||
sv_showimpacts 0
 | 
					sv_showimpacts 0
 | 
				
			||||||
sv_voiceenable 1
 | 
					sv_voiceenable 1
 | 
				
			||||||
sm_cvar sv_mute_players_with_social_penalties 0
 | 
					 | 
				
			||||||
sv_mute_players_with_social_penalties 0
 | 
					 | 
				
			||||||
tv_relayvoice 1
 | 
					tv_relayvoice 1
 | 
				
			||||||
sv_cheats 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_maxrounds 24
 | 
					 | 
				
			||||||
mp_warmup_start
 | 
					 | 
				
			||||||
mp_warmup_pausetimer 1
 | 
					 | 
				
			||||||
mp_warmuptime 9999
 | 
					 | 
				
			||||||
cash_team_bonus_shorthanded 0
 | 
					 | 
				
			||||||
cash_team_loser_bonus_shorthanded 0
 | 
					 | 
				
			||||||
@ -24,23 +24,40 @@ router.post('/api/setup-game', is_authenticated, async (req, res) => {
 | 
				
			|||||||
            await rcon.execute_command(server_id, `mp_teamname_2 "${team2}"`);
 | 
					            await rcon.execute_command(server_id, `mp_teamname_2 "${team2}"`);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (game == "1") {
 | 
					        if (game == "1") { // Competitive Short
 | 
				
			||||||
 | 
					            await rcon.execute_command(server_id, `game_type 0`);
 | 
				
			||||||
            await rcon.execute_command(server_id, `game_mode 1`);
 | 
					            await rcon.execute_command(server_id, `game_mode 1`);
 | 
				
			||||||
            execute_cfg_on_server(server_id, './cfg/live_competitive_16.cfg');
 | 
					            execute_cfg_on_server(server_id, './cfg/live_competitive_16.cfg');
 | 
				
			||||||
        } else if (game == "2") {
 | 
					            await rcon.execute_command(server_id, `mp_warmup_pausetimer 1`);
 | 
				
			||||||
 | 
					        } else if (game == "2") { // Competitive Long
 | 
				
			||||||
 | 
					            await rcon.execute_command(server_id, `game_type 0`);
 | 
				
			||||||
            await rcon.execute_command(server_id, `game_mode 1`);
 | 
					            await rcon.execute_command(server_id, `game_mode 1`);
 | 
				
			||||||
            execute_cfg_on_server(server_id, './cfg/live_competitive_24.cfg');
 | 
					            execute_cfg_on_server(server_id, './cfg/live_competitive_24.cfg');
 | 
				
			||||||
        } else if (game == "3") {
 | 
					            await rcon.execute_command(server_id, `mp_warmup_pausetimer 1`);
 | 
				
			||||||
 | 
					        } else if (game == "3") { // Casual Short
 | 
				
			||||||
 | 
					            await rcon.execute_command(server_id, `game_type 0`);
 | 
				
			||||||
            await rcon.execute_command(server_id, `game_mode 0`);
 | 
					            await rcon.execute_command(server_id, `game_mode 0`);
 | 
				
			||||||
            execute_cfg_on_server(server_id, './cfg/live_casual_16.cfg');
 | 
					            execute_cfg_on_server(server_id, './cfg/live_casual_16.cfg');
 | 
				
			||||||
        } else if (game == "4") {
 | 
					            await rcon.execute_command(server_id, `mp_warmup_pausetimer 1`);
 | 
				
			||||||
 | 
					        } else if (game == "4") { // Casual Long
 | 
				
			||||||
 | 
					            await rcon.execute_command(server_id, `game_type 0`);
 | 
				
			||||||
            await rcon.execute_command(server_id, `game_mode 0`);
 | 
					            await rcon.execute_command(server_id, `game_mode 0`);
 | 
				
			||||||
            execute_cfg_on_server(server_id, './cfg/live_casual_24.cfg');
 | 
					            execute_cfg_on_server(server_id, './cfg/live_casual_24.cfg');
 | 
				
			||||||
        } else if (game == "5") {
 | 
					            await rcon.execute_command(server_id, `mp_warmup_pausetimer 1`);
 | 
				
			||||||
 | 
					        } else if (game == "5") { // Wingman
 | 
				
			||||||
 | 
					            await rcon.execute_command(server_id, `game_type 0`);
 | 
				
			||||||
            await rcon.execute_command(server_id, `game_mode 2`);
 | 
					            await rcon.execute_command(server_id, `game_mode 2`);
 | 
				
			||||||
            execute_cfg_on_server(server_id, './cfg/live_wingman.cfg');
 | 
					            execute_cfg_on_server(server_id, './cfg/live_wingman.cfg');
 | 
				
			||||||
 | 
					            await rcon.execute_command(server_id, `mp_warmup_pausetimer 1`);
 | 
				
			||||||
 | 
					        } else if (game == "6") { // Arms race
 | 
				
			||||||
 | 
					            await rcon.execute_command(server_id, `game_type 1`);
 | 
				
			||||||
 | 
					            await rcon.execute_command(server_id, `game_mode 0`);
 | 
				
			||||||
 | 
					            execute_cfg_on_server(server_id, './cfg/live_arms_race.cfg');  
 | 
				
			||||||
 | 
					            setTimeout(() => {
 | 
				
			||||||
 | 
					                rcon.execute_command(server_id, `mp_restartgame 1`);
 | 
				
			||||||
 | 
					            }, 20000)                      
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        await rcon.execute_command(server_id, `mp_warmup_pausetimer 1`);
 | 
					        
 | 
				
			||||||
        await rcon.execute_command(server_id, `changelevel ${map}`);
 | 
					        await rcon.execute_command(server_id, `changelevel ${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.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user