Update fnc_handleDamageBox.sqf

This commit is contained in:
johnb432 2024-05-09 10:29:00 +02:00
parent ca49d8a2c8
commit 51c7a0f9b8

View File

@ -45,10 +45,8 @@ if ((getNumber (_ammoConfig >> "explosive") >= 0.5) || {getNumber (_ammoConfig >
_source currentMagazineTurret (_source unitTurret _instigator)
};
private _configMagazine = configFile >> "CfgMagazines" >> _magazine;
// Magazine could have changed during flight time (just ignore if so)
if (_ammo getShotInfo 4 && {getText (_configMagazine >> "ammo") == _ammo}) then { // 4 = shownTracer
if (_ammo getShotInfo 4 && {getText (configFile >> "CfgMagazines" >> _magazine >> "ammo") == _ammo}) then { // 4 = shownTracer
[QGVAR(cookOffBox), [_box, _source, _instigator]] call CBA_fnc_serverEvent;
};
};