--
[ Picked text/plain from multipart/alternative ]
what you can do is replicate the keyboard bind thing and make 2 copies, one
for in vehicle and one for in aircraft...
then you would have to override how key binds are retrieved and use your own
binds for each case
On 1/15/06, Justin Krenz <[EMAIL PROTECTED]> wrote:
>
> What I want to do is make the keyboard configuration like Battlefield 2.
> That is the easiest way to put it. You go into the Controls section
> and you have different areas for "On Foot", "In Vehicle", "In Aircraft",
> etc. You can assign one key to a command in the "On Foot" section and
> then assign that same key to a different command in the "In Vehicle"
> section, and the game will change the function of the key based on
> whether you're on foot or in a vehicle.
>
> What I decided to do for now is just let you customize the infantry
> controls in the Options Keyboard area like usual, and then if you want
> to change the Vehicle or Commander controls, you'll have to edit
> separate CFG files for each.
>
> Tony "omega" Sergi wrote:
> > 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.
> >
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
--
ts2do
--
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders