mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Update fnc_detonateAmmunition.sqf
This commit is contained in:
parent
c0a951491b
commit
26f73e1a98
@ -49,6 +49,8 @@ _vehicleAmmo params ["_magazines", "_totalAmmo"];
|
|||||||
if (_magazines isEqualTo [] || {_totalAmmo <= 0}) exitWith {
|
if (_magazines isEqualTo [] || {_totalAmmo <= 0}) exitWith {
|
||||||
[QGVAR(cleanupEffects), _object] call CBA_fnc_globalEvent;
|
[QGVAR(cleanupEffects), _object] call CBA_fnc_globalEvent;
|
||||||
|
|
||||||
|
_object setVariable [QGVAR(cookoffMagazines), nil];
|
||||||
|
|
||||||
if (_destroyWhenFinished) then {
|
if (_destroyWhenFinished) then {
|
||||||
_object setDamage [1, true, _killer, _instigator];
|
_object setDamage [1, true, _killer, _instigator];
|
||||||
};
|
};
|
||||||
@ -65,6 +67,8 @@ if (underwater _object || {
|
|||||||
!(GVAR(enableAmmoCookoff) && {_object getVariable [QGVAR(enableAmmoCookoff), true]})
|
!(GVAR(enableAmmoCookoff) && {_object getVariable [QGVAR(enableAmmoCookoff), true]})
|
||||||
}) exitWith {
|
}) exitWith {
|
||||||
[QGVAR(cleanupEffects), _object] call CBA_fnc_globalEvent;
|
[QGVAR(cleanupEffects), _object] call CBA_fnc_globalEvent;
|
||||||
|
|
||||||
|
_object setVariable [QGVAR(cookoffMagazines), nil];
|
||||||
};
|
};
|
||||||
|
|
||||||
// Initial delay allows for a delay for the first time this function runs in its cycle
|
// Initial delay allows for a delay for the first time this function runs in its cycle
|
||||||
|
Loading…
Reference in New Issue
Block a user