// =======================================================================================================================
// Pro Mod Spinoff
// Developer: Jacob, 
// Main Contributors: Epilimic, Stabby, CircleSquared, NF, Blade, CanadaRox, Jahze, Prodigysim, Sir, Tabun, Vintik, Visor
// License CC-BY-SA 3.0 (http://creativecommons.org/licenses/by-sa/3.0/legalcode)
// Version 1.0
// =======================================================================================================================

// Load Extensions
confogl_addcvar chestbump_patch_enabled 1
confogl_addcvar cssladders_enabled 1
confogl_addcvar cssladders_allow_m2 0
confogl_addcvar cssladders_allow_reload 0

// [autopause.smx]
confogl_addcvar autopause_enable 1

// [bossspawningfix.smx]
confogl_addcvar l4d_obey_boss_spawn_cvars 1
confogl_addcvar l4d_obey_boss_spawn_except_static 1

// [charger_chestbump_fix.smx]
confogl_addcvar l4d2_charger_chestbump_fix 1

// chargerdamage.smx
confogl_addcvar charger_dmg_punch 8
confogl_addcvar charger_dmg_firstpunch 8
confogl_addcvar charger_dmg_impact 10
confogl_addcvar charger_dmg_stumble 2
confogl_addcvar charger_dmg_pound 15
confogl_addcvar charger_dmg_cappedvictim 8
confogl_addcvar charger_dmg_incapped 30

// [ghost_hurt.smx]
confogl_addcvar ghost_hurt_type 1

// [l4d_bash_kills.smx]
confogl_addcvar l4d_no_bash_kills 1

// [l4d_ci_ffblock.smx]
confogl_addcvar common_hits 2

// [l4d_boss_percent.smx]
confogl_addcvar l4d_global_percent 0
confogl_addcvar l4d_tank_percent 1
confogl_addcvar l4d_witch_percent 1

// [l4d_equalise_alarm_cars.smx]
confogl_addcvar l4d_equalise_alarm_cars 1

// [l4d_jockey_ledgehang.smx]
confogl_addcvar z_leap_interval_post_ledge_hang 12

// [l4d_no_cans.smx]
confogl_addcvar l4d_no_propane 0
confogl_addcvar l4d_no_oxygen 0

// [l4d2_tank_attack_control.smx]                     
confogl_addcvar auto_jumprock 1                       
                                                      
confogl_addcvar l4d2_block_punch_rock 1               
confogl_addcvar l4d2_block_jump_rock 1               
confogl_addcvar tank_overhand_only 0                  

// [l4d_tank_damage_announce.smx]
confogl_addcvar l4d_tankdamage_enabled 1

// [l4d_tank_props.smx]
confogl_addcvar l4d_tank_props 1

// [l4d2_nosecondchances.smx]
confogl_addcvar bot_kick_delay 10

// [l4d_weapon_limits.smx]
l4d_wlimits_add 3 1 weapon_smg weapon_smg_silenced
l4d_wlimits_add 2 0 weapon_pistol_magnum
l4d_wlimits_add 0 1 weapon_hunting_rifle
l4d_wlimits_lock

// [l4d2_spitblock.smx]
spit_block_square c4m2_sugarmill_a -1411.940430 -9491.997070 -1545.875244 -9602.097656
spit_block_square c4m3_sugarmill_b -1411.940430 -9491.997070 -1545.875244 -9602.097656
spit_block_square l4d_dbd2dc_clean_up -4194.448242 3614.163818 -4625.936523 3539.908936
spit_block_square l4d_dbd2dc_undead_center -6902.102539 8809.659180 -7872.751953 8522.269531
spit_block_square l4d2_fallindeath03 4562.987793 -1769.313721 4446.680664 -1623.422729
spit_block_square l4d2_fallindeath04 1656.737061 -325.227692 1531.636108 -187.895630
spit_block_square c5m3_cemetery 5984.291992 416.196289 5904.873047 336.839905
spit_block_square c8m3_sewers 14311.838867 11665.000977 14232.557617 11585.582031
spit_block_square cdta_03warehouse 6311.086 -13217.889 6192.448 -13347.204
spit_block_square downpour_sugarmill_a -1444.891235 -9514.031250 -1514.214478 -9575.968750
spit_block_square downpour_sugarmill_b -1434.379028 -9517.581055 -1514.214478 -9575.968750
spit_block_square l4d2_darkblood02_engine 2515 5610 2664 5770
spit_block_square x1m2_path 6303 10742 6522 10893
spit_block_square c1m1_hotel 2087 5736 2249 5890
spit_block_square c1m4_atrium -3960 -3324 -4120 -3483

 // [l4d2_godframes_control.smx]
confogl_addcvar gfc_hittable_override 1
confogl_addcvar gfc_hittable_rage_override 1
confogl_addcvar gfc_witch_override 1
confogl_addcvar gfc_spit_extra_time 0.6
confogl_addcvar gfc_common_extra_time 0.6
confogl_addcvar gfc_hunter_duration 1.4
confogl_addcvar gfc_jockey_duration 0.1
confogl_addcvar gfc_smoker_duration 0.0
confogl_addcvar gfc_charger_duration 1.9
confogl_addcvar gfc_common_zc_flags 0
confogl_addcvar gfc_spit_zc_flags 6
confogl_addcvar gfc_godframe_glows 1
confogl_addcvar gfc_ff_min_time 0.8

// [l4d2_m2_control.smx]
confogl_addcvar z_max_hunter_pounce_stagger_duration 1
confogl_addcvar l4d2_deadstop_penalty 1

//[l4d2_si_staggers.smx]
confogl_addcvar l4d2_disable_si_friendly_staggers 4

// [l4d2_uniform_spit.smx]
confogl_addcvar l4d2_spit_dmg 3	// Damage per tick the spit inflicts. -1 to skip damage adjustments
confogl_addcvar l4d2_spit_max_ticks 26  // Can not go above 28
confogl_addcvar l4d2_spit_godframe_ticks 6 // Vanilla is 8

// [l4d2_hittable_control.smx]
confogl_addcvar hc_bridge_car_damage 100.0
confogl_addcvar hc_sflog_standing_damage 100.0
confogl_addcvar hc_bhlog_standing_damage 100.0
confogl_addcvar hc_handtruck_standing_damage 8.0
confogl_addcvar hc_car_standing_damage 100.0
confogl_addcvar hc_bumpercar_standing_damage 100.0
confogl_addcvar hc_forklift_standing_damage 100.0
confogl_addcvar hc_dumpster_standing_damage 100.0
confogl_addcvar hc_haybale_standing_damage 100.0
confogl_addcvar hc_baggage_standing_damage 100.0
confogl_addcvar hc_incap_standard_damage -2
confogl_addcvar hc_disable_self_damage 1
confogl_addcvar hc_overhit_time 1.4

// [l4d2_nobhaps.smx]
confogl_addcvar simple_antibhop_enable 1
confogl_addcvar bhop_allow_survivor 1
confogl_addcvar bhop_except_si_flags 63

// [l4d2_playstats.smx]
confogl_addcvar sm_survivor_mvp_brevity 0
confogl_addcvar sm_stats_autoprint_vs_round 8245 //1+4+16+32+8192
//AUTO_MVPCHAT_ROUND      1       // chat: mvp for this round
//AUTO_MVPCON_ROUND       4       // console table: mvp this round
//AUTO_MVPCON_TANK        16      // console table: tankfight stats (this round)
//AUTO_FFCON_ROUND        32      // friendly fire
//AUTO_SKILLCON_ROUND     128     // special 'skill' stats: skeets, crowns, etc
//AUTO_ACCCON_ROUND       512     // accuracy general stats
//AUTO_ACCCON_MORE_ROUND  2048    // accuracy stats on SI / tank hits
//AUTO_FUNFACT_ROUND      8192    // fun fact, relevant to the round
//AUTO_MVPCON_MORE_ROUND  32768   // console table: more mvp stats, time alive, etc
//AUTO_INFCON_ROUND       131072  // console table: infected team stats

// [l4d2_skill_detect.smx]
confogl_addcvar sm_skill_report_enable 1
confogl_addcvar sm_skill_report_flags 254028 // 1+4+2048+8192+32768+131072+262144

// [l4d2_si_ffblock.smx]
confogl_addcvar l4d2_block_infected_ff 1
confogl_addcvar l4d2_infected_ff_allow_tank 1
confogl_addcvar l4d2_infected_ff_block_witch 1

// [l4d2_uncommon_blocker.smx]
confogl_addcvar sm_uncinfblock_enabled 1
confogl_addcvar sm_uncinfblock_types 27

// [l4d2_unsilent_jockey.smx]
confogl_addcvar sm_unsilentjockey_enabled 1
confogl_addcvar sm_unsilentjockey_always 1
confogl_addcvar sm_unsilentjockey_time 0.1

// [l4d2_weaponrules.smx]
l4d2_addweaponrule smg_mp5                smg_silenced
l4d2_addweaponrule rifle                  smg
l4d2_addweaponrule rifle_desert           smg
l4d2_addweaponrule rifle_ak47             smg_silenced
l4d2_addweaponrule rifle_sg552            smg
l4d2_addweaponrule autoshotgun            pumpshotgun
l4d2_addweaponrule shotgun_spas           shotgun_chrome
l4d2_addweaponrule sniper_military        hunting_rifle
l4d2_addweaponrule sniper_scout           hunting_rifle
l4d2_addweaponrule sniper_awp             hunting_rifle
l4d2_addweaponrule grenade_launcher       pistol
l4d2_addweaponrule rifle_m60              pistol_magnum

// [Static shotgun spread]
codepatch_patch sgspread
sm_weapon pumpshotgun damage 14
sm_weapon pumpshotgun bullets 20
sm_weapon pumpshotgun scatterpitch 4.5
sm_weapon pumpshotgun scatteryaw 4.5
sm_weapon shotgun_chrome damage 16
sm_weapon shotgun_chrome bullets 16
sm_weapon shotgun_chrome scatterpitch 3.5
sm_weapon shotgun_chrome scatteryaw 3.5
confogl_addcvar sgspread_center_pellet 0
confogl_addcvar sgspread_ring1_bullets 8
confogl_addcvar sgspread_ring1_factor 3
confogl_addcvar z_shotgun_bonus_damage_range 75

// [SMG Spread Improvement]
sm_weapon smg spreadpershot 0.20
sm_weapon smg maxmovespread 2
sm_weapon smg_silenced spreadpershot 0.28
sm_weapon smg_silenced maxmovespread 2.4

// [l4dhots.smx]
confogl_addcvar l4d_pills_hot 1
confogl_addcvar l4d_pills_hot_interval 0.05
confogl_addcvar l4d_pills_hot_increment 2
confogl_addcvar l4d_pills_hot_total 50
confogl_addcvar l4d_adrenaline_hot 1
confogl_addcvar l4d_adrenaline_hot_interval 0.2
confogl_addcvar l4d_adrenaline_hot_increment 2
confogl_addcvar l4d_adrenaline_hot_total 25

// [lerpmonitor.smx]
confogl_addcvar sm_allowed_lerp_changes 3
confogl_addcvar sm_lerp_change_spec 1
confogl_addcvar sm_readyup_lerp_changes 1
confogl_addcvar sm_min_lerp 0.000
confogl_addcvar sm_max_lerp 0.067

// [si_fire_immunity.smx]
confogl_addcvar infected_fire_immunity 3

// [starting_items.smx]
confogl_addcvar starting_item_flags 4

// [l4d2_collision_adjustments.smx]
confogl_addcvar collision_tankrock_common 1
confogl_addcvar collision_smoker_common 1
confogl_addcvar collision_tankrock_incap 1

// [l4d_stuckpunchfix]
confogl_addcvar sm_punchstuckfix_unstucktime 0.5
confogl_addcvar tpsf_debug_print 0

// [l4d2_survivor_ff.smx]
confogl_addcvar l4d2_undoff_enable			7
confogl_addcvar l4d2_undoff_blockzerodmg	7
confogl_addcvar l4d2_undoff_permdmgfrac		1.0

// [l4d2_shotgun_ff.smx]
confogl_addcvar l4d2_shotgun_ff_multi 0.5
confogl_addcvar l4d2_shotgun_ff_min 1.0
confogl_addcvar l4d2_shotgun_ff_max 6.0

// [l4d2_slowdown_control.smx]
confogl_addcvar z_tank_speed_vs 210
confogl_addcvar z_tank_damage_slow_min_range 0
confogl_addcvar z_tank_damage_slow_max_range 0
confogl_addcvar l4d2_slowdown_gunfire_si 0
confogl_addcvar l4d2_slowdown_gunfire_tank 0.24
confogl_addcvar l4d2_slowdown_water_tank 0
confogl_addcvar l4d2_slowdown_water_survivors -1
confogl_addcvar l4d2_slowdown_water_survivors_during_tank 1.235
confogl_addcvar l4d2_slowdown_pistol_percent 0.5
confogl_addcvar l4d2_slowdown_deagle_percent 0.8
confogl_addcvar l4d2_slowdown_uzi_percent 0.7
confogl_addcvar l4d2_slowdown_mac_percent 0
confogl_addcvar l4d2_slowdown_pump_percent 0
confogl_addcvar l4d2_slowdown_chrome_percent 0

confogl_addcvar smg_protection 1

//confogl_addcvar wat_allow_manipulation 0
//confogl_addcvar wat_show_manipulation 0

// [l4d2_antimelee.smx]
confogl_addcvar l4d2_melee_tank_nerf 20

// [l4d2_melee_fix.smx]
confogl_addcvar melee_damage_charger 350.0

confogl_addcvar lock_boss_spawns 0

//[l4d2_pickup.smx]
confogl_addcvar pickup_switch_flags 2
confogl_addcvar pickup_incap_flags 2

// Scoremod Cvars
confogl_addcvar SM_enable 1
confogl_addcvar SM_healthbonusratio 2.0
confogl_addcvar SM_survivalbonusratio 0.0
confogl_addcvar SM_tempmulti_incap_0 0.30625
confogl_addcvar SM_tempmulti_incap_1 0.17500
confogl_addcvar SM_tempmulti_incap_2 0.10000
confogl_addcvar SM_first_aid_heal_percent 0.1
confogl_addcvar SM_pain_pills_health_value 50
confogl_addcvar SM_adrenaline_health_buffer 25
confogl_addcvar SM_mapmulti 1
confogl_addcvar SM_custommaxdistance 1
confogl_addcvar sm_hbonus_pointsmode 2
confogl_addcvar sm_hbonus_report 4
confogl_addcvar sm_pbonus_reportchanges 0
confogl_addcvar sm_pbonus_display 0
confogl_addcvar sm_simple_witch_bonus 20
confogl_addcvar sm_witch_bonus_print 0
confogl_addcvar sm_witch_bonus_always 1
confogl_addcvar sm_hbonus_configpath    "../../cfg/cfgogl/pm4v4/holdoutmapinfo.txt"

// Confogl Additional
confogl_setcvars
confogl_resetclientcvars

// Client Cvar Tracking        <cvar>                <hasMin> <min>       <hasMax> <max>
confogl_trackclientcvar        "mat_hdr_level"       "1"      "2.0"       "0"      "0.0"
confogl_trackclientcvar        "cl_lagcompensation"  "1"      "1.0"       "0"      "0.0"
confogl_startclientchecking

sm_killlobbyres												// Removes the lobby reservation cookie

exec confogl_personalize.cfg