Jump to content

Gelid Nitro - In Car Option


Donnovan

Recommended Posts

  • 1 month later...
  • 1 year later...

Any chance there is still some support on this? Using infistar and only admins have it working.  Survivors see the option for a split second then it goes away for installing. If an admin installs it for them, there is no nitro for the non admin just the admin still. Tried different fixes posted here to no avail. Using latest infistar. Thanks

Link to comment
Share on other sites

  • 2 weeks later...

So nobody ever posted any variables or exceptions and what not to the nitro anywhere on the internet. So actually the true way to make this work proper has never been posted EVER. If wrong show me where... No matter what nitro you use, I use Sandbird, you will get client side errors due to these packages not containing full and correct install methods. Something like this

Error in expression <= -1;
};
} else {
_vehicle removeAction s_player_nitrobooston;
s_player_nitroboo>
  Error position: <s_player_nitrobooston;
s_player_nitroboo>
  Error Undefined variable in expression: s_player_nitrobooston
File mpmissions\__CUR_MP.Napf\custom\fn_selfActions.sqf, line 34

Error in expression <"",""];
};
} else {
player removeAction s_player_nitroInstall;
s_player_nitroIns>
  Error position: <s_player_nitroInstall;
s_player_nitroIns>
  Error Undefined variable in expression: s_player_nitroinstall
File mpmissions\__CUR_MP.Napf\custom\fn_selfActions.sqf, line 823

*It works fine on my servers now with infistar but you will get client side errors... obviously... (until fixed)

 

Link to comment
Share on other sites

I am baaaaaaack...hehe no i am not...just had a few hours to spare today and thought about checking what's new with epoch.
There is actually a very easy fix for infistar's AH to allow normal users to use the nitro boost.

First make sure in your client files you set a variable nitroinstalled to the vehicle when the user adds nitro to it. It should broadcast to the server files as well that that value is set,  so you should use:

_veh setVariable ["nitroinstalled", 1, true];

If you are using this addon here, then i guess you could add this just bellow line:

donn_nosOk = true;

like this:

donn_nosOk = true;
(vehicle player) setVariable ["nitroinstalled", 1, true];


We'll use this variable inside the AH.sqf to check if the player is inside a car that has that variable...If he is, then ignore the Antihack speed limit.
So open your AH.sqf
Search for _veh != player   you should have that value 2 times. We want to edit the part where under this value it has some

(findDisplay 46) displayRemoveAllEventHandlers 'MouseMoving';    type of lines....Basically anything about MouseHolding, MouseMoving, Keydown, etc.

Now, above that line there should be a _veh = vehicle player;  variable. Right under that put this code:

_isNitroAttached = false;
_isNitroInstalled = _veh getVariable['nitroinstalled',0];
if (_isNitroInstalled == 1) then {
	_isNitroAttached = true;
};

and finally  under that where it says: if((_veh != player)&&{(!(_veh isKindOf 'ParachuteBase')&&!(_veh isKindOf 'BIS_Steerable_Parachute'))})then you need to edit that line and add our _isNitroAttached to it as well....so it should be:

if((_veh != player)&&{(!(_veh isKindOf 'ParachuteBase')&&!(_veh isKindOf 'BIS_Steerable_Parachute')&& !(_isNitroAttached) )})then

So basically what we do here is:

- Check if the car has variable nitroinstalled  to it. (set by the client files, when the user added nitro)
- Do the speed nerfing thing EXCEPT if the vehicle is a kind of ParachuteBase AND doenst have variable nitorinstalled to it.

So it will totally ignore the speed of the vehicle when it has nitro installed.
You'll have to do this edit every time there in an AH update.

Hope that helps.

 

Link to comment
Share on other sites

  • 6 months later...

It may be an old post but people still play Arma2. My question is why are we using the NOS folder when you are called the nitrosqf like this:

[] execVM "nitro\nitro.sqf";

Shouldnt it be . [] execVM "NOS\nitro.sqf"; ??

I am very confused on this tutorial.

I got it to work properly and did it my way, no need for any fn_selfactions modifications. But nonetheless, it was definitely not presented bold face.

Anyways here is a list of common more accurately available vehicles if somebody wants to add more than just the few oddball ones that were presented that nobody drives.

 

I apologize if i missed some quotes and commas. I am pretty sure i got them all i copy and pasted from my file and everything works.

Quote

donn_nitroCars = [
    "BTR90",
    "BTR90_HQ",
    "BTR90_HQ_DZE",
    "BTR90_HQ_DZ",
    "BTR90_DZE",
    "BTR90_DZ",
    "LAV25",
    "LAV25_HQ",
    "LAV25_HQ_DZE",
    "LAV25_HQ_DZ",
    "LAV25_DZE",
    "LAV25_DZ",
    "Ikarus",
    "Ikarus_TK_CIV_EP1",
    "SkodaBlue",
    "SkodaBlue_DZE1",
    "SkodaBlue_DZE2",
    "SkodaBlue_DZE3",
    "SkodaBlue_DZE4",
    "SkodaGreen",
    "SkodaGreen_DZE1",
    "SkodaGreen_DZE2",
    "SkodaGreen_DZE3",
    "SkodaGreen_DZE4",
    "SkodaRed",
    "SkodaRed_DZE1",
    "SkodaRed_DZE2",
    "SkodaRed_DZE3",
    "SkodaRed_DZE4",
    "Skoda",
    "Skoda_DZE1",
    "Skoda_DZE2",
    "Skoda_DZE3",
    "Skoda_DZE4",
    "CVPI_Patrol",
    "CVPI_HighwaySL_Patrol",
    "CVPI_LAPD_Patrol",
    "CVPI_LAPDSL_Patrol",
    "CVPI_NYPD_Patrol",
    "CVPI_NYPDSL_Patrol",
    "CVPI_Trooper_Patrol",
    "CVPI_TrooperSL_Patrol",
    "CVPI_UnmarkedB_Patrol",
    "CVPI_UnmarkedG_Patrol",
    "CVPI_UnmarkedW_Patrol",
    "Volha_1_TK_CIV_EP1",
    "Volha_1_TK_CIV_EP1_DZE1",
    "Volha_1_TK_CIV_EP1_DZE2",
    "Volha_1_TK_CIV_EP1_DZE3",
    "Volha_1_TK_CIV_EP1_DZE4",
    "Volha_2_TK_CIV_EP1",
    "Volha_2_TK_CIV_EP1_DZE1",
    "Volha_2_TK_CIV_EP1_DZE2",
    "Volha_2_TK_CIV_EP1_DZE3",
    "Volha_2_TK_CIV_EP1_DZE4",
    "VolhaLimo_TK_CIV_EP1",
    "VolhaLimo_TK_CIV_EP1_DZE1",
    "VolhaLimo_TK_CIV_EP1_DZE2",
    "VolhaLimo_TK_CIV_EP1_DZE3",
    "VolhaLimo_TK_CIV_EP1_DZE4",
    "VWGolf",
    "VWGolf_DZE1",
    "VWGolf_DZE2",
    "VWGolf_DZE3",
    "VWGolf_DZE4",
    "civcarbl",
    "civcarbl_DZ",
    "Civcarbu",
    "Civcarbu_DZ",
    "Civcarge",
    "Civcarge_DZ",
    "Civcar",
    "Civcar_DZ",
    "Civcarre",
    "Civcarre_DZ",
    "Civcarsl",
    "Civcarsl_DZ",
    "Civcarwh",
    "Civcarwh_DZ",
    "Copcar",
    "Copcarswat",
    "Copcarhw",
    "Lada1_TK_CIV_EP1",
    "Lada1_TK_CIV_EP1_DZE1",
    "Lada1_TK_CIV_EP1_DZE2",
    "Lada1_TK_CIV_EP1_DZE3",
    "Lada1_TK_CIV_EP1_DZE4",
    "Lada2_TK_CIV_EP1",
    "Lada2_TK_CIV_EP1_DZE1",
    "Lada2_TK_CIV_EP1_DZE2",
    "Lada2_TK_CIV_EP1_DZE3",
    "Lada2_TK_CIV_EP1_DZE4",
    "GLT_M300_LT",
    "GLT_M300_ST",
    "LandRover_CZ_EP1",
    "LandRover_TK_CIV_EP1",
    "TT650_TK_CIV_EP1",
    "TT650_TK_EP1",
    "MMT_CIV",
    "350z_black",
    "350z_black_DZ",
    "350z_blue",
    "350z_blue_DZ",
    "350z_city",
    "350z_mod",
    "350z_gold",
    "350z_green",
    "350z_green_DZ",
    "350z_pink",
    "350z_pink_DZ",
    "350z_kiwi",
    "350z_kiwi_DZ",
    "350z",
    "350z_red",
    "350z_ruben",
    "350z_silver",
    "350z_cream_DZ",
    "350z_v",
    "350z_white",
    "350z_white_DZ",
    "350z_yellow",
    "350z_yellow_DZ",
    "hilux1_civil_2_covered",
    "hilux1_civil_2_covered_DZE1",
    "hilux1_civil_2_covered_DZE2",
    "hilux1_civil_2_covered_DZE3",
    "hilux1_civil_2_covered_DZE4",
    "hilux1_civil_1_open",
    "hilux1_civil_1_open_DZE1",
    "hilux1_civil_1_open_DZE2",
    "hilux1_civil_1_open_DZE3",
    "hilux1_civil_1_open_DZE4",
    "hilux1_civil_3_open",
    "hilux1_civil_3_open_DZE1",
    "hilux1_civil_3_open_DZE2",
    "hilux1_civil_3_open_DZE3",
    "hilux1_civil_3_open_DZE4",
    "Old_bike_TK_CIV_EP1",
    "car_hatchback",
    "car_hatchback_DZE1",
    "car_hatchback_DZE2",
    "car_hatchback_DZE3",
    "car_hatchback_DZE4",
    "Old_moto_TK_Civ_EP1",
    "tractorOld",
    "PaperCar",
    "datsun1_civil_1_open",
    "datsun1_civil_1_open_DZE",
    "datsun1_civil_1_open_DZE1",
    "datsun1_civil_1_open_DZE2",
    "datsun1_civil_1_open_DZE3",
    "datsun1_civil_1_open_DZE4",
    "datsun1_civil_2_covered",
    "datsun1_civil_2_covered_DZE",
    "datsun1_civil_2_covered_DZE1",
    "datsun1_civil_2_covered_DZE2",
    "datsun1_civil_2_covered_DZE3",
    "datsun1_civil_2_covered_DZE4",
    "datsun1_civil_3_open",
    "datsun1_civil_3_open_DZE",
    "datsun1_civil_3_open_DZE1"
    "datsun1_civil_3_open_DZE2"
    "datsun1_civil_3_open_DZE3",
    "datsun1_civil_3_open_DZE4",
    "hilux1_civil_3_open_EP1",
    "policecar",
    "S1203_TK_CIV_EP1",
    "S1203_ambulance_EP1",
    "car_sedan",
    "car_sedan_DZE1",
    "car_sedan_DZE2",
    "car_sedan_DZE3",
    "car_sedan_DZE4",
    "SUV_DZ",
    "SUV_PMC",
    "SUV_TK_CIV_EP1",
    "SUV_TK_CIV_EP1_DZE1",
    "SUV_TK_CIV_EP1_DZE2",
    "SUV_TK_CIV_EP1_DZE3",
    "SUV_TK_CIV_EP1_DZE4",
    "SUV_TK_EP1",
    "SUV_Blue",
    "SUV_Blue_DZE1",
    "SUV_Blue_DZE2",
    "SUV_Blue_DZE3",
    "SUV_Blue_DZE4",
    "SUV_Camo",
    "SUV_Camo_DZE1",
    "SUV_Camo_DZE2",
    "SUV_Camo_DZE3",
    "SUV_Camo_DZE4",
    "SUV_Charcoal",
    "SUV_Charcoal_DZE1",
    "SUV_Charcoal_DZE2",
    "SUV_Charcoal_DZE3",
    "SUV_Charcoal_DZE4",
    "SUV_Green",
    "SUV_Green_DZE1",
    "SUV_Green_DZE2",
    "SUV_Green_DZE3",
    "SUV_Green_DZE4",
    "SUV_Orange",
    "SUV_Orange_DZE1",
    "SUV_Orange_DZE2",
    "SUV_Orange_DZE3",
    "SUV_Orange_DZE4",
    "SUV_Pink",
    "SUV_Pink_DZE1",
    "SUV_Pink_DZE2",
    "SUV_Pink_DZE3",
    "SUV_Pink_DZE4",
    "SUV_Red",
    "SUV_Red_DZE1",
    "SUV_Red_DZE2",
    "SUV_Red_DZE3",
    "SUV_Red_DZE4",
    "SUV_Silver",
    "SUV_Silver_DZE1",
    "SUV_Silver_DZE2",
    "SUV_Silver_DZE3",
    "SUV_Silver_DZE4",
    "SUV_White",
    "SUV_White_DZE1",
    "SUV_White_DZE2",
    "SUV_White_DZE3",
    "SUV_White_DZE4",
    "SUV_Yellow",
    "SUV_Yellow_DZE1",
    "SUV_Yellow_DZE2",
    "SUV_Yellow_DZE3",
    "SUV_Yellow_DZE4",
    "TowingTractor",
    "Tractor",
    "Lada_base",
    "UAZ_Unarmed_TK_CIV_EP1",
    "UAZ_Unarmed_TK_CIV_EP1_DZE1",
    "UAZ_Unarmed_TK_CIV_EP1_DZE2",
    "UAZ_Unarmed_TK_CIV_EP1_DZE3",
    "UAZ_Unarmed_TK_CIV_EP1_DZE4",
    "LadaLM",
    "LadaLM_DZE1",
    "LadaLM_DZE2",
    "LadaLM_DZE3",
    "LadaLM_DZE4",
    "Lada2",
    "Lada2_DZE1",
    "Lada2_DZE2",
    "Lada2_DZE3",
    "Lada2_DZE4",
    "Lada1",
    "Lada1_DZE1",
    "Lada1_DZE2",
    "Lada1_DZE3",
    "Lada1_DZE4",
    "Ural_TK_CIV_EP1",
    "UralCivil2",
    "UralCivil2_DZE",
    "UralCivil",
    "UralCivil_DZE",
    "V3S_Civ",
    "V3S_Open_TK_CIV_EP1"

It's a nice script, but the better one out there has Nitro On and Nitro Off available.

Link to comment
Share on other sites

  • 4 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...