Update fnc_handleDamageBox.sqf

This commit is contained in:
johnb432 2024-06-17 13:42:29 +02:00
parent 389e1c71d2
commit ffd07a7b42

View File

@ -35,7 +35,7 @@ private _ammoConfig = _ammo call CBA_fnc_getObjectConfig;
if ( if (
(getNumber (_ammoConfig >> "explosive") >= 0.5) || (getNumber (_ammoConfig >> "explosive") >= 0.5) ||
{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 {_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 { ) then {
[QGVAR(cookOffBoxServer), [_box, _source, _instigator]] call CBA_fnc_serverEvent; [QGVAR(cookOffBoxServer), [_box, _source, _instigator]] call CBA_fnc_serverEvent;
}; };