Moderators: Nexuiz Moderators, Moderators
bind mwheelup ";"
bind mwheeldown ";"esteel wrote:Hi.
Whats strange is that on the one hand you say its hard to use the mousewheel yet it seems you use it accidentally. Well you can just remove the weapon switch from the mouse wheel.
http://forums.alientrap.local/viewtopic.php?t=1344
KadaverJack wrote:"impulse" just sends a numeric code to the server, which will trigger various actions... In Nexuiz impulse 1-9 will switch to a specific weapon (1 == laser, 2 == shotgun, ..., 9 == rocket launcher), 10 & 12 will switch to the next/previous weapon, 11 will switch to the last used weapon, 17 will make you drop your weapon. (13-16 and a few more >18 are used for debugging)
Altobe wrote:bind mouse3 "toggle impulse1; wait; +atack"
bind MOUSE3 "impulse 1; wait; +attack"What's the difference between alias and bind?
alias +laserjump "impulse 1"
alias -laserjump "+attack; wait; -attack; wait; impulse 11"
bind MOUSE3 +laserjumpesteel wrote:Are you sure the button works? Some mouse drivers do funny stuff if you press some buttons but DO NOT send the button press to applications. (like some popup a menu, do a double click or something similar)
The alias itself should be entered in the ingame console.. Or if you do not want to do that each time (aliases are NOT saved) create a file Nexuiz/data/autoexec.cfg and write those aliases into there. That file is read when Nexuiz is started so the aliases will work then.
esteel wrote:create a file Nexuiz/data/autoexec.cfg and write those aliases into there. That file is read when Nexuiz is started so the aliases will work then.
esteel wrote:esteel wrote:create a file Nexuiz/data/autoexec.cfg and write those aliases into there. That file is read when Nexuiz is started so the aliases will work then.
esteel wrote:You can open the windows explorer, go into the Nexuiz/data directory, rightclick and chosse new file, text document and change its name to autoexec.cfg..
Or use notepad or some other editor and use file, save as and use the name autoexec.cfg ..
alias +laserjump "impulse 1; +attack; wait; -attack; wait"
alias -laserjump "impulse 11"Altobe wrote:OK I was able to create the file and it's operating, but I must have the code wrong, here's what I've got:
- Code: Select all
alias +laserjump "impulse 1; +attack; wait; -attack; wait"
alias -laserjump "impulse 11"
I have it bound to mouse 3, when I push it, my current weapon fires, then it switches to the laser, and when I let go it switches back to the original weapon. I can't figure out why the firing is reversed, any thoughts?
alias +laserjump "impulse 1; wait; +attack; wait; -attack; wait"
alias -laserjump "impulse 11"alias +laserjump "impulse 1; wait; +attack; wait; -attack; wait"
alias -laserjump "impulse 11"Altobe wrote:I added the wait, but now it doesn't fire at all. When I press mouse 3 it switches, then when I let go it switches back, but no fire.
KadaverJack wrote:(you might need more than one "wait" to make it work, since wait only waits for the next frame, but switching to the laser need more time)
alias +laserjump "impulse 1; wait; wait; wait; wait; wait; wait; +attack; wait; -attack"alias +laserjump "impulse 1"
alias -laserjump " +attack; wait; wait; wait; wait; -attack; impulse 11"
esteel wrote:Thats a basic problem with aliases.. its hard to get timings right. Also i think its more flexible (you might not want to switch back but to an other gun) and in the long run even easier to to that stuff 'by hand' aka just switch guns, look down and jump/fire at the same time. With some training it will become easy and then you can do it with all games and all weapons..
Altobe wrote:I do understand what you are talking about, and I don't want to develop bad habits, but this just seems so cool.I'm sure I'll regret it later. I can see down the road when for some reason I don't have this alias, and I can't laser jump worth a crap, I'll be saying to myself, "man, I should have listened to esteel"
Anyway, thanks for the help with the autoexec.cfg.
By the way, I downloaded your demos' about jumping and they helped me alot.