2016-07-02 14:34:28 +00:00
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
GVAR(heartBeatSounds_Fast) = ["ACE_heartbeat_fast_1", "ACE_heartbeat_fast_2", "ACE_heartbeat_fast_3"];
|
|
|
|
GVAR(heartBeatSounds_Normal) = ["ACE_heartbeat_norm_1", "ACE_heartbeat_norm_2"];
|
|
|
|
GVAR(heartBeatSounds_Slow) = ["ACE_heartbeat_slow_1", "ACE_heartbeat_slow_2"];
|
|
|
|
|
2016-09-18 17:48:49 +00:00
|
|
|
call FUNC(stateMachine);
|
2016-07-02 14:34:28 +00:00
|
|
|
|
2016-08-01 21:20:13 +00:00
|
|
|
//Handle Deleting Bodies and creating litter on Server:
|
|
|
|
if (isServer) then {
|
|
|
|
["ace_placedInBodyBag", FUNC(serverRemoveBody)] call CBA_fnc_addEventHandler;
|
|
|
|
};
|
2016-02-19 21:39:38 +00:00
|
|
|
|
2016-07-02 14:34:28 +00:00
|
|
|
["ace_unconscious", {
|
|
|
|
params ["_unit", "_status"];
|
|
|
|
if (local _unit) then {
|
|
|
|
if (_status) then {
|
|
|
|
_unit setVariable ["tf_voiceVolume", 0, true];
|
|
|
|
_unit setVariable ["tf_unable_to_use_radio", true, true];
|
|
|
|
_unit setVariable ["acre_sys_core_isDisabled", true, true];
|
|
|
|
} else {
|
|
|
|
_unit setVariable ["tf_voiceVolume", 1, true];
|
|
|
|
_unit setVariable ["tf_unable_to_use_radio", false, true];
|
|
|
|
_unit setVariable ["acre_sys_core_isDisabled", false, true];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}] call CBA_fnc_addEventHandler;
|