Easy.
If im understanding you correctly, you want to be able to use +forward +back
etc to do it the same as marine as well as for commander controls, but
because valve didn't make the key binding menu actually do multiple
commands.. it uses a listpanel etc. you need a little hacky hacky to do it?

Simple:
(Hackyhack!): (an annoying one at that!)

in_main.cpp
//forward = commander scroll up?
static ConCommand startup_cmdr("+cmdr_up",IN_ForwardDown); //+forward
static ConCommand endup_cmdr("-cmdr_up",IN_ForwardUp);  //-forward

//back = commander scroll down?
static ConCommand startdown_cmdr("+cmdr_down",IN_BackDown);     //+back
static ConCommand enddown_cmdr("-cmdr_down",IN_BackUp); //-back

static ConCommand startleft_cmdr("+cmdr_left", IN_MoveleftDown); //+moveleft
static ConCommand endleft_cmdr("-cmdr_left", IN_MoveleftUp);//moveleft
static ConCommand startright_cmdr("+cmdr_right", IN_MoverightDown);
//+moveright
static ConCommand endright_cmdr("-cmdr_right", IN_MoverightUp);//-moveright

then in your key bind file..
"+cmdr_up"                      "Commander Scroll Up"
"+cmdr_down"            "Commander Scroll Down"
"+cmdr_left"            "Commander Scroll Left"
"+cmdr_right"           "Commander Scroll Right"


Rather annoying, but if you wanted to create totally new buttons later, you
could just change the IN_"Command"()  part.

-----Original Message-----
From: Justin Krenz [mailto:[EMAIL PROTECTED]
Sent: January 14, 2006 12:49 PM
To: [email protected]
Subject: Re: [hlcoders] Multiple Commands, Same Key

Sure, I could do that, but I also want to allow the option of the player
setting that command to a different key.  I don't want to force the
player to using only one key for the command.  The main reason behind my
problem is that I have a commander mode.  Some testers have expressed
interest in setting the commander controls to the arrow keys instead of
wasd (the default).  To do that right now, you have to edit the
commander specific cfg file.  I want the average user to easily be able
to edit it in the keyboard controls.  If I put the commander controls in
the keyboard options, then it would definitely not be able to use the
same keys as the infantry movement keys, creating a dilemma.


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to