Count resurrect cheat as respawn

This commit is contained in:
ZZYZX 2017-02-02 21:34:26 +02:00
parent 39355cf45d
commit 957a8cb117
1 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,7 @@
#include "a_morph.h"
#include "g_levellocals.h"
#include "virtual.h"
#include "events.h"
// [RH] Actually handle the cheat. The cheat code in st_stuff.c now just
// writes some bytes to the network data stream, and the network code
@ -347,6 +348,12 @@ void cht_DoCheat (player_t *player, int cheat)
P_UndoPlayerMorph(player, player);
}
// player is now alive.
// fire E_PlayerRespawned and start the ACS SCRIPT_Respawn.
E_PlayerRespawned(player - players);
//
FBehavior::StaticStartTypedScripts(SCRIPT_Respawn, player->mo, true);
}
}
break;