mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Skip FRIES preparation if unnecessary
This commit is contained in:
parent
953119a411
commit
8cfbbe4f1f
@ -17,9 +17,14 @@
|
||||
|
||||
#include "script_component.hpp"
|
||||
params ["_unit", "_vehicle"];
|
||||
private ["_deployedRopes", "_config"];
|
||||
|
||||
private _deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
|
||||
_deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
|
||||
_config = configFile >> "CfgVehicles" >> typeOf _vehicle;
|
||||
|
||||
((driver _vehicle != _unit) &&
|
||||
{(_vehicle getVariable [QGVAR(deploymentStage), 0]) == 2} &&
|
||||
{
|
||||
((_vehicle getVariable [QGVAR(deploymentStage), 0]) == 2) ||
|
||||
{!(isText (_config >> QGVAR(onPrepare))) && {(_vehicle getVariable [QGVAR(deploymentStage), 0]) == 0}}
|
||||
} &&
|
||||
{getPos _vehicle select 2 > 2})
|
||||
|
@ -23,4 +23,5 @@ _config = configFile >> "CfgVehicles" >> typeOf _vehicle;
|
||||
|
||||
(isNumber (_config >> QGVAR(enabled)) &&
|
||||
{(getNumber (_config >> QGVAR(enabled)) == 1) || {!(isNull (_vehicle getVariable [QGVAR(FRIES), objNull]))}} &&
|
||||
{(_vehicle getVariable [QGVAR(deploymentStage), 0]) == 0})
|
||||
{(_vehicle getVariable [QGVAR(deploymentStage), 0]) == 0} &&
|
||||
{isText (_config >> QGVAR(onPrepare))})
|
||||
|
Loading…
Reference in New Issue
Block a user