2015-03-08 16:50:06 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
|
|
|
* Called when a unit is killed
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The Unit <OBJECT>
|
|
|
|
*
|
|
|
|
* ReturnValue:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
private["_unit"];
|
|
|
|
_unit = _this select 0;
|
|
|
|
if (!local _unit) exitwith {};
|
|
|
|
|
|
|
|
_unit setvariable [QGVAR(pain), 0];
|
|
|
|
if (GVAR(level) >= 2) then {
|
2015-03-09 21:27:01 +00:00
|
|
|
_unit setvariable [QGVAR(heartRate), 0];
|
|
|
|
_unit setvariable [QGVAR(bloodPressure), [0, 0]];
|
|
|
|
_unit setvariable [QGVAR(airwayStatus), 0];
|
2015-03-22 16:04:42 +00:00
|
|
|
|
2015-04-01 18:03:44 +00:00
|
|
|
if (USE_WOUND_EVENT_SYNC) then {
|
2015-04-06 16:22:43 +00:00
|
|
|
_openWounds = _unit getvariable [QGVAR(openWounds), []];
|
|
|
|
{
|
|
|
|
["medical_propagateWound", [_unit, _x]] call EFUNC(common,globalEvent);
|
|
|
|
}foreach _openWounds;
|
|
|
|
};
|
2015-03-08 16:50:06 +00:00
|
|
|
};
|