Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup config file mess #27

Merged
merged 2 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CSPracc/DataModules/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public class COMMANDS
public static string PAUSE_MATCH = "mp_pause_match 1";
public static string UNPAUSE_MATCH = "mp_unpause_match 1";
public static string RESTART_GAME = "mp_restartgame 1";
public static string START_WARMUP = "exec CSPRACC\\warmup.cfg";
public static string START_MATCH = "exec CSPRACC\\5on5.cfg";
public static string SWAP_TEAMS = "mp_swapteams 1";
}
Expand Down
1 change: 0 additions & 1 deletion CSPracc/Modes/MatchMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ public void Rewarmup(CCSPlayerController? player)
state = match_state.warmup;
Methods.MsgToServer("Starting Warmup.");
Server.ExecuteCommand("exec CSPRACC\\5on5_warmup.cfg");
Server.ExecuteCommand(DataModules.Constants.COMMANDS.START_WARMUP);
}

public void Start(CCSPlayerController? player)
Expand Down
3 changes: 2 additions & 1 deletion configs/5on5_warmup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,6 @@ occlusion_test_async 0
spec_replay_enable 0

sv_gameinstructor_enable 0

mp_warmup_pausetimer 1
mp_warmup_start

110 changes: 110 additions & 0 deletions configs/DryRun.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
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 1
bot_quota_mode competitive
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_elimination_bomb_map 3250
cash_team_elimination_hostage_map_t 3000
cash_team_elimination_hostage_map_ct 3000
cash_team_hostage_alive 0
cash_team_hostage_interaction 600
cash_team_loser_bonus 1400
cash_team_bonus_shorthanded 0
mp_starting_losses 1
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_hostage 3250
cash_team_win_by_time_running_out_bomb 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_buytime 20
mp_buy_anywhere 0
mp_buy_during_immunity 0
mp_death_drop_defuser 1
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_fists_replace_melee 1
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 5
mp_friendlyfire 1
mp_win_panel_display_time 3
mp_respawn_immunitytime -1 // disabling immunity in warmup too for 1v1 fights
mp_halftime 1
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 16000
mp_maxrounds 24
mp_molotovusedelay 0
mp_playercashawards 1
mp_roundtime 1.92
mp_roundtime_hostage 1.92
mp_roundtime_defuse 1.92
mp_solid_teammates 1
mp_startmoney 16000
mp_teamcashawards 1
mp_timelimit 0
mp_technical_timeout_per_team 1
mp_technical_timeout_duration_s 120
mp_warmuptime 120
mp_warmuptime_all_players_connected 15
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_warmup_pausetimer 0
mp_halftime_pausetimer 0
mp_randomspawn 0
mp_randomspawn_los 0
sv_infinite_ammo 0
ammo_grenade_limit_flashbang 2
ammo_grenade_limit_total 4
//
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

spec_replay_enable 0

sv_gameinstructor_enable 0


5 changes: 5 additions & 0 deletions configs/pracc.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
sv_cheats 1
ammo_grenade_limit_total 5
mp_drop_knife_enable true
mp_ct_default_grenades "weapon_incgrenade weapon_hegrenade weapon_smokegrenade weapon_flashbang weapon_decoy"
mp_t_default_grenades "weapon_incgrenade weapon_hegrenade weapon_smokegrenade weapon_flashbang weapon_decoy"
mp_death_drop_grenade 0
sv_grenade_trajectory_prac_pipreview true
sv_infinite_ammo 1
sv_showimpacts 1
Expand Down
5 changes: 5 additions & 0 deletions configs/undo_pracc.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
sv_cheats 0
ammo_grenade_limit_total 4
mp_drop_knife_enable false
mp_ct_default_grenades ""
mp_t_default_grenades ""
mp_death_drop_grenade 1
sv_grenade_trajectory_prac_pipreview false
sv_infinite_ammo 0
sv_showimpacts 0
Expand Down
10 changes: 0 additions & 10 deletions configs/warmup.cfg

This file was deleted.