mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
682ae05f59
* Update fnc_handleKilled.sqf
* move to function
* Removed skipSetHidden
* Revert "Removed skipSetHidden"
This reverts commit 452c5216a7
.
* Update addons/medical_status/XEH_postInit.sqf
* add comment, force git to run actions
---------
Co-authored-by: LinkIsGrim <salluci.lovi@gmail.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
20 lines
687 B
Plaintext
20 lines
687 B
Plaintext
#include "script_component.hpp"
|
|
|
|
// Handle pain changes on injury
|
|
[QEGVAR(medical,injured), LINKFUNC(adjustPainLevel)] call CBA_fnc_addEventHandler;
|
|
|
|
// Handle comms status effects for spectator
|
|
// Separate from medical_feedback as these affect unit behavior rather than what the player sees
|
|
["featureCamera", {
|
|
params ["_unit", "_newCamera"];
|
|
|
|
if (_unit isNotEqualTo ACE_player) exitWith {};
|
|
|
|
if (_newCamera == "") then { // switched back to player view
|
|
private _status = IS_UNCONSCIOUS(_unit);
|
|
[_unit, _status] call FUNC(setStatusEffects);
|
|
} else {
|
|
[_unit, false, true] call FUNC(setStatusEffects);
|
|
};
|
|
}] call CBA_fnc_addPlayerEventHandler;
|