Update fnc_handleDamageBox.sqf

This commit is contained in:
johnb432 2024-06-05 22:04:24 +02:00
parent d7d6eb05e3
commit 389e1c71d2

View File

@ -37,7 +37,7 @@ if (
{getNumber (_ammoConfig >> QEGVAR(vehicle_damage,incendiary)) > random 1} || {getNumber (_ammoConfig >> QEGVAR(vehicle_damage,incendiary)) > random 1} ||
{random 1 < _damage * 0.05 && {_ammo getShotInfo 4}} // there is a small chance of cooking a box off if it's shot by tracer ammo {random 1 < _damage * 0.05 && {_ammo getShotInfo 4}} // there is a small chance of cooking a box off if it's shot by tracer ammo
) then { ) then {
[QGVAR(cookOffBox), [_box, _source, _instigator]] call CBA_fnc_serverEvent; [QGVAR(cookOffBoxServer), [_box, _source, _instigator]] call CBA_fnc_serverEvent;
}; };
// Prevent destruction, let cook-off handle it if necessary // Prevent destruction, let cook-off handle it if necessary