// Source: https://github.com/xPaw/CS2

exec gamemode_competitive
game_alias competitive

sv_cheats 1

// Bots
bot_chatter off
bot_dont_shoot 1
bot_quota 2 // One bot
bot_stop 1

// Regenerate health
sv_regeneration_force_on 1
sv_regeneration_wait_time 0.5
//sv_falldamage_scale 0 // How much damage falling does
//ff_damage_reduction_grenade_self 0 // How much damage done to yourself with own grenade
//inferno_damage 0 // How much damage molotovs do

healthshot_health 100
mp_autokick 0
mp_forcecamera 0
mp_friendlyfire 1
mp_limitteams 0
mp_solid_teammates 1
mp_tkpunish 0
sv_deadtalk 1
sv_full_alltalk 1
sv_grenade_trajectory_prac_pipreview 1
sv_grenade_trajectory_prac_trailtime 3
sv_ignoregrenaderadio 1

// Dropping
weapon_auto_cleanup_time 10
weapon_max_before_cleanup 50
mp_death_drop_breachcharge 0
mp_death_drop_defuser 0
mp_death_drop_grenade 0
mp_death_drop_gun 1 // Note: this disables the drop key too
mp_death_drop_healthshot 0
mp_death_drop_taser 0
mp_drop_knife_enable 1

// Buying and money
mp_afterroundmoney 0
mp_autoteambalance 0
mp_backup_round_auto 0
mp_buy_anywhere 1
mp_buytime 86400
mp_maxmoney 9999999
mp_playercashawards 0
mp_startmoney 9999999
mp_teamcashawards 0
mp_weapons_allow_typecount -1
sv_buy_status_override 0

// Rounds
mp_force_pick_time 0
mp_freezetime 0
mp_ignore_round_win_conditions 1
mp_match_can_clinch 0
mp_maxrounds 100
mp_respawn_immunitytime 0
mp_respawn_on_death_ct 1
mp_respawn_on_death_t 1
mp_round_restart_delay 0
mp_roundtime 60
mp_roundtime_defuse 0
mp_roundtime_hostage 0
mp_spawnprotectiontime 0
mp_team_intro_time 0
sv_hide_roundtime_until_seconds 1

// Weapons
ammo_grenade_limit_total 5
mp_ct_default_grenades "weapon_incgrenade weapon_hegrenade weapon_smokegrenade weapon_flashbang"
mp_ct_default_primary "weapon_m4a1"
mp_t_default_grenades "weapon_molotov weapon_hegrenade weapon_smokegrenade weapon_flashbang"
mp_t_default_primary "weapon_ak47"
mp_defuser_allocation 2
mp_free_armor 2
sv_infinite_ammo 1

jointeam 2 2 // Join terrorists team
mp_warmup_end
mp_restartgame 1

echo "Have fun!"