9 User(s) Online
|
|
|
|
Part three: Using + and - in aliases
You can also make a key do something, only when it's down. To do this you will have to use
+ and - in your script. The alias with the + is what you want to do when you press (and hold)
the key, and the - is what you want when you release the key.
Here is a quite handy example:
alias +setC4 "weapon_c4; +duck; wait; +attack"
alias -setC4 "-attack; wait; -duck;"
bind "c" "+setC4;"
You get the idea? Once you press C, you will pick the C4, then you'll duck and attempt to plant it (remember to hold the key down).
The moment you release the C key, you will stop attacking and stand up. Isn't that cute?
Part four: What can I use?
There's a large number of commands to use in your aliases, and this is just a
small part. Remember you can combine as many commands you want, just the way you prefer.
These commands selects a weapon (if you have it of course).
weapon_glock18 weapon_usp weapon_deagle weapon_p228 weapon_mp5navy weapon_m4a1
weapon_p90 weapon_tmp weapon_m3 weapon_xm1014 weapon_ak47 weapon_sg552 weapon_scout weapon_awp
weapon_g3sg1 weapon_m249 weapon_c4 weapon_knife weapon_flashbang weapon_hegrenade
Move commands:
+attack
+jump
+duck
+reload
+use
+speed (walk)
Various commands:
radio1 - first message group
radio2 - second message group
radio3 - guess
buyequip - to the byu equipment menu
buy - to the buy menu
buyammo1 - buy primary ammo
buyammo2 - buy secondary ammo
chooseteam - select team
nightvision - nightvision on/off
drop - drop current weapon
invprev - previous weapon
invnext - next weapon
+showscores - display the scores
snapshot - takes a screenshot
quit - quits the game
Weapons/armor/grenades buy aliases:
alias vest "buyequip; menuselect 1;"
alias vest_helm "buyequip; menuselect 2;"
alias flash "buyequip; menuselect 3;"
alias frag "buyequip; menuselect 4;"
alias buyPrimary "buyammo1"
alias buySecondary "buyammo2"
alias M3Super "buy; menuselect 2; menuselect 1;"
alias XM1014 "buy; menuselect 2; menuselect 2;"
alias mp5 "buy; menuselect 3; menuselect 1;"
alias steyr "buy; menuselect 3; menuselect 2;"
alias p90 "buy; menuselect 3; menuselect 3;"
alias ak "buy; menuselect 4; menuselect 1;"
alias m4 "buy; menuselect 4; menuselect 2;"
alias colt "buy; menuselect 4; menuselect 3;"
alias scout "buy; menuselect 4; menuselect 4;"
alias awp "buy; menuselect 4; menuselect 5;"
alias G3 "buy; menuselect 4; menuselect 6;"
Next --> Part five: Conclusion
|
|
|