The following is an example of an autoexec that has buy scripts, toggle scripts
and game configs in it so you can see an example of how it all looks when used
together.

//Walk Toggle Script
alias walk "+speed; bind q run"
alias run "-speed; bind q walk"
bind q "walk"

//Net_Graph Script
alias +netgraph "net_graph 3"
alias -netgraph "net_graph 0"
bind ctrl "+netgraph"

//Buy Menu Scripts
bind kp_home "buy deagle; buyammo2; buyammo2"
bind kp_uparrow "buy scout; buyammo1"
bind kp_pgup "buy mp5navy; buy primammo"
bind kp_leftarrow "buy galil; buy famas; buy primammo"
bind kp_5 "buy ak47; buy m4a1; buy primammo"
bind kp_rightarrow "buy sg552; buy aug; buy primammo"
bind kp_end "buy hegrenade; buy flashbang; buy smokegrenade"
bind kp_downarrow "buy primammo; buy secammo"
bind kp_pgdn "buy vest; buy vesthelm"

//Game Configs
cl_showfps 1
hud_drawhistory_time 1
hud_deathnotice_time 3
hud_saytext_time 5
cl_smooth 0
cl_ragdoll_collide 1
bind mouse5 "use weapon_hegrenade"
bind mouse4 "use weapon_flashbang"
bind mouse3 "use weapon_smokegrenade"

0 komentāri