Simple Cruise Control

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.

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.

A snippet please?

Some google, please?

[editline]6th March 2014[/editline]

Here’s the wiremod implementation of it: