Fix Reload Bug

This commit is contained in:
Joko 2015-05-21 08:06:59 +02:00
parent 8c69ff4573
commit 41c6ea8b4e
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,3 @@
#include "script_component.hpp"
/*
* Author: joko // Jonas
* Reset the parachute system.
@ -14,6 +13,7 @@
*
* Public: No
*/
privat["_unit"];
#include "script_component.hpp"
private["_unit"];
_unit = _this select 0;
(animationState _unit == 'para_pilot' && !(_unit getvariable [QGVAR(chuteIsCut),false]))

View File

@ -1,4 +1,3 @@
#include "script_component.hpp"
/*
* Author: joko // Jonas
* Cut Parachute and delete Old
@ -14,6 +13,7 @@
*
* Public: No
*/
#include "script_component.hpp"
private["_unit","_vehicle"];
_unit = _this select 0;
_vehicle = vehicle _unit;

View File

@ -1,4 +1,3 @@
#include "script_component.hpp"
/*
* Author: joko // Jonas
* Add the Reserve Parachute to Units or Save Backpack if is a Parachute in Unit
@ -15,10 +14,11 @@
*
* Public: No
*/
#include "script_component.hpp"
private ["_unit","_backpack"];
_unit = _this select 0;
_backpack = (_this select 1) select 6 ;
if ((vehicle _unit) isKindOf "ParachuteBase" || (backpack _unit == "")) then {
if ((vehicle _unit) isKindOf "ParachuteBase") then {
_unit addBackpack (_unit getVariable[QGVAR(backpackClass),"ACE_NonSteerableParachute"]);
} else {
if (getText(configFile >> "CfgVehicles" >> _backpack >> "ace_reserveParachute") != "") then {