// OGC Hook Beta 7 config file template
// this file is executed by OGC Hook when HL starts 
// and before all other cfg files (e.g. config.cfg,autoexec.cfg) are loaded.
log 0
#console 1
//cr_connectmsg   "OGC Client.DLL Hook 7.32"
//cr_connectmsg1  "        by "
//cr_connectmsg2  "  System, Bunny771 "
//ter 1 "#scr_connectmsg 0"

// patch cvar: unlocks some cheatprotected built in cvars. using it will also make you detectable by pb's cvarcheck
//    cvars unlocked by 'patch cvar':
//       chase_active 1 //3rd person view
//       r_fullbright 1 //hl builtin lambert
//       gl_wireframe 1 //opengl wireframe effect for walls (not players or models)
//       r_dynamic 0    //no dynamic lightnight anymore (all lights stay on even after switchoff)
//       r_lightmap 1   //fullbright for map...needs restart 
// patch sound: allows sound markers to be drawn and automatic sound aiming
// patch cvar  // remove the first '//' from this line to enable the blocked cvars
// patch sound
patch command       // this line is needed. do not remove it

alias sigblocked ";"
alias siground   ";"
alias sigswitch  ";"

//all cheats off
alias alloff1 "trans 0;smoke 0;flash 0;sniper 0;glow 0;alloff2"
alias alloff2 "recoil 0;jump 0;duck 0;light 0;lock 0;shoot 0;soundfilter 0;speed 0;alloff3"
alias alloff3 "aim 0;lambert 0;wall 0;aimthru 0;barrel 0;spiked 0;alloff4"
alias alloff4 "box 0;glextra 0;weapon 0;name 0;aspeed 0;avdraw 0;alloff5"
alias alloff5 "distance 0;esp 0;info 0;tglow 0;sglow 0;zoom 90;czoom 1000;alloff6"
alias alloff6 "soundfilter 0;bombtimer 0;systime 0;radar 0;cross 0;esp 0"

// cvar aliases for commandmenu (toggles off and on)
alias cvcam0 "#chase_active 0; alias cvcam cvcam1"
alias cvcam1 "#chase_active 1; alias cvcam cvcam0"
alias cvcam cvcam1

alias cvwire0 "#gl_wireframe 0; alias cvwire cvwire1"
alias cvwire1 "#gl_wireframe 2; alias cvwire cvwire0"
alias cvwire cvwire1

alias cvdyn0 "#r_dynamic 0; alias cvdyn cvdyn1"
alias cvdyn1 "#r_dynamic 1; alias cvdyn cvdyn0"
alias cvdyn cvdyn0

alias cvmap0 "#r_lightmap 0; alias cvmap cvmap1"
alias cvmap1 "#r_lightmap 1; alias cvmap cvmap0"
alias cvmap cvmap1

alias cvfull0 "#r_fullbright 0; alias cvfull cvfull1"
alias cvfull1 "#r_fullbright 1; alias cvfull cvfull0"
alias cvfull cvfull1

// auto weapon switch
alias wsec "#weapon_usp;#weapon_glock18;#weapon_deagle;#weapon_p228;#weapon_elite;#weapon_fiveseven"
alias nop  ";"
alias aswitch0 "alias sigswitch nop ;txt Auto weapon switch Off;alias aswitch aswitch1;init 4 aswitch0"
alias aswitch1 "alias sigswitch wsec;txt Auto weapon switch On ;alias aswitch aswitch0;init 4 aswitch1"
aswitch1

// speed hack
alias speed_n1  "txt Speed Hack 1.2;init 5 speed_n1;speedon 1500;speedoff 0;aspeed 1.2;speed 1.2;#cl_timeout 999999"
alias speed_a2x "txt Auto Speed Hack 2x;init 5 speed_a2x;speedon 1000;speedoff 5000;aspeed 2;#cl_timeout 999999"
alias speed_2x  "txt Speed Hack      2x;init 5 speed_2x ;speedon 1000;speedoff 5000;aspeed 1;speed 2;#cl_timeout 999999"
alias speed_off "txt Speed Hack     Off;init 5 speed_off;aspeed 1;speed 1;#cl_timeout 35"

//activate esp only while a certain key is pressed ... u can also do this for every other cvar
alias +doesp "esp 1"
alias -doesp "esp 0"

//zoom is a command which takes new fov
//90 is default, >= 0 also resets to default
alias +dozoom "zoom 30"
alias -dozoom "zoom 90"

// continuous zoom: medium 
alias +cm1 "czoom 1" // start zoom in with speed 2
alias -cm1 "czoom 0;alias +cm +cm2;alias -cm -cm2" // stop zoom
alias +cm2 "czoom 1000" // 1000 resets zoom
alias -cm2 "alias +cm +cm1;alias -cm -cm1"
alias +cm +cm1
alias -cm -cm1

// continuous zoom: fast 
alias +cf1 "czoom 2"    // start zoom in with speed 2
alias -cf1 "czoom 0;alias +cf +cf2;alias -cf -cf2" // stop zoom
alias +cf2 "czoom 1000" // 1000 resets zoom
alias -cf2 "alias +cf +cf1;alias -cf -cf1"
alias +cf +cf1
alias -cf -cf1

// crosshair
color cross 100 100 255 150
cross 3

// blood
alias bloodon  "#gl_polyoffset -0.001;#precache 1;#max_shells 0;#max_smokepuffs 0;#fastsprites 0;#mp_decals 1000;#r_decals 1000;bloodon2"
alias bloodon2 "#violence_ablood 1;#violence_agibs 1;#violence_hblood 1;#violence_hgibs 1"

alias blood1 "blood  2;bloodon;init 7 blood1"
alias blood2 "blood  5;bloodon;init 7 blood2"
alias blood3 "blood 15;bloodon;init 7 blood3"

// log 1