Limelight Forums

Full Version: CruiseControlPlus: Take control of your speed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Do you constantly find yourself using the /cruise command to make sure you don't break the law with your 105 MPH family car?
Have you ever wanted to actually drive at the speed limit as a Police Officer like most officers should do?

If you've found yourself in these situations, or similar, then I've written a CFG file that might be of some use to you. Read on to discover the great features that this CFG can bring to your keyboard when playing Limelight...

CruiseControlPlus: Take control of your speed



Features and advantages:
* Easily turn on and turn off the config with the press of 2 different keys
* Lowering your cruise speed will automatically reduce your current speed when you select a lower cruise setting. If your cruise speed is set to 100 and you're driving at 100 MPH, then you quickly switch the cruise speed back down to 30, it'll reduce your speed quickly to 30!
* Easily change your cruise speed with the use of your left and right arrow keys whilst you're driving. This was done on the right side of the keyboard to allow your mouse hand to move over to the arrow keys, so you can keep driving as you modify your cruise speed
* Change your cruise speed from 10 MPH all the way up to 100 MPH - if you need more than 100 MPH cruise speed, you might as well just turn it off so this wasn't developed further than 100 MPH
* /it chat notifications to let you know what's happening! (prefixed with "OOC:")

There are probably many more uses for this config, and those uses are up to you to discover as you use it! With the use of this config, you'll find yourself in less conflicts with the Police for speeding, and you'll be able to actually RP properly as an officer and use it to drive at the correct speed limit easily, without the hassle of typing out new speeds for every zone.



Default Controls
Keep in mind that these controls can be changed very easily within the config. If you have any questions on how to do this, just post a comment below and I'll try and answer it as quick as possible. If I don't answer it, I'm sure somebody else will.

Cruise control on - Delete key (above your arrow keys)
Cruise control off - End key (above your arrow keys)
+10 MPH - Right arrow key
-10 MPH - Left arrow key
Return to 30 MPH - Cruise control on key




Installation

1. Copy the text in the code box below
2. Open C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\cfg
3. Create an empty text file called "cruisecontrol.cfg"
4. Paste the text in the code box below into the newly created CFG file
5. Open your Gmod and open the console, typing "exec cruisecontrol" into it to load the config

If you need any help with this, make a comment.

Code:
// Intro section below, no need to edit this part

echo
echo
echo "---------------------------------------"
echo "          CruiseControl+ Loaded "
echo "            Written by Kvatch
echo "---------------------------------------"
echo
echo " *** To activate cruise control, press your Delete key above your arrow keys"
echo " *** To deactivate cruise control, press your End key above your arrows keys"
echo " *** You can also use Delete to quickly switch back to 30 MPH cruise speed!"
echo
echo " *** If you have any suggestions for this CFG, PM 'Kvatch' on the forums"
echo " *** but please keep in mind that this runs off of binds! Not everything is possible with binds!"
echo
echo " *** Enjoy!"
echo
echo
echo
echo "---------------------------------------"


// The section below defines the different cruise speeds to select. You can edit these as you wish.
// Do not edit the "bind leftarrow cruise1; bind rightarrow cruise3" parts of the lines as these are what
// is needed to move between the different cruise speeds. Edit only if you know what you're doing


alias cruise1 "llsay /cruise 10; bind rightarrow cruise2"
alias cruise2 "llsay /cruise 20; bind leftarrow cruise1; bind rightarrow cruise3"
alias cruise3 "llsay /cruise 30; bind leftarrow cruise2; bind rightarrow cruise4"
alias cruise4 "llsay /cruise 40; bind leftarrow cruise3; bind rightarrow cruise5"
alias cruise5 "llsay /cruise 50; bind leftarrow cruise4; bind rightarrow cruise6"
alias cruise6 "llsay /cruise 60; bind leftarrow cruise5; bind rightarrow cruise7"
alias cruise7 "llsay /cruise 70; bind leftarrow cruise6; bind rightarrow cruise8"
alias cruise8 "llsay /cruise 80; bind leftarrow cruise7; bind rightarrow cruise9"
alias cruise9 "llsay /cruise 90; bind leftarrow cruise8; bind rightarrow cruise10"
alias cruise10 "llsay /cruise 100; bind leftarrow cruise9; bind rightarrow cruise11"
alias cruiseoff "llsay /cruise 500"

// Section below allows you to activate/deactive your cruise control. Turning it on returns it to 30 MPH by default.
// To edit this, change "cruise3" to one of the other cruise settings defined above.

bind del "cruise3; llsay /it [OOC] CCPlus: Cruise control on, set to 30 MPH"
bind end "cruiseoff; llsay /it [OOC] CCPlus: Cruise control off; unbind leftarrow; unbind rightarrow"
I hope you guys find this as useful as I do! It'd be cool to see this as an actual script within the server one day. Enjoy!
Very useful guide which im sure many users will use in present and future!
Code:
alias cruise10 "llsay /cruise 100; bind leftarrow cruise9; bind rightarrow cruise11"

Where is cruise11?
[Image: J37Ie7n.jpg]


Also great for those who want to know how to do alias binds for switching.
(May 3, 2018, 02:13 AM)Sours Wrote: [ -> ]
Code:
alias cruise10 "llsay /cruise 100; bind leftarrow cruise9; bind rightarrow cruise11"

Where is cruise11?

It's just there for anyone who wants to add to it further. It also stopped the cruise message from popping up every time you hit right arrow after reaching 100MPH.