alias save "saveall;txt Settings saved."
alias load "exec settings;txt Settings loaded."
load

// bind kp_rightarrow menu_select
// bind kp_leftarrow  menu_back
// bind kp_uparrow    menu_up
// bind kp_downarrow  menu_down


alias +showgui "gui 1"
alias -showgui "gui 0"
bind mouse4 +showgui
bind v +showgui

// working on
alias +constantgui "gui 1;bind mouse1 +gui_drag"
alias -constantgui "gui 0;gui_click 0; unbind mouse1"

-showgui

alias menu_0      "menu_off   ;alias menu_toggle menu_1"
alias menu_1      "menu_select_press;alias menu_toggle menu_0"
alias menu_toggle menu_1

alias sigmenuoff  "alias menu_toggle menu_1;save"
bind "ins" "save"
bind "home" "console_toggle"

alias +aim "aim 1"
alias -aim "aim 0"
alias "ts" "mytarget 0"
alias "cts" "mytarget 1"
alias "aim_m2" "bind mouse2 +aim"
alias "aim_m3" "bind mouse3 +aim"
alias boxes "box 1; bind mouse3 boxes2"	
alias boxes2 "box 0; bind mouse3 boxes"

#console 1
alias "ter" ".buyequip;.wait;.menuselect 1;.wait;.wait;.menuselect 10;.wait;.menuselect 10;.wait;.menuselect 10;.wait;.weapon_knife;.slot10;.wait;.slot10"
alias "ct" ".buyequip;.wait;.menuselect 2;.wait;.wait;.menuselect 10;.wait;.menuselect 10;.wait;.menuselect 10;.wait;.weapon_knife;.slot10;.wait;.slot10"

alias siground ""
alias sigalive ""
alias sigdead ""
alias repeat2 ""

//       ZOOMING
alias +dozoom "zoom 30"
alias -dozoom "zoom 90"

// continuous zoom: medium 
alias +cm1 "czoom 2" // 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 4"    // 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

// respawn cheat
alias revive     "text Respawning;.chooseteam;.menuselect 6;.chooseteam;.menuselect 5;randomskin"
alias randomskin ".menuselect 5;later 0.1 .slot5;later 0.25 .slot5;later 0.5 .slot5;later 1.0 .slot5"
alias countdown3 "text == 3 ==;later 1 text == 2 ==;later 2 text == 1 =="
alias waitrevive "countdown3;later 3 if is alive nop else revive"

alias respawn_on  "alias respawn_t respawn_off;text Respawn after dying ON;  alias sigdead waitrevive"
alias respawn_off "alias respawn_t respawn_on ;text Respawn after dying OFF; alias sigdead"
respawn_off

alias quit ".quit"
//init
//hook

//shild bug
alias wa15 ".wait; .wait; .wait; .wait; .wait; .wait; .wait; .wait; .wait; .wait; .wait; .wait; .wait; .wait; .wait"
alias wa45 "wa15; wa15; wa15"

//bind "f10" "buy_sm; wait; .wait; get_sm;throw_sm;buy_colt"
alias buy_sm ".shield; .secammo; .sgren"
alias get_sm ".weapon_smokegrenade; wa45"
alias throw_sm ".+attack; .wait; .wait; wa45; .wait; .-attack"
alias buy_colt ".wait; .wait; .wait;.wait; .m4a1; .primammo"

// 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 blood blood1"
alias blood2 "blood  5;bloodon;init blood blood2"
alias blood3 "blood 15;bloodon;init blood blood3"

// turn on winamp
winamp 1 // not a cvar, a command