mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Improved death handling
This commit is contained in:
@ -30,9 +30,6 @@ _this = _this select 1;
|
|||||||
switch _mode do {
|
switch _mode do {
|
||||||
|
|
||||||
case "Init": {
|
case "Init": {
|
||||||
0 fadeSound 0;
|
|
||||||
999999 cutText ["", "BLACK FADED", 0];
|
|
||||||
|
|
||||||
GVAR(noEscape) = if (count _this > 0) then {
|
GVAR(noEscape) = if (count _this > 0) then {
|
||||||
_this select 0
|
_this select 0
|
||||||
} else {
|
} else {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Author: SilentSpike
|
* Author: SilentSpike
|
||||||
* Cache necessary details and initalize spectator on death
|
* Cache necessary details and process unit for spectator on death
|
||||||
*
|
*
|
||||||
* Arguments:
|
* Arguments:
|
||||||
* 0: Corpse <OBJECT>
|
* 0: Corpse <OBJECT>
|
||||||
@ -24,8 +24,5 @@ if !(_unit getVariable [QGVAR(isSpectator),false]) then {
|
|||||||
GVAR(cachedSide) = side GVAR(cachedGroup);
|
GVAR(cachedSide) = side GVAR(cachedGroup);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Remove from group to prevent appearing on HUD upon respawn
|
||||||
[_unit] joinSilent grpNull;
|
[_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];
|
|
||||||
|
Reference in New Issue
Block a user