Weapon binds
Posted: Sat Dec 03, 2016 6:30 pm
Setup
1) paste into autoexec.cfg
2) relaunch sauerbraten
3) done
Provided by Zuchi/Degrave/Others
1) paste into autoexec.cfg
2) relaunch sauerbraten
3) done
Code: Select all
nogun = [ weapon 0 ]
fi = [ setweapon FI; attack; ]
sg = [ setweapon SG; attack; ]
cg = [ setweapon CG; attack; ]
rl = [ setweapon RL; attack; ]
gl = [ setweapon GL; attack; ]
ri = [ setweapon RI; attack; ]
pi = [ setweapon PI; attack; ]
//Weapon scripts
fast_shot = [ lastwep = (getweapon); if (= $lastwep $arg1) [] [ weapon $arg1 ]; attack; onrelease [ setweapon $lastwep ] ]
//Efficbinds
bind "Q" [cycleweapon 2 3]
bind "F" [cycleweapon 2 4]
bind "E" [fast_shot 5]
bind "2" [fast_shot 1]
bind "M" [dropflag]
bind "G" [thirdperson (= $thirdperson 0); if (= $thirdperson 0) [echo thirdperson OFF] [ echo thirdperson ON] ]//You should change your say command to another key
bind "K" [echo "^f4Commiting suicide efficently..."; kill]