mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
27 lines
941 B
Plaintext
27 lines
941 B
Plaintext
// #define DEBUG_MODE_FULL
|
|
#include "script_component.hpp"
|
|
|
|
["CBA_settingsInitialized", {
|
|
if !(GETEGVAR(medical,enabled,false)) exitWith {};
|
|
|
|
[QEGVAR(medical,setUnconscious), LINKFUNC(setUnconscious)] call CBA_fnc_addEventHandler;
|
|
|
|
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
|
|
call compile preprocessFileLineNumbers QPATHTOF(dev\reportSettings.sqf);
|
|
call compile preprocessFileLineNumbers QPATHTOF(dev\watchVariable.sqf);
|
|
call compile preprocessFileLineNumbers QPATHTOF(dev\debugDisplay.sqf);
|
|
#endif
|
|
}] call CBA_fnc_addEventHandler;
|