mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #1935 from jokoho48/ParachuteFix
change form addBackpack to addBackpackGlobal
This commit is contained in:
commit
6289601b4e
@ -19,4 +19,4 @@ _unit = _this select 0;
|
|||||||
_vehicle = vehicle _unit;
|
_vehicle = vehicle _unit;
|
||||||
_unit action ["GetOut", _vehicle];
|
_unit action ["GetOut", _vehicle];
|
||||||
deleteVehicle _vehicle;
|
deleteVehicle _vehicle;
|
||||||
_unit setVariable [QGVAR(chuteIsCut), true];
|
_unit setVariable [QGVAR(chuteIsCut), true, true];
|
||||||
|
@ -18,7 +18,7 @@ private["_unit"];
|
|||||||
_unit = _this select 0;
|
_unit = _this select 0;
|
||||||
GVAR(PFH) = false;
|
GVAR(PFH) = false;
|
||||||
[_unit, "AmovPercMevaSrasWrflDf_AmovPknlMstpSrasWrflDnon", 2] call EFUNC(common,doAnimation);
|
[_unit, "AmovPercMevaSrasWrflDf_AmovPknlMstpSrasWrflDnon", 2] call EFUNC(common,doAnimation);
|
||||||
_unit setVariable [QGVAR(chuteIsCut), false];
|
_unit setVariable [QGVAR(chuteIsCut), false, true];
|
||||||
[{
|
[{
|
||||||
if (ACE_time >= ((_this select 0) select 0) + 1) then {
|
if (ACE_time >= ((_this select 0) select 0) + 1) then {
|
||||||
((_this select 0) select 1) playActionNow "Crouch";
|
((_this select 0) select 1) playActionNow "Crouch";
|
||||||
|
@ -17,14 +17,14 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
private ["_unit","_backpack"];
|
private ["_unit","_backpack"];
|
||||||
_unit = _this select 0;
|
_unit = _this select 0;
|
||||||
_backpack = (_this select 1) select 6 ;
|
_backpack = (_this select 1) select 6;
|
||||||
if ((vehicle _unit) isKindOf "ParachuteBase" && backpack _unit == "" && !(_unit getVariable [QGVAR(chuteIsCut),false]) && (_unit getvariable [QGVAR(hasReserve),false])) then {
|
if ((vehicle _unit) isKindOf "ParachuteBase" && backpack _unit == "" && !(_unit getVariable [QGVAR(chuteIsCut),false]) && (_unit getvariable [QGVAR(hasReserve),false])) then {
|
||||||
_unit addBackpack (_unit getVariable[QGVAR(backpackClass),"ACE_NonSteerableParachute"]);
|
_unit addBackpackGlobal (_unit getVariable[QGVAR(backpackClass),"ACE_NonSteerableParachute"]);
|
||||||
} else {
|
} else {
|
||||||
if ([false,true] select (getNumber(configFile >> "CfgVehicles" >> _backpack >> "ace_hasReserveParachute"))) then {
|
if ([false,true] select (getNumber(configFile >> "CfgVehicles" >> _backpack >> "ace_hasReserveParachute"))) then {
|
||||||
_unit setVariable[QGVAR(backpackClass),getText(configFile >> "CfgVehicles" >> _backpack >> "ace_reserveParachute")];
|
_unit setVariable[QGVAR(backpackClass),getText(configFile >> "CfgVehicles" >> _backpack >> "ace_reserveParachute"),true];
|
||||||
};
|
};
|
||||||
if (!(_unit getVariable [QGVAR(chuteIsCut),false]) && !(animationState _unit == 'para_pilot')) then {
|
if (!(_unit getVariable [QGVAR(chuteIsCut),false]) && !(animationState _unit == 'para_pilot')) then {
|
||||||
_unit setVariable [QGVAR(hasReserve),[false,true] select (getNumber(configFile >> "CfgVehicles" >> _backpack >> "ace_hasReserveParachute"))];
|
_unit setVariable [QGVAR(hasReserve),[false,true] select (getNumber(configFile >> "CfgVehicles" >> _backpack >> "ace_hasReserveParachute")),true];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user