mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical Feedback - Stop effects on featureCamera (#8373)
Co-authored-by: Kyle Mckay <5459452+kymckay@users.noreply.github.com>
This commit is contained in:
parent
755c5ea50d
commit
0a203fdde4
@ -78,6 +78,27 @@ GVAR(bloodTickCounter) = 0;
|
||||
["unconscious", _status] call EFUNC(common,setDisableUserInputStatus);
|
||||
}] call CBA_fnc_addPlayerEventHandler;
|
||||
|
||||
// Update effects for featureCamera (curator, arsenal, etc)
|
||||
["featureCamera", {
|
||||
params ["_unit", "_newCamera"];
|
||||
|
||||
[true] call FUNC(handleEffects);
|
||||
|
||||
private _volume = missionNamespace getVariable [QEGVAR(hearing,unconsciousnessVolume), VOL_UNCONSCIOUS];
|
||||
|
||||
if (_newCamera == "") then { // switched back to player view
|
||||
private _status = IS_UNCONSCIOUS(_unit);
|
||||
[!_status, _unit] call EFUNC(common,setVolume);
|
||||
|
||||
[QUOTE(ADDON), _volume, _status] call EFUNC(common,setHearingCapability);
|
||||
|
||||
["unconscious", _status] call EFUNC(common,setDisableUserInputStatus);
|
||||
} else { // camera view
|
||||
[true, _unit] call EFUNC(common,setVolume);
|
||||
[QUOTE(ADDON), 1, false] call EFUNC(common,setHearingCapability);
|
||||
};
|
||||
}] call CBA_fnc_addPlayerEventHandler;
|
||||
|
||||
// Forced say3D
|
||||
[QGVAR(forceSay3D), {
|
||||
params ["_unit", "_sound", "_distance"];
|
||||
|
@ -15,8 +15,12 @@
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
private _heartRate = GET_HEART_RATE(ACE_player);
|
||||
if (EGVAR(common,OldIsCamera)) exitWith {
|
||||
TRACE_2("Ending heart beat effect - scripted camera",_heartRate,EGVAR(common,OldIsCamera));
|
||||
GVAR(heartBeatEffectRunning) = false;
|
||||
};
|
||||
|
||||
private _heartRate = GET_HEART_RATE(ACE_player);
|
||||
if (_heartRate == 0) exitWith {
|
||||
TRACE_1("Ending heart beat effect - zero",_heartRate);
|
||||
GVAR(heartBeatEffectRunning) = false;
|
||||
|
@ -41,6 +41,8 @@ if (_causeOfDeath != "#scripted") then {
|
||||
_this set [1, _killer];
|
||||
_this set [2, _instigator];
|
||||
};
|
||||
} else { // in that case, call setDead manually to prevent any issues
|
||||
[_unit, "#scripted"] call FUNC(setDead);
|
||||
};
|
||||
TRACE_3("killer info",_killer,_instigator,_causeOfDeath);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user