• Simple Cruise Control
    4 replies, posted
I want to know how I can go about achieving Cruise Control.... So far, I'm thinking of a ConCommand that sets a "Vehicle.Cruise = true" at which point the acceleration steadies...but I have no idea how to do this. Someone please point me in the right direction.
Hmmm The way I would do it? Hook KeyPress and check for doubletaps. If the player 1. Has tapped their forward movement key in under .3 seconds since the last press 2. Is in a vehicle Then send +forward commands to their console until they get out or double tap again. Console commands can be used if you want a clientside script for say, DarkRp that you could use.
Vehicles have inputs for driving forward, etc. Don't force +forward.
[QUOTE=Robotboy655;44145282]Vehicles have inputs for driving forward, etc. Don't force +forward.[/QUOTE] A snippet please?
Some google, please? [url]https://developer.valvesoftware.com/wiki/Prop_vehicle_jeep[/url] [editline]6th March 2014[/editline] Here's the wiremod implementation of it: [url]https://github.com/wiremod/wire/blob/master/lua/entities/gmod_wire_vehicle.lua[/url]
Sorry, you need to Log In to post a reply to this thread.