From ad30b28f3470164ab12c28373d97005f7bbeece5 Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Sun, 5 Jul 2015 01:20:14 +0100 Subject: [PATCH] Improved death handling --- addons/spectator/functions/fnc_camera.sqf | 3 --- addons/spectator/functions/fnc_handleKilled.sqf | 7 ++----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/addons/spectator/functions/fnc_camera.sqf b/addons/spectator/functions/fnc_camera.sqf index 90ee99a9de..d07987c80d 100644 --- a/addons/spectator/functions/fnc_camera.sqf +++ b/addons/spectator/functions/fnc_camera.sqf @@ -30,9 +30,6 @@ _this = _this select 1; switch _mode do { case "Init": { - 0 fadeSound 0; - 999999 cutText ["", "BLACK FADED", 0]; - GVAR(noEscape) = if (count _this > 0) then { _this select 0 } else { diff --git a/addons/spectator/functions/fnc_handleKilled.sqf b/addons/spectator/functions/fnc_handleKilled.sqf index bafe5e0c76..acaa4429d3 100644 --- a/addons/spectator/functions/fnc_handleKilled.sqf +++ b/addons/spectator/functions/fnc_handleKilled.sqf @@ -1,6 +1,6 @@ /* * Author: SilentSpike - * Cache necessary details and initalize spectator on death + * Cache necessary details and process unit for spectator on death * * Arguments: * 0: Corpse @@ -24,8 +24,5 @@ if !(_unit getVariable [QGVAR(isSpectator),false]) then { GVAR(cachedSide) = side GVAR(cachedGroup); }; +// Remove from group to prevent appearing on HUD upon respawn [_unit] joinSilent grpNull; -if (["ace_hearing"] call EFUNC(common,isModLoaded)) then {EGVAR(hearing,disableVolumeUpdate) = true}; -_delay = getNumber (missionConfigFile >> "respawnDelay"); -_delay fadeSound 0; -999999 cutText ["", "BLACK", _delay];