mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Update fnc_handleDamageBox.sqf
This commit is contained in:
parent
389e1c71d2
commit
ffd07a7b42
@ -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;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user