ACE3/addons/medical/XEH_postInit.sqf

23 lines
762 B
Plaintext
Raw Normal View History

2018-07-29 22:07:30 +00:00
// #define DEBUG_MODE_FULL
#include "script_component.hpp"
[QEGVAR(medical,setUnconscious), LINKFUNC(setUnconscious)] call CBA_fnc_addEventHandler;
2016-10-06 22:09:58 +00:00
if (!hasInterface) exitWith {};
// Fractures affect base sway, pain makes it worse
["baseline", {
ACE_player getVariable [QEGVAR(medical_engine,aimFracture), 0]
}, QUOTE(ADDON)] call EFUNC(common,addSwayFactor);
// Max pain = 5x sway
["multiplier", {
1 + (GET_PAIN_PERCEIVED(ACE_player) * 4)
}, QUOTE(ADDON)] call EFUNC(common,addSwayFactor);
#ifdef DEBUG_MODE_FULL
2020-04-22 15:05:22 +00:00
call compile preprocessFileLineNumbers QPATHTOF(dev\reportSettings.sqf);
2019-03-24 00:55:04 +00:00
call compile preprocessFileLineNumbers QPATHTOF(dev\watchVariable.sqf);
call compile preprocessFileLineNumbers QPATHTOF(dev\debugDisplay.sqf);
#endif