mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add Posible to use Mod Parachutes
This commit is contained in:
parent
48f44813ea
commit
4db9989480
@ -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";
|
||||
|
@ -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"];
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user