Improved death handling

This commit is contained in:
SilentSpike 2015-07-05 01:20:14 +01:00
parent bedde2197b
commit ad30b28f34
2 changed files with 2 additions and 8 deletions

View File

@ -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 {

View File

@ -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 <OBJECT>
@ -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];