From 9cd62fcc7f86c28949ed4883354060391e93518c Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Wed, 3 Apr 2024 00:38:46 +0200 Subject: [PATCH] Update fnc_handleDamageBox.sqf --- addons/cookoff/functions/fnc_handleDamageBox.sqf | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/addons/cookoff/functions/fnc_handleDamageBox.sqf b/addons/cookoff/functions/fnc_handleDamageBox.sqf index 7c6e056628..48204ea593 100644 --- a/addons/cookoff/functions/fnc_handleDamageBox.sqf +++ b/addons/cookoff/functions/fnc_handleDamageBox.sqf @@ -48,13 +48,8 @@ if ((getNumber (_ammoConfig >> "explosive") >= 0.5) || {getNumber (_ammoConfig > private _configMagazine = configFile >> "CfgMagazines" >> _magazine; // Magazine could have changed during flight time (just ignore if so) - if (getText (_configMagazine >> "ammo") == _ammo) then { - // If magazine's tracer density is high enough then low chance for cook off - private _tracers = getNumber (_configMagazine >> "tracersEvery"); - - if (_tracers >= 1 && {_tracers <= 4}) then { - [QGVAR(cookOffBox), [_box, _source, _instigator]] call CBA_fnc_serverEvent; - }; + if (_ammo getShotInfo 4 && {getText (_configMagazine >> "ammo") == _ammo)} then { // 4 = shownTracer + [QGVAR(cookOffBox), [_box, _source, _instigator]] call CBA_fnc_serverEvent; }; };