Input Controls

Discuss Nexuiz gameplay here.

Moderators: Nexuiz Moderators, Moderators

Mon Apr 02, 2007 7:21 pm

  • I have some questions about my set up. Thanks in advance and here goes. I play on a mac and am using osx.4.9. I have a 3 button logitech laser mouse, but the scroll wheel button doesn't seem very precise, it takes a lot of pressure. I like the (w,a,s,d) for my movement, and the space bar for jumping. I read in another post about having the laser bound to a key, to where it starts firing then after I jump and release the button, or key, it switches back to the weapon I had before. That's something I would like to have bound to button 3, but I wasn't sure if the other post was concerning windows or mac.Also if I have the laser jump bound to that button I don't want it to switch weapons if I accidentally move the wheel I guess what I'm asking for is some suggestions on optimizing what I've got. I also don't really like the fact that if I pick up another weapon it automatically switches to that weapon. Is there any way to disable that? All my weapons are bound to the number keys (I guess that is default), but I seem to get mixed up when I try to switch, especially the laser jumping. I still have to look at the keys, I know I just have to practice more, but if I don't look sometimes I can't find my movement keys and I'm dead in the water, again thanks in advance for any help.
    User avatar
    Altobe
    Alien
     
    Posts: 115
    Joined: Sat Mar 31, 2007 5:14 pm
    Location: Ohio USA

Mon Apr 02, 2007 8:01 pm

  • Hi :).
    That laser thing you read in this other post should work on ALL version.. mac, linux, windows does not make a difference. However i think those scripts are not really helpful once you got used to the weapons on keys around your movment keys. Thats often faster and more flexible.
    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.
    Code: Select all
    bind mwheelup ";"
    bind mwheeldown ";"

    should do that. If you really remove the two lines from your config.cfg the default ones will be used.
    You can switch of the automatic weapon switch on pickup in the Option/Player menu. Its active (or well inactive) the next time you connect to a server.
    I think using the numbers is bad, that MUST be confusing, but the numbers are kind of a default ever since gaming exists. I changed this to keys around the ones i use for moving. In your case this would be keys around wasd.
    If you have not yet read it, i think this should help you: http://forums.alientrap.local/viewtopic.php?t=1344
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Mon Apr 02, 2007 8:10 pm

  • 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

    On my mouse I have the 2 main buttons and the wheel is actually a button too. You just push down the whole wheel, and I forgot the wheel also moves to either side, so I guess it really is a 5 button mouse

    I'm sorry if I'm sounding slow, but could you please just tell me how to bind actions to keys and mouse buttons. Thank you esteel for all your help! :D
    User avatar
    Altobe
    Alien
     
    Posts: 115
    Joined: Sat Mar 31, 2007 5:14 pm
    Location: Ohio USA

Mon Apr 02, 2007 8:16 pm

  • with the nex is there a secondary fire? Because for me its zoom. I'd like to remove that zoom and make another button zoom.
    User avatar
    Altobe
    Alien
     
    Posts: 115
    Joined: Sat Mar 31, 2007 5:14 pm
    Location: Ohio USA

Mon Apr 02, 2007 8:21 pm

  • Well i have a real 5 button mouse: http://www.razerzone.com/index.php?main ... ducts_id=9
    I use the mouse wheel 'button' to display the scoreboard but i never accidentally switched guns. Maybe there are indeed better and worse mousewheels :)
    Well the simplest way to bind actions to a key is to use the Options/Controls menu. If you want to bind actions that are on in this menu or aliases you will have to use the ingame console. You can open it by pressing shift-escape and close it again by pressing escape.
    Just enter lines like in the config file. For example:
    bind w +forward
    bind mouse1 +attack
    bind e "impulse 2"
    if a action contains a space or a ; you have to surreound it with " as you can see above. If you need more info just ask.

    There is a zoom function that you can bind to a key.. By default mouse3 (guess thats your mousewheel) will zoom independent of the weapon. The nexgun does not have a second firemode so i guess it seemed logical to make it zoom instead.
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Tue Apr 03, 2007 2:04 am

  • I figured out that my mouse is really not made for this sort of thing, I need something a little more advanced. New toys are awesome! :P
    User avatar
    Altobe
    Alien
     
    Posts: 115
    Joined: Sat Mar 31, 2007 5:14 pm
    Location: Ohio USA

Tue Apr 03, 2007 2:07 am

  • esteel wrote:

    Just enter lines like in the config file. For example:
    bind w +forward
    bind mouse1 +attack
    bind e "impulse 2"

    I understand the +forward, and +atack, but what does impulse2 mean?

    I mean the command 'impulse'
    User avatar
    Altobe
    Alien
     
    Posts: 115
    Joined: Sat Mar 31, 2007 5:14 pm
    Location: Ohio USA

Tue Apr 03, 2007 2:28 am

  • "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)
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

Tue Apr 03, 2007 2:35 am

  • 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)

    So to add a quick change for laser jumping it would start like:

    bind mouse3 "toggle impulse1; wait; +atack"

    Or not. please educate me.
    What's the difference between alias and bind?
    User avatar
    Altobe
    Alien
     
    Posts: 115
    Joined: Sat Mar 31, 2007 5:14 pm
    Location: Ohio USA

Tue Apr 03, 2007 3:13 am

  • Altobe wrote:bind mouse3 "toggle impulse1; wait; +atack"

    No, it's gotta be:
    Code: Select all
    bind MOUSE3 "impulse 1; wait; +attack"
    (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)

    What's the difference between alias and bind?

    "bind" assigns an action to a button, so when you press the button, the command is executed.
    "alias" lets you assign a new name for a command, so you can run a series of commands with a short keyword (e.g. 'alias gg "say *gg*"' will make you say "*gg*", everytime you enter "gg")
    There's a special use for alias:
    Code: Select all
    alias +laserjump "impulse 1"
    alias -laserjump "+attack; wait; -attack; wait; impulse 11"
    bind MOUSE3 +laserjump

    In this case, +laserjump is executed, when you press mouse3, that will switch your weapon to the laser. When you release the button, -laserjump is executed, you will fire once and switch back to weapon you used before.
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

Tue Apr 03, 2007 3:41 am

  • Thanks a lot man. I'll repost when I get it done. :D
    User avatar
    Altobe
    Alien
     
    Posts: 115
    Joined: Sat Mar 31, 2007 5:14 pm
    Location: Ohio USA

Tue Apr 03, 2007 4:07 am

  • I Can't to seem to get it to work, in the console right? I don't know? I think I'm tired. I don't think nexuiz is recognizing my mouse 3. If I go to options/controls and try to assign any action to mouse 3 nothing happens :cry:
    User avatar
    Altobe
    Alien
     
    Posts: 115
    Joined: Sat Mar 31, 2007 5:14 pm
    Location: Ohio USA

Tue Apr 03, 2007 10:13 am

  • 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.
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Tue Apr 03, 2007 12:30 pm

  • esteel 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.


    I can't seem to find the file Nexuiz/data/autoexec.cfg.
    User avatar
    Altobe
    Alien
     
    Posts: 115
    Joined: Sat Mar 31, 2007 5:14 pm
    Location: Ohio USA

Tue Apr 03, 2007 12:43 pm

Tue Apr 03, 2007 7:47 pm

  • 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.

    Yes, but I'm sorry to say I don't think I know how to do that. Could you explain it to me, please?
    User avatar
    Altobe
    Alien
     
    Posts: 115
    Joined: Sat Mar 31, 2007 5:14 pm
    Location: Ohio USA

Tue Apr 03, 2007 8:26 pm

  • 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 ..
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Tue Apr 03, 2007 9:29 pm

  • 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 ..

    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?
    User avatar
    Altobe
    Alien
     
    Posts: 115
    Joined: Sat Mar 31, 2007 5:14 pm
    Location: Ohio USA

Tue Apr 03, 2007 9:50 pm

  • 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?


    You're switching to the laser with the "impulse 1" command but you're not waiting for it to switch before you fire with "+attack"... so you begin firing with your current weapon. Add another "wait:".
    Code: Select all
    alias +laserjump "impulse 1; wait; +attack; wait; -attack; wait"
    alias -laserjump "impulse 11"
    Xeno
    peregrinus originis incognitae
     
    Posts: 396
    Joined: Wed Nov 15, 2006 10:42 pm

Tue Apr 03, 2007 10:16 pm

  • Code: Select all
    alias +laserjump "impulse 1; wait; +attack; wait; -attack; wait"
    alias -laserjump "impulse 11"



    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. :(

    PS: That's copied straight out of my autoexec.cfg
    User avatar
    Altobe
    Alien
     
    Posts: 115
    Joined: Sat Mar 31, 2007 5:14 pm
    Location: Ohio USA

Tue Apr 03, 2007 10:29 pm

  • 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)

    try
    Code: Select all
    alias +laserjump "impulse 1; wait; wait; wait; wait; wait; wait; +attack; wait; -attack"
    and if it doesn't work, stuff in even more waits... But if a server has a longer weapon switch time, your alias won't work anymore. That's why my version fires on release, so you can hold down the button until you are ready to jump.
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

Tue Apr 03, 2007 10:35 pm

  • 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..
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Tue Apr 03, 2007 10:53 pm

  • Thanks Kadaver for the input, I prefer it on the -laserjump too. This is what I changed it to and it seems to work well.
    Code: Select all
    alias +laserjump "impulse 1"
    alias -laserjump " +attack; wait; wait; wait; wait; -attack; impulse 11"


    :lol:
    User avatar
    Altobe
    Alien
     
    Posts: 115
    Joined: Sat Mar 31, 2007 5:14 pm
    Location: Ohio USA

Tue Apr 03, 2007 11:00 pm

  • 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..

    I do understand what you are talking about, and I don't want to develop bad habits, but this just seems so cool. 8) 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" :x Anyway, thanks for the help with the autoexec.cfg.
    By the way, I downloaded your demos' about jumping and they helped me alot.
    User avatar
    Altobe
    Alien
     
    Posts: 115
    Joined: Sat Mar 31, 2007 5:14 pm
    Location: Ohio USA

Tue Apr 03, 2007 11:28 pm

  • If I wanted to create another alias would I put it in the same autoexec file or do I have to make another one? I assume I would put it in the same one, but we all know what happens when we assume. :)
    User avatar
    Altobe
    Alien
     
    Posts: 115
    Joined: Sat Mar 31, 2007 5:14 pm
    Location: Ohio USA

Tue Apr 03, 2007 11:40 pm

Wed Apr 04, 2007 12:27 am

  • 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. 8) 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" :x Anyway, thanks for the help with the autoexec.cfg.
    By the way, I downloaded your demos' about jumping and they helped me alot.

    Well i carry all my config files on a usb stick thats a way to make sure you always have 'your' configuration :).
    But your alias already shows stuff that now works different.. If you want to laser jump really high (jump and fire at the same time) you have to press jump and RELEASE your alias button. Normally you would press jump and PRESS fire. It also works like this in most other games. But yeah using an alias is very cool and tempting. Just use what ever you feel good with. Thats the golden rule :)

    I guess you have taken my jump demos from the Basic basics or: What i wish someone told me half a year ago ( http://forums.alientrap.local/viewtopic.php?t=1344 ) Thread? Well in those i basicly just show the jumping without weapons. But i'm sure you can find other demos or just spectate people online to watch weapon jumping.
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am



Return to Nexuiz - Gameplay




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest