Game Development Community

Keyboard Steering / Mouse Aiming

by Jared Hosh · in Torque Game Engine · 05/15/2003 (11:49 am) · 7 replies

Greets all!

Our team is planning a simultanious keyboard steering and mouse aiming function. So you can shoot out of your vehicle as you drive around. Since we've just started working on this feature, and no doubt others would enjoy this feature in their projects. I'd like to get some comments, opinions or resources for this type of enhancement.

Our idea, is when you mount a vehicle, the player directional keys switch to the vehicle, and LMB becomes Fire while RMB becomes Aim. That way the view resets to forward when the player isn't aiming at anything, keeping those eyes on the road, and the players aim doesn't constantly drift while driveing (which is disorienting). Also, Jump becomes Handbrake but that's a whole new problem/thread. ;)

Please be gentile with me, I'm not the coder on this project. :)

-Has anyone completely replaced mouse steering in vehicles with keyboard controls?

-Are there any current engine limitations to this style of drive by?

#1
05/17/2003 (5:54 pm)
is possible for steering choose keyboard key simply changing controls in the option menu.
you can bind the rmb to call a scripted function that swap the camera betwin the eye of the vehicle to the eye of the weapon and relative orientation or look at target.
I dont think someone has just make this function.
if it's true congratulation for the idea also if it has to be tested infact like you have write there will be disorientation problems in both views.
if i have good memory i have just see the implementation of handbrake in racing (buggy) mod.
why don't have a jump dunction also for vehicles like a great arcade racing game(who have a dreamcast know what is the game)?
however there is a little problem with keyboard steering the fact that tires don't return at neutral position after you release the key fixable in the c code of the weeledvehicle.
if you fix it in script let me know.
#2
11/24/2003 (7:12 pm)
Jared, did you have any luck implementing this style of vehicle control? I'm curious since I'm starting to research the same thing.
#3
11/24/2003 (11:55 pm)
I can stear and shoot at the same time but i havent had
time to get it work as i wanted yet .
I want to limit the body rotation when im mounted but
i havent got the smooth movement yet .
What i did i changed the player block on move when mounted
to not to block the mouse movement ,hope you get this to work
But there are moore treads about this !

-Billy
#4
12/07/2005 (1:50 am)
The tank pack comes with script to provide a seperate control mapping when you mount a vehicle and reset it to normal when you get out.
#5
12/26/2005 (9:32 pm)
Where do u get the tank pack from?
#6
06/01/2006 (8:46 am)
Has any progress been made on this issue? It seems like it could be applied to a project I'm working on.
#7
06/01/2006 (11:17 am)
What do you mean? You can buy the tank pack which comes with source code for a turret type vehicle you can mouse aim/key drive with. Or you can try doing it on your own by implementing the mounted turret resources floating around onto vehicle classes.