PDA

View Full Version : Siege Mode bind


xxcommodusxx
03-23-2008, 08:09 PM
I have been setting up some custom binds and for some reason I cannot get my binds for going into and out of siege mode working.

Here is the pertinent code from my autoexec file


setp g_bind_context_goliath "cyclops"
bind "MWHEELDOWN" "addchatline '^2Siege Mode Enabled'; _movedown" "" "cyclops"
bind "MWHEELUP" "addchatline '^2Walker Mode Enabled'; _moveup" "" "cyclops"


I know that the binding is working to a degree in that it comes up with the message saying "Siege Mode Enabled" or "Walker Mode Enabled", but it doesn't actually switch from one mode to the other. All other bindings are working properly.

C works fine for going into Siege mode and SPACE works fine for taking it out of Siege mode, I tried unbinding these for the Cyclops, and now they don't work, but neither does my code. Any suggestions would be appreciated.

Singh400
03-23-2008, 08:17 PM
Try this:


setp g_bind_context_goliath "cyclops"
bind "MWHEELDOWN" "_movedown;addchatline '^2Siege Mode Enabled'" "" "cyclops"
bind "MWHEELUP" "_moveup;addchatline '^2Walker Mode Enabled'" "" "cyclops"

xxcommodusxx
03-23-2008, 08:39 PM
Okay, tried that and it doesn't work either. So I tried adding the addchatline part to the existing 'c' and 'SPACE' commands and it broke them, so I figured that maybe you couldn't combine _movedown and another command (although I thought you just couldn't bind two _ commands to a single key). I then tried just changing the bound key, so that I had the following;


setp g_bind_context_goliath "cyclops"
bind "MWHEELDOWN" "_movedown" "" "cyclops"
bind "MWHEELUP" "_moveup" "" "cyclops"


And it still fails. I tried using 'c' and 'SPACE' to make sure that they weren't still in there and they had no function. After that I went back into the code and manually changed them back from the mousewheels to c and SPACE and it began working again.

Has anybody else seen anything like this? I don't understand at all why it would not let me bind those commands to the mousewheel, every other command I bind to it works and those commands obviously work with other keys.

reyalp
03-23-2008, 09:20 PM
Note that instead of the setp g_bind_context_goliath "cyclops" stuff you could just use "goliath" in the binds instead of cyclops, since that's the default name of the cyclops context.

Of course, you probably want it to work for both the desecrator and the cyclops, so in my cfg I have

setp g_bind_context_desecrator "stroggtank"
setp g_bind_context_goliath "stroggtank"
bind "MOUSE4" "_movedown" "" "stroggtank"
bind "SPACE" "_moveup" "" "stroggtank"


If your context binds aren't working, the first thing to do is load up the game and make sure the cvars are actually set to what you expect. Go into the console and type g_bind_
and press tab.

xxcommodusxx
03-23-2008, 10:16 PM
Okay, so I tested it and the following commands work;


bind "MOUSE4" "_moveup" "" "cyclops"


but the following does not work;


bind "MWHEELUP" "_moveup" "" "cyclops"


I don't mind so much as I have just set it to my wheel tilt buttons, but I would prefer to use the mousewheel for this, does anyone know if this is perhaps related to the scrolling issue of 1.4, or if there is any particular reason that I cannot bind this?

Also, was I correct in assuming that I cannot chain anything with a command that begins with an underscore, such as the following;


bind "[" "addchatline '^2Siege Mode Enabled'; _movedown" "" "cyclops"


Or am I doing something wrong? I ask because I thought the limitation was that you cannot have two commands with an underscore together. Thanks!

reyalp
03-24-2008, 08:54 AM
The mousewheel may be slightly special, I know I've seen similar complaints. Unlike normal buttons, you can't hold down "mwheelup" or "mwheeldown"

You cannot combine an _ command with anything else, so your last example will not work.