Update addons/cookoff/functions/fnc_handleDamageBox.sqf

This commit is contained in:
johnb432 2024-08-11 08:05:01 -07:00 committed by GitHub
parent e4b2499f07
commit aac4675c68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,7 @@ private _ammoConfig = _ammo call CBA_fnc_getObjectConfig;
if (
(getNumber (_ammoConfig >> "explosive") >= 0.5) ||
{getNumber (_ammoConfig >> QEGVAR(vehicle_damage,incendiary)) > random 1} ||
{_damage * 0.05 > random 1 && {_ammo getShotInfo 4}} // there is a small chance of cooking a box off if it's shot by tracer ammo
{_damage * 0.05 > random 1 && {_ammo getShotInfo 4}} // There is a small chance of cooking a box off if it's shot by tracer ammo
) then {
[QGVAR(cookOffBoxServer), [_box, _source, _instigator]] call CBA_fnc_serverEvent;
};