Making a cruise control

From GMod Wiki

Jump to: navigation, search



Cruise control buggy

Making a cruise control: Cruise control buggy
Page white text.png Description:A system to put on a jeep, which will keep you at a selected speed.
link=User:Ace13 Original Author:Ace13
Calendar.png Created:29 January 2007
Page white text.png Notes:-


  1. First spawn a buggy.
  2. Place a speedometer in between the headlights.
  3. Spawn a screen and easy-weld it to the right side of the buggy (not where you enter it).
  4. Make a D-Latch chip beside the speedometer.
  5. Wire the speedometer to the data input of the D-Latch.
  6. Place a 5000 multiplier (wired) thruster on the center-back of the jeep.
  7. Place a "less than" comparison gate besides the D-Latch.
  8. Wire the speedometer. A. The "less than" gate.
  9. Wire the D-Latch. B. The "less than" gate.
  10. Wire the thruster to the "less than" gate.
  11. Spawn a Numpad input, with the values: Off(0) On(1) Not Toggle.
  12. Make a indicator on the front of the buggy where you can see it.
  13. Wire the indicator to the Numpad input and the numpad input to the Clk input of the D-Latch.
  14. Now wire the screen. A. The speedometer and. B. to the D-Latch.
  15. While driving at the speed you wish to cruise on press the key you bound to the numpad input.

The indicator should blink and the screen will tell you two numbers: A (Your current speed) B (Desired speed).

To stop the cruise control, hold down the input key and hold down the normal brake, then right before you completely stop, hold the handbrake. This will make sure the car won't try to keep going when you're trying to stop.

note: you can replace the thruster with a vehicle controller and map the output to the option to move forward

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox