mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Update compats
This commit is contained in:
parent
9546ca2963
commit
48f3d192e2
@ -18,8 +18,6 @@
|
|||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define BURN_THRESHOLD 1
|
|
||||||
|
|
||||||
params ["_unit", "_damages"];
|
params ["_unit", "_damages"];
|
||||||
TRACE_2("woundsHandlerIncendiary",_unit,_damages);
|
TRACE_2("woundsHandlerIncendiary",_unit,_damages);
|
||||||
|
|
||||||
@ -32,9 +30,7 @@ private _fireDamage = 0;
|
|||||||
private _intensity = linearConversion [0, 20, _fireDamage, 0, 10, true];
|
private _intensity = linearConversion [0, 20, _fireDamage, 0, 10, true];
|
||||||
TRACE_2("",_intensity,_fireDamage);
|
TRACE_2("",_intensity,_fireDamage);
|
||||||
|
|
||||||
if (_intensity > BURN_THRESHOLD) then {
|
// Let fire handle if unit is set ablaze or not
|
||||||
TRACE_2("Setting unit ablaze",_intensity,BURN_THRESHOLD);
|
[QEGVAR(fire,burn), [_unit, _intensity]] call CBA_fnc_localEvent;
|
||||||
["ace_fire_burn", [_unit, _intensity]] call CBA_fnc_globalEvent;
|
|
||||||
};
|
|
||||||
|
|
||||||
_this // return
|
_this // return
|
||||||
|
@ -18,8 +18,6 @@
|
|||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define BURN_THRESHOLD 1
|
|
||||||
|
|
||||||
params ["_unit", "_damages"];
|
params ["_unit", "_damages"];
|
||||||
TRACE_2("woundsHandlerIncendiary",_unit,_damages);
|
TRACE_2("woundsHandlerIncendiary",_unit,_damages);
|
||||||
|
|
||||||
@ -32,9 +30,7 @@ private _fireDamage = 0;
|
|||||||
private _intensity = linearConversion [0, 20, _fireDamage, 0, 10, true];
|
private _intensity = linearConversion [0, 20, _fireDamage, 0, 10, true];
|
||||||
TRACE_2("",_intensity,_fireDamage);
|
TRACE_2("",_intensity,_fireDamage);
|
||||||
|
|
||||||
if (_intensity > BURN_THRESHOLD) then {
|
// Let fire handle if unit is set ablaze or not
|
||||||
TRACE_2("Setting unit ablaze",_intensity,BURN_THRESHOLD);
|
[QEGVAR(fire,burn), [_unit, _intensity]] call CBA_fnc_localEvent;
|
||||||
["ace_fire_burn", [_unit, _intensity]] call CBA_fnc_globalEvent;
|
|
||||||
};
|
|
||||||
|
|
||||||
_this // return
|
_this // return
|
||||||
|
Loading…
Reference in New Issue
Block a user