ACE3/addons/medical_damage/XEH_preInit.sqf

19 lines
511 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
ADDON = false;
#include "XEH_PREP.hpp"
call FUNC(parseConfigForInjuries);
2016-09-18 12:05:05 +00:00
[QEGVAR(medical_engine,woundReceived), {
params ["_unit", "_woundedHitPoint", "_receivedDamage", "", "_ammo"];
private _typeOfDamage = _ammo call FUNC(getTypeOfDamage);
2016-12-05 20:34:20 +00:00
[_unit, _woundedHitPoint, _receivedDamage, _ammo, _typeOfDamage] call FUNC(woundsHandler);
2016-09-18 17:48:49 +00:00
2016-09-27 17:22:54 +00:00
[_unit, EGVAR(medical,STATE_MACHINE)] call EFUNC(medical,addStateHandler);
}] call CBA_fnc_addEventHandler;
ADDON = true;