I'm thinking that perhaps someone else than me will find it useful. :)
Code: Select all
alias +keymodifierdown "set x_keyboard_keymod 1"
alias -keymodifierdown "set x_keyboard_keymod 0"
alias keymodifier "test $x_keyboard_keymod %2 %1"
1. Bind a key or button to use as a modifier key.
Example:
Code: Select all
bind k +keymodifierdown
Code: Select all
STRUCTURE: keymodifier <command when not pressed> <command when pressed>
bind c "keymodifier sayhi wohoo"
Code: Select all
alias sayhi "say Hi!"
alias wohoo "say WOHOO!; +jump; wait 1; -jump"
And if I hold down the 'k' button and then press 'c' the player will jump and write "WOHOO!" to the chat.
Hope this is to any use! :)