[ FilterScript ] Nitrous Oxide Systems - 2 versions

Started by Sebastian, Nov 20, 2014, 09:01 PM

Previous topic - Next topic

Sebastian

When devs implemented GUI., textdraws have been moved to client-side scripting.
This system will no longer work, since version 04rel004.




Nitrous Oxide Systems


There are 2 versions:
[spoiler=Simple]http://pastebin.com/yUVWi8CqYou can use the nitro whenever you want. :)
Just press ALT KEY and the nitro will be activated.
The bar will be shown, but will not decrease. For that, use the "Real" version of this script.
[/spoiler][spoiler=Real]http://pastebin.com/sTredBbSYou can use the nitro just once at very 60 seconds. (you can change the value)
There are 10 units on the nitro bar, representing the quantity of nitro remained.
Once the tank is emty, you have to wait until it's refilled.
( but do not wait to see it refilling. I decided to not use another timer, so I used time(). You can check the tank by pressing ALT KEY or re-entering car )
The tank is decreasing even if there is no driver, as it should be.[/spoiler]

To make this (smoother) nitro script, instead of just speed boosting vehicles, I have played with vehicle's handling data.
I set it to increase Acceleration and MaxSpeed, and when the nitro is deactivated, all values returns to normal.

You need to copy the needed (2) sprites !
(or just download by clicking on them)

You can also create your own sprites, but be careful when you adapt the code.
Add them to ...server/store/sprites/....here

Enjoy it ! ;)


MatheuS

if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.

soulshaker

Just awesome :D

P.S:- so about this you were talking :D

Sebastian


Fjose

there is no something what you cannot do? ;D
good job

Honey

Nice, It seems really cool because it has a smooth nitro :3


MacTavish


Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

MacTavish


Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Sebastian

I just tested it again. Works fine for me. :/

MacTavish


Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

MatheuS

if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.

MacTavish

#13
Your Real system give me error

Btw i used simple system and it works. Thankyou

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

dEaN

I think first impressions are important when i pick up a Main.nut script and I'm sticking to the script, I'm putting that organic feeling back in the game.
-Since 2012-