mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix Reload Bug
This commit is contained in:
parent
8c69ff4573
commit
41c6ea8b4e
@ -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]))
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user