mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
explosives: fixes
This commit is contained in:
parent
fcbabc1388
commit
c16c5e756c
@ -56,7 +56,7 @@ _explosive = createVehicle [_ammo, _pos, [], 0, "NONE"];
|
||||
if (isText(_triggerConfig >> "onPlace") && {[_unit,_explosive,_magazineClass,_triggerSpecificVars]
|
||||
call compile (getText (_triggerConfig >> "onPlace"))}) exitWith {_explosive};
|
||||
if (_setDir) then {
|
||||
[[_explosive, _dir, getNumber (_magazineTrigger >> "pitch")], QUOTE(FUNC(setPosition))]
|
||||
call EFUNC(Common,execRemoteFnc);
|
||||
[[_explosive, _dir, getNumber (_magazineTrigger >> "pitch")], QFUNC(setPosition)]
|
||||
call EFUNC(common,execRemoteFnc);
|
||||
};
|
||||
_explosive
|
||||
|
@ -73,7 +73,7 @@ if ((_setup getVariable [QGVAR(Class), ""]) != "") then {
|
||||
if (!isNull (_this select 1)) then {
|
||||
_explosive attachTo [(_this select 1)];
|
||||
_dir = _dir - (getDir (_this select 1));
|
||||
[[_explosive, _dir, 0], QUOTE(FUNC(setPosition))] call EFUNC(Common,execRemoteFnc);
|
||||
[[_explosive, _dir, 0], QFUNC(setPosition)] call EFUNC(common,execRemoteFnc);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -41,7 +41,7 @@ if (STANCE _unit == "Prone") then {
|
||||
if (ACE_player != _unit) then {
|
||||
// If the unit is a player, call the function on the player.
|
||||
if (isPlayer _unit) then {
|
||||
[[_unit, _target], QUOTE(FUNC(startDefuse)), _unit] call EFUNC(Common,execRemoteFnc);
|
||||
[[_unit, _target], QFUNC(startDefuse), _unit] call EFUNC(common,execRemoteFnc);
|
||||
} else {
|
||||
// TODO: use scheduled delay execution
|
||||
[_unit, _target, [[_unit] call EFUNC(Common,isEOD), _target] call _fnc_DefuseTime] spawn {
|
||||
@ -59,10 +59,10 @@ if (ACE_player != _unit) then {
|
||||
if (GVAR(RequireSpecialist)) then {
|
||||
if ([_unit] call EFUNC(Common,isEOD)) then {
|
||||
[[true, _target] call _fnc_DefuseTime, [_unit,_target],
|
||||
QFUNC(defuseExplosive), localize "STR_ACE_Explosives_DefusingExplosive"] call EFUNC(Common,progressBar);
|
||||
QFUNC(defuseExplosive), localize "STR_ACE_Explosives_DefusingExplosive"] call EFUNC(common,progressBar);
|
||||
};
|
||||
} else {
|
||||
[[([_unit] call EFUNC(Common,isEOD)), _target] call _fnc_DefuseTime, [_unit,_target],
|
||||
QFUNC(defuseExplosive), localize "STR_ACE_Explosives_DefusingExplosive"] call EFUNC(Common,progressBar);
|
||||
QFUNC(defuseExplosive), localize "STR_ACE_Explosives_DefusingExplosive"] call EFUNC(common,progressBar);
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user