Skip to content

Commit

Permalink
Medical - Exit turret gunner view when going unconscious (#7003)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored and kymckay committed May 20, 2019
1 parent 575602d commit e1136e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/medical_feedback/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ GVAR(heartBeatEffectRunning) = false;

if (_unit != ACE_player) exitWith {};

if (_unconscious && {cameraView == "GUNNER"} && {(vehicle _unit) != _unit} && {cameraOn == vehicle _unit}) then {
TRACE_2("exiting gunner view",cameraOn,cameraView);
ACE_player switchCamera "INTERNAL";
};

// Toggle unconscious player's ability to talk in radio addons
if (["task_force_radio"] call EFUNC(common,isModLoaded)) then {
_unit setVariable ["tf_voiceVolume", [1, 0] select _unconscious, true];
Expand Down

0 comments on commit e1136e7

Please sign in to comment.