Steering with commands Created 12 years ago2012-05-20 15:37:31 UTC by commieman commieman

Created 12 years ago2012-05-20 15:37:31 UTC by commieman commieman

Posted 12 years ago2012-05-20 15:37:31 UTC Post #306341
Hi,

Most people steer (prop_vehicle_jeep) vehicles with WSAD but I need to steer vehicles without entering them.

Now this is fine for acceleration and braking, I made a script that makes an alias for +car01throttleon and then I can bind a key to +car01throttleon and the vehicle will acclerate and the same thing works for braking, but if I try that for steering the front wheels only turn one notch, and from centre to full-lock left it's 35 notches so practically nothing happens when I steer.

Now, when I use the console to "ent_fire car01 steer -1" it will steer fully left, or if I make a logic_relay with that output it will work, but if I try to bind any key to trigger them directly or indirectly I only get one notch of steering.

I have tried using a game_ui alone and with a logic_compare, I have tried a script to make the keypress steer, I've made a script to execute a script to steer, a script to trigger a logic_relay, I've used point_servercommand, point_clientcommand... I've run out of ideas.

Basically, if I type a console command it will steer, if I bind a key to do the work it barely steers.
Posted 12 years ago2012-05-20 16:06:04 UTC Post #306342
I'm confused. But have you tried using a parameter after the steering command? Perhaps a greater number will make the turn more narrow?
I've never tried it this myself. But since it just steers a little if you put nothing behind the command it is probably because the default parameter is 1 (or a generally small number), IF the command uses parameters.
Madcow MadcowSpy zappin my udder
Posted 12 years ago2012-05-20 16:32:45 UTC Post #306343
The steering range is between -1 and 1, 0 is centred. I had tried asking it to steer "10" but it had the same effect.
Posted 12 years ago2012-05-20 16:59:12 UTC Post #306344
What happens if you change it to 0<x<1, does it then steer even less?
What happens if you give it a relatively huge number?
Madcow MadcowSpy zappin my udder
Posted 12 years ago2012-05-20 18:59:18 UTC Post #306345
Try 0.5 or -0.5 etc if the full range is -1, 0, 1.
Crollo CrolloTrollo
Posted 12 years ago2012-05-20 21:37:13 UTC Post #306348
I bound some keys to steer the car by 1.0, 10.0 and also 0.2, they all steered the same minimal amount which is about 0.03
Posted 12 years ago2012-05-20 22:18:47 UTC Post #306349
I'm a total noob with source entities still, but have you ever seen tophattwaffle's mouse-controlled turret?

Maybe you could use the mouse to steer? Would it solve your problem if you could get it to work?

I'm want to try the same thing with the mini game plane in this map by charli::
User posted image

The minigame is 2 aircraft carriers with ten flyable planes on each. The planes are awesome to fly, but almost impossible to control so i want to adapt tophattwaffle's tutorial myself.
Captain Terror Captain Terrorwhen a man loves a woman
Posted 12 years ago2012-05-20 22:19:00 UTC Post #306350
Unfortunately the turret wouldn't help me, I could build a turret and have keys to control yaw and pitch no problem, there's just something about steering that won't let me steer enough. I guess it's something to do with support for analogue controls, though I have no problem with acceleration/braking.
You must be logged in to post a response.