SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 04/03/2010, 08:48 AM   #1
mick88
Big Clucker
 
mick88's Avatar
 
Join Date: Jan 2010
Location: Ireland
Posts: 170
Reputation: 32
Default [FS] Cruise Control by mick88

Hi, I decided to release this as a FS. It's a feature working on my server Convoy Trucking where you can try it (188.165.199.40:7500). Filterscript doesn't include Text Draws and works in all vehicles, also bicycles unlike in my server where it's coded into GM and I could add more exceptions, but you can modify the FS if you need.

Now, we all know how impossible it it to keep constant speed within legal limits in computer games when we use keyboard to play. Holding the arrow key will keep accelerating your car to its limits, but what if you want to keep speed of 50 kph? Tapping is not a god solution.
With this script you can cruise at constant speed in any direction.

How to use it?
<install FS, blah, blah, blah>
  • When you are in the car, bring it to required speed and press LCTRL (and hold it)
  • your speed will be remembered and reapplied as long as you hold LCTRL
  • You can release acceleration key, and hold Cruise Control Key only and use arrows to correct direction when needed
  • The Cruise Control Should disengage automatically when your car goes out of control (starts rotating or speed drops by too much)
  • Also handbrake will disengage it
  • Type /CruiseControl to view the instruction in-game

I can't attach any pics or video because it's hard to show how cruise coontrol works on pics/vid but you can check it out on my server (address above).

You may use this filterscript on your server if you keep my credits where they are. You can change the script if you need. Cruise Control key can be easily changed in one variable (LCTRL may interfere with nitro boost key). Remove engage/disengage notifications if you want to, they're only there for you to get a feel of how it works.

Quote:
Originally Posted by Lookin View Post
here's the mirror
Code:
http://pastebin.com/fYBZZGWe

Video of Cruise Control in use at different speeds:

Last edited by mick88; 29/01/2011 at 01:34 PM.
mick88 is offline   Reply With Quote
Old 04/03/2010, 08:53 AM   #2
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 3,801
Reputation: 1160
Default Re: [FS] Cruise Control by mick88

Nice.
__________________
Join the best Cops And Robbers in SA-MP, today. svr.sfcnr.com:7777

Lorenc_ is offline   Reply With Quote
Old 04/03/2010, 08:55 AM   #3
Lejo
Big Clucker
 
Join Date: Jan 2010
Posts: 138
Reputation: 0
Default Re: [FS] Cruise Control by mick88

Very nice release. I tested it on your server. Keep up the good work, bro.
Lejo is offline   Reply With Quote
Old 04/03/2010, 09:32 AM   #4
V1ceC1ty
Banned
 
Join Date: Oct 2008
Location: West Australia
Posts: 1,916
Reputation: 273
Default Re: [FS] Cruise Control by mick88

I always hate tapping W when i want to drive slower, great FS.
V1ceC1ty is offline   Reply With Quote
Old 05/03/2010, 02:50 AM   #5
Scenario
Godfather
 
Scenario's Avatar
 
Join Date: Feb 2010
Location: Heaven
Posts: 7,811
Reputation: 701
Default Re: [FS] Cruise Control by mick88 *** UPDATE

Damn. This will definitely come in handy if I want to, well, cruise. Thanks!
__________________



Scenario is offline   Reply With Quote
Old 05/03/2010, 03:51 AM   #6
[EnergY]
Little Clucker
 
Join Date: Dec 2009
Posts: 45
Reputation: 0
Default Re: [FS] Cruise Control by mick88 *** UPDATE

Very good thing. Thank you. But I did not understand the code. Could you do something like this: Clicked LCTRL and Cruise Control enabled.Another click -CC will turns off.
[EnergY] is offline   Reply With Quote
Old 05/03/2010, 08:48 AM   #7
mick88
Big Clucker
 
mick88's Avatar
 
Join Date: Jan 2010
Location: Ireland
Posts: 170
Reputation: 32
Default Re: [FS] Cruise Control by mick88 *** UPDATE

Quote:
Originally Posted by Wassup789
Got an update for you,
you should have a command like /cruiseon /cruiseoff .
~Wassup789
Thanks, it's easy to edit if you want to use it. I just wanted to make it simple to use for players and I spend most of my time working on my GM so I won't be changing the cruise control for now.
Quote:
Could you do something like this: Clicked LCTRL and Cruise Control enabled.Another click -CC will turns off.
I considered this too, but again, I just wanted to make it simpler for players to use, maybe i'll make a switch between full-auto mode and manual but later. You can edit that in script too, just remove checking for pressed key in the timer and make an off switch if button is pressed and cruise control is on.
If you get problems with cruise control when steering A/D, use the arrow keys.
mick88 is offline   Reply With Quote
Old 19/03/2010, 01:34 AM   #8
mick88
Big Clucker
 
mick88's Avatar
 
Join Date: Jan 2010
Location: Ireland
Posts: 170
Reputation: 32
Default Re: [FS] Cruise Control by mick88

Video added
mick88 is offline   Reply With Quote
Old 19/03/2010, 07:33 AM   #9
Stas92
Big Clucker
 
Join Date: Mar 2009
Posts: 143
Reputation: 0
Default Re: [FS] Cruise Control by mick88

It's nice, but there are some bugs, wich can't be fixxed?
For example when you with the car you can fly
Stas92 is offline   Reply With Quote
Old 28/03/2010, 10:52 AM   #10
gummi1337
Little Clucker
 
Join Date: Feb 2010
Posts: 27
Reputation: 0
Default Re: [FS] Cruise Control by mick88

how do i get that speed meter in the video? send link
gummi1337 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Map] [MAP] Cruise Ship "Ocean" ]BSC[InternetInk Maps 39 27/09/2010 02:43 PM
[HowTo] Making a working Cruise control sean5874 Help Archive 5 16/03/2010 08:20 AM
Cruise control mick88 Help Archive 0 27/02/2010 05:28 PM
[HELP]Need Control PHP Script to control Servers rafanresende Server Support 4 05/05/2009 01:41 AM


All times are GMT. The time now is 12:01 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.