Weapon Binds

Discussion of server or client modifications. Custom hudguns, GUI's, websites, etc.
Post Reply
DeathStar
Leaders
Posts: 334
Joined: Sun Jun 12, 2016 8:07 am
Location: Malibu, CA
Playstyle: map/frag
Contact:

Weapon Binds

Post by DeathStar » Wed Nov 15, 2017 10:13 am

Here are some highly requested weapon binds.

1) Download and unzip wepscript.cfg.zip
2) Put wepscript.cfg in gamedata
3) Open sauerbraten/autoexec.cfg and on a newline put:

Code: Select all

exec wepscript.cfg
4) open wepscript.cfg to see what the script can do

Credit to Degrave for the original script, modified by DeathStar.

Code: Select all

//Definitions
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;  ]
s = [ showgui servers ] 
 
//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]
Attachments
wepscript.cfg.zip
(963 Bytes) Downloaded 105 times
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest