FallingSheep
OpenDayZ Lord!
FULL CREDITS FOR THIS SCRIPT GOTO @Sandbird it was stolen from him and sent to me i had no idea and have all ready spoken to him about it.
again this was created by Sandbird and credit goes to him, please inculded him in your credits!
so lets start!
What it does....
allows you to install nos and boost your car speed (needs 1 jerrycan and 1 redbull in your inventory)
Requirements
Installation Steps
open your desrciption.ext and add this to the sounds section
A: if you have custom sounds already
B:if you dont have ANY custom sounds
open your fn_selfactions and under
paste this
then at the bottom of fn_selfactions above
paste this
now download the file below and place it in your scripts folder in your MPMISSION folder
(if you dont have a scripts folder create one)
now go in game grab a jerrycan and a can of redbull find a car install nos on it from the scroll menu
then get in car and activate nos from the scroll menu
use SHIFT while driving to boost and SPACE to break hard!
again this was created by Sandbird and credit goes to him, please inculded him in your credits!
so lets start!
NOS
Version 0.1
Version 0.1
What it does....
allows you to install nos and boost your car speed (needs 1 jerrycan and 1 redbull in your inventory)
Requirements
- Easy = Blue <10
- Text editor
- custom fn_selfactions (there are plenty of how to's on this on the forum just search for it)
Installation Steps
open your desrciption.ext and add this to the sounds section
A: if you have custom sounds already
Code:
class nitro {
name="nitro";
sound[]={scripts\NOS\nitro.ogg,0.9,1};
titles[] = {};
};
B:if you dont have ANY custom sounds
Code:
class CfgSounds
{
class nitro {
name="nitro";
sound[]={scripts\NOS\nitro.ogg,0.9,1};
titles[] = {};
};
};
open your fn_selfactions and under
Code:
_canDo = (!r_drag_sqf && !r_player_unconscious && !_onLadder);
Code:
//Nitro action
_hasNOSinstalled = _vehicle getVariable["nitroinstalled",0];
if (_inVehicle and _vehicle isKindOf "Car" and speed _vehicle >= 1) then {
if (_inVehicle and _hasNOSinstalled == 1) then {
if (isnil("NITRO_Cond")) then {NITRO_Cond = false;};
if (s_player_nitrobooston <0) then {
if (NITRO_Cond) then {
s_player_nitrobooston = _vehicle addAction [("<t color=""#39C1F3"">" + ("Nitro Off") + "</t>"),"scripts\NOS\nitro.sqf", [_vehicle], 999, false,true,"","driver _target == _this"];
} else {
s_player_nitrobooston = _vehicle addAction [("<t color=""#39C1F3"">" + ("Nitro On") + "</t>"),"scripts\NOS\nitro.sqf", [_vehicle], 999, false,true,"","driver _target == _this"];
};
};
} else {
_vehicle removeAction s_player_nitrobooston;
s_player_nitrobooston = -1;
};
} else {
_vehicle removeAction s_player_nitrobooston;
s_player_nitrobooston = -1;
if (_hasNOSinstalled == 1) then {
_vehicle setVariable ["nitroinstalled", 1, true];
};
};
then at the bottom of fn_selfactions above
Code:
if(dayz_tameDogs) then {
Code:
//Nitro
_isaCar = _cursorTarget isKindOf "Car";
if (("ItemJerrycan" in _magazinesPlayer) && ("ItemSodaRbull" in _magazinesPlayer)) then {
_hasNOSitems = true;
} else {
_hasNOSitems = false;
};
_isNOSinstalled = _cursorTarget getVariable ["nitroinstalled", 0];
if (_isaCar and !locked _cursorTarget and _hasNOSitems and _isNOSinstalled == 0) then {
if (s_player_nitroInstall < 0) then {
s_player_nitroInstall = player addAction [("<t color=""#39C1F3"">" + ("Install NOS boost") +"</t>"), "scripts\NOS\nitroinstall.sqf",_cursorTarget, 999, true, false, "",""];
};
} else {
player removeAction s_player_nitroInstall;
s_player_nitroInstall = -1;
};
now download the file below and place it in your scripts folder in your MPMISSION folder
(if you dont have a scripts folder create one)
now go in game grab a jerrycan and a can of redbull find a car install nos on it from the scroll menu
then get in car and activate nos from the scroll menu
use SHIFT while driving to boost and SPACE to break hard!
Last edited: