Add Posible to use Mod Parachutes

This commit is contained in:
Joko 2015-05-19 19:33:24 +02:00
parent 48f44813ea
commit 4db9989480
2 changed files with 12 additions and 7 deletions

View File

@ -27,13 +27,19 @@ class CfgVehicles {
showDisabled = 0;
priority = 2.9;
icon = QUOTE(PATHTOF(UI\cut_ca.paa));
hotkey = "C"; // Did this allready Work?
hotkey = "C"; // Did this realy Work?
};
};
};
class B_Parachute;
class Helicopter;
class ParachuteBase: Helicopter {
ace_reserveParachute = "ACE_NonSteerableParachute";
};
class B_Parachute: ParachuteBase {
ace_reserveParachute = "ACE_NonSteerableParachute";
};
class ACE_NonSteerableParachute: B_Parachute {
ace_reserveParachute = "ACE_NonSteerableParachute";
author = "$STR_ACE_Common_ACETeam";
scope = 2;
displayName = "$STR_ACE_Parachute_NonSteerableParachute";

View File

@ -17,12 +17,11 @@
*/
_unit = _this select 0;
_backpack = ((_this select 1) select 6);
_backpack = (_this select 1) select 6 ;
if ((vehicle _unit) isKindOf "ParachuteBase" || (backpack _unit == "")) then {
_unit addbackpack (_unit getVariable[QGVAR(backpackClass),""]);
} else {
if (getText(configfile >> "CfgVehicles" >> _backpack >> "ParachuteClass") in ["NonSteerable_Parachute_F","B_Parachute_02_F","O_Parachute_02_F","I_Parachute_02_F","Steerable_Parachute_F"]) then {
_unit setvariable[QGVAR(backpackClass),_backpack];
if (getText(configfile >> "CfgVehicles" >> _backpack >> "ace_reserveParachute") != "") then {
_unit setvariable[QGVAR(backpackClass),getText(configfile >> "CfgVehicles" >> _backpack >> "ace_reserveParachute"),"ACE_NonSteerableParachute"];
};
};