// Usage: hlg_blockcvar <cvar> <minimum value> <maximum value> <default value> <flags>
// Flags: <k> kick, <l> log, <c> ban
//====
// Logfile
//====
hlg_action "l:found" "hlg_writefile %L/cvarviolations.txt;hlg_write \'%d %h [HLGUARD %g] -> %n<%w><%i> <%y> on %m\'"
hlg_action "l:found" "hlg_log \'%n<%w><%i> triggered <%y>\'"

//====
// Cvar violation ban length
//====
// 24h ban
// hlg_action "c:found" "banid 1440.0 %w;kick #%u [HLGUARD] Banned: 24 hours. Reason: Cvar violation <%y>;wait;writeid"
// 2h ban
hlg_action "c:found" "banid 120.0 %w;kick #%u [HLGUARD] Banned: 2 hours. Reason: Cvar violation <%y>;wait;writeid"
// 5m ban
// hlg_action "c:found" "banid 5.0 %w;kick #%u [HLGUARD] Banned: 5 minutes. Reason: Cvar violation <%y>;wait;writeid"
//====
// Amxbans
//====
// hlg_action "c:found" "amx_ban 1440 %w [HLGUARD] Cvar violation %y"
// hlg_action "c:found" "amx_ban 120 %w [HLGUARD] Cvar violation %y"
// hlg_action "c:found" "amx_ban 5 %w [HLGUARD] Cvar violation %y"

//====
// Any mod Cvars
//====
hlg_blockcvar lookspring 0 0 0 cl
hlg_blockcvar default_fov 90 90 90 cl
hlg_blockcvar lightgamma 2.5 5.0 2.5 cl
hlg_blockcvar texgamma 2 2 2 cl
hlg_blockcvar hud_draw 1 1 1 cl
hlg_blockcvar d_spriteskip 0 0 0 cl
hlg_blockcvar r_drawviewmodel 1 1 1 cl
hlg_blockcvar r_luminance 0 0 0 cl
hlg_blockcvar gl_max_size 128 512 256 cl
hlg_blockcvar gl_polyoffset 0 4 0.1 cl
hlg_blockcvar gl_monolights 0 0 0 cl
hlg_blockcvar gl_picmip 0 0 0 cl
hlg_blockcvar ambient_fade 100 100 100 cl
hlg_blockcvar ambient_level 0.3 0.3 0.3 cl
hlg_blockcvar s_a3d 0 0 0 cl
hlg_blockcvar s_show 0 0 0 cl
hlg_blockcvar s_polykeep 1000000000 1000000000 1000000000 cl
hlg_blockcvar s_polysize 10000000 10000000 10000000 cl
hlg_blockcvar s_automin_distance 2 2 2 cl
hlg_blockcvar s_distance 60 60 60 cl
hlg_blockcvar s_automax_distance 30 30 30 cl
hlg_blockcvar s_max_distance 1000 1000 1000 cl
hlg_blockcvar s_occfactor 0.25 0.25 0.25 cl
hlg_blockcvar c_maxdistance 200 200 200 cl
hlg_blockcvar c_maxpitch 90 90 90 cl
hlg_blockcvar c_maxyaw 135 135 135 cl
hlg_blockcvar c_minpitch 0 0 0 cl
hlg_blockcvar c_minyaw -135 -135 -135 cl
hlg_blockcvar cl_showevents 0 0 0 cl
hlg_blockcvar cl_solid_players 1 1 1 cl
hlg_blockcvar cl_smoothtime 0.01 0.1 0.1 cl
hlg_blockcvar cl_anglespeedkey 0.67 0.67 0.67 cl
hlg_blockcvar cl_yawspeed 210 210 210 cl
hlg_blockcvar cl_pitchspeed 225 225 225 cl
hlg_blockcvar cl_bob 0.01 0.01 0.01 cl
hlg_blockcvar cl_bobcycle 0.8 0.8 0.8 cl
hlg_blockcvar cl_bobup 0.5 0.5 0.5 cl
hlg_blockcvar cl_lc 1 1 1 cl
hlg_blockcvar cl_lw 1 1 1 cl

//====
// Shared Cvars
//====
hlg_blockcvar cl_movespeedkey 0.1 0.52 0.3 cl      // 0.1 = NS, 0.3 = HL, 0.52 = CS
hlg_blockcvar s_min_distance 5 8 5 cl              // 8 = HL, 5 = CS
// hlg_blockcvar cl_pitchdown 89 89 89 cl          // Use for any mod, except NS.
// hlg_blockcvar cl_pitchup 89 89 89 cl            // "
// hlg_blockcvar cl_pmanstats 0 0 0 cl             // "

//====
// Counter-Strike / CS:CZ Cvars
//====
// hlg_blockcvar max_smokepuffs 120 120 120 cl

//====
// Blocked client commands
//====
hlg_blockcommand "fullupdate"


//====
// Old Cvarblock method
// Blocking only, no allowed ranges possible,
// unsafe, but may be used in combination.
//====
// Any mod Cvars
//====
// hlg_conncommand "lookspring 0;alias lookspring"
// hlg_conncommand "default_fov 90;alias default_fov"
// hlg_conncommand "lightgamma 2.5;alias lightgamma"
// hlg_conncommand "texgamma 2;alias texgamma"
// hlg_conncommand "hud_draw 1;alias hud_draw"
// hlg_conncommand "d_spriteskip 0;alias d_spriteskip"
// hlg_conncommand "r_drawviewmodel 1;alias r_drawviewmodel"
// hlg_conncommand "r_luminance 0;alias r_luminance"
// hlg_conncommand "gl_max_size 256;alias gl_max_size"
// hlg_conncommand "gl_polyoffset 0.1;alias gl_polyoffset"
// hlg_conncommand "gl_monolights 0;alias gl_monolights"
// hlg_conncommand "gl_picmip 0;alias gl_picmip"
// hlg_conncommand "ambient_fade 100;alias ambient_fade"
// hlg_conncommand "ambient_level 0.3;alias ambient_level"
// hlg_conncommand "s_a3d 0;alias s_a3d"
// hlg_conncommand "s_show 0;alias s_show"
// hlg_conncommand "s_polykeep 1000000000;alias s_polykeep"
// hlg_conncommand "s_polysize 10000000;alias s_polysize"
// hlg_conncommand "s_automin_distance 2;alias s_automin_distance"
// hlg_conncommand "s_distance 60;alias s_distance"
// hlg_conncommand "s_automax_distance 30;alias s_automax_distance"
// hlg_conncommand "s_occfactor 0.25;alias s_occfactor"
// hlg_conncommand "c_maxdistance 200;alias c_maxdistance"
// hlg_conncommand "c_maxpitch 90;alias c_maxpitch"
// hlg_conncommand "c_maxyaw 135;alias c_maxyaw"
// hlg_conncommand "c_minpitch 0;alias c_minpitch"
// hlg_conncommand "c_minyaw -135;alias c_minyaw"
// hlg_conncommand "cl_showevents 0;alias cl_showevents"
// hlg_conncommand "cl_solid_players 1;alias cl_solid_players"
// hlg_conncommand "cl_smoothtime 0.1;alias cl_smoothtime"
// hlg_conncommand "cl_anglespeedkey 0.67;alias cl_anglespeedkey"
// hlg_conncommand "cl_yawspeed 210;alias cl_yawspeed"
// hlg_conncommand "cl_pitchspeed 225;alias cl_pitchspeed"
// hlg_conncommand "cl_bob 0.01;alias cl_bob"
// hlg_conncommand "cl_bobcycle 0.8;alias cl_bobcycle"
// hlg_conncommand "cl_bobup 0.5;alias cl_bobup"
// hlg_conncommand "cl_lc 1;alias cl_lc"
// hlg_conncommand "cl_lw 1;alias cl_lw"

//====
// Shared Cvars
//====
// hlg_conncommand "cl_movespeedkey 0.3;alias cl_movespeedkey"    // 0.1 = NS, 0.3 = HL, 0.52 = CS
// hlg_conncommand "s_min_distance 8;alias s_min_distance"        // 8 = HL, 5 = CS       
// hlg_conncommand "cl_pitchdown 89;alias cl_pitchdown"           // Use for any mod, except NS.
// hlg_conncommand "cl_pitchup 89;alias cl_pitchup"               // "
// hlg_conncommand "cl_pmanstats 0;alias cl_pmanstats"            // "

//====
// Counter-Strike / CS:CZ Cvars
//====
// hlg_conncommand "max_smokepuffs 120;alias max_smokepuffs"