Add NOS to cars

d0nny94

New Member
hi i wanna add a nos script to the bmw VIP in epoch so preferably so u can press and hold f and it sets velocity of the car ive played a mission called road rage by celery he uses this piece of code

_vehicle setVelocity [(((_dir select 0)*((speed _vehicle)/3.6)+(_dir select 0)*_accel)+((_vel select 0)*_inertia))/(_inertia+1),(((_dir select 1)*((speed _vehicle)/3.6)+(_dir select 1)*_accel)+((_vel select 1)*_inertia))/(_inertia+1),_vel select 2];_vehicle setFuel (fuel _vehicle)-0.002

it makes the car go faster aswell as using alot of fuel i wanna add a watered down version of this
isit possible to be able to do this in dayz and on only 1 car or would i have to place it on every car ?

thx d0nny94
 
hi i wanna add a nos script to the bmw VIP in epoch so preferably so u can press and hold f and it sets velocity of the car ive played a mission called road rage by celery he uses this piece of code

_vehicle setVelocity [(((_dir select 0)*((speed _vehicle)/3.6)+(_dir select 0)*_accel)+((_vel select 0)*_inertia))/(_inertia+1),(((_dir select 1)*((speed _vehicle)/3.6)+(_dir select 1)*_accel)+((_vel select 1)*_inertia))/(_inertia+1),_vel select 2];_vehicle setFuel (fuel _vehicle)-0.002

it makes the car go faster aswell as using alot of fuel i wanna add a watered down version of this
isit possible to be able to do this in dayz and on only 1 car or would i have to place it on every car ?

thx d0nny94

If you post / send the whole script it looks simple enough to modify for dayz
 
If you post / send the whole script it looks simple enough to modify for dayz

_minspeed=2
_maxspeed=500
_inertia=10
_accel=15
_maxalt=0.15
_greenlight=0

#start
@alive player and player!=vehicle player
_vehicle=vehicle player
CLY_roadrageaction=false

#loop
?!alive player or player==vehicle player:goto "start"
?!CLY_roadrageaction:_greenlight=1
?CLY_roadrageaction and getPos _vehicle select 2<=_maxalt and speed _vehicle>=_minspeed and _greenlight==1:goto "turbo"
~0.1
goto "loop"

#turbo
?!alive player or player==vehicle player:goto "start"
?fuel _vehicle<=0.01:_greenlight=0;goto "loop"
?(!CLY_roadrageaction or getPos _vehicle select 2>_maxalt or speed _vehicle<_minspeed) and _greenlight==1:goto "loop"
_vel=velocity _vehicle
_dir=vectordir _vehicle
_vehicle setVelocity [(((_dir select 0)*((speed _vehicle)/3.6)+(_dir select 0)*_accel)+((_vel select 0)*_inertia))/(_inertia+1),(((_dir select 1)*((speed _vehicle)/3.6)+(_dir select 1)*_accel)+((_vel select 1)*_inertia))/(_inertia+1),_vel select 2];_vehicle setFuel (fuel _vehicle)-0.002
~0.01
goto "turbo"
 
Back
Top