Game Development Community

where in the code do the bindings switch?!?!?!

by Anthony Rosenbaum · in General Discussion · 01/11/2002 (2:01 pm) · 3 replies

For example when I impliment the stardard vehic. tut out on the web
you can mount the plane but the control changes, also you can't fire any weapons you are holding?
So where in the which script or hard code does this take place and how do I bind keys for vehicles?
can anyone help?
Anthony
p.s. if you have noticed I have been posting a lot recently so I can make a "Newbies How-To" page. So OUR community can build up and let the GG ppl get their game going too .

#1
01/11/2002 (6:22 pm)
client/config.cs is the place i make most of my keybinds... check there for examples on how to do all kinds of key binds
ryan
#2
01/11/2002 (6:40 pm)
just my luck, none such file in my version, mind doing a copy and paste for me?
#3
01/13/2002 (6:44 am)
If you want to set the defaults for your game, edit the control bindings in fps/client/scripts/default.bind.cs.

The fps/client/config.cs is created by the options dialog when controls are remapped and hence can be considered temoporary bindings.

If you do change default.bind.cs, you will need to delete the config.cs the first time you run your game because it overrides deafult.bind.cs (check fps/client/init.cs to see where it exec's those two files).

Justin Mette
21-6 Productions