Quake1 Weapon Bindings


aho

Member
Joined
May 16, 2009
Messages
183
Website
kaioa.com
Here is a little script which allows quicker weapon access. If you hold the select key, you can switch to any weapon with left, right, up, down, L, and R. The script uses weapon groups to make things easier:

up = ssg if available, otherwise sg
down = sng if available, otherwise ng
right = rl if available, otherwise gl
left = gl if available, otherwise rl (well, you usually get the gl first)
L = tb
R = axe

If your up/down/left/right/L/R bindings differ, you'll have to adjust the script accordingly (that is: the stuff in -setbind and the things the "donothing" alias resets).

Just save it as "autoexec.cfg" and put it where your "config.cfg" is. It will get loaded automatically then.

Code:
// impulse
// 1 - Select Axe.
// 2 - Select Shotgun.
// 3 - Select Super Shotgun.
// 4 - Select Nailgun.
// 5 - Select Super Nailgun.
// 6 - Select Grenade Launcher.
// 7 - Select Rocket Launcher.
// 8 - Select ThunderBolt.
// 9 - Give all weapons and ammo cheat.
// 10 - Select the next weapon.
// 11 - Give rune cheat.
// 12 - Select the previoius weapon.
// 255 - Give Quad Damage cheat.

//axe
alias axe "impulse 1"

//shotgun + super shotgut
alias sg "impulse 2;wait;impulse 3"

//nailgun + super nailgun
alias ng "impulse 4;wait;impulse 5"

//explosive rl
alias rl "impulse 6;wait;impulse 7"

//explosive gl
alias gl "impulse 7;wait;impulse 6"

//thunderbold
alias tb "impulse 8"

//kill all actions
alias donothing "-forward;-back;-left;-right;-moveleft;-moveright"

alias +setbind "bind UPARROW sg;bind DOWNARROW ng;bind LEFTARROW gl;bind RIGHTARROW rl;bind ALT tb;bind INS axe;donothing"
alias -setbind "bind UPARROW +forward;bind DOWNARROW +back;bind LEFTARROW +left;bind RIGHTARROW +right;bind ALT +moveleft;bind INS +moveright"

//B = select on the wiz
bind "B" "+setbind"

Works fine with tyrquake and glquake. You can for example also extend it to make + and - do quicksave and quickload (if select is pressed).
 
Back
Top