mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Battle: activate director after dying to Overtime Barrier
This commit is contained in:
parent
d56be63249
commit
ccd933556d
1 changed files with 8 additions and 0 deletions
|
|
@ -58,6 +58,7 @@
|
||||||
#include "k_terrain.h" // K_SpawnSplashForMobj
|
#include "k_terrain.h" // K_SpawnSplashForMobj
|
||||||
#include "k_color.h"
|
#include "k_color.h"
|
||||||
#include "k_follower.h"
|
#include "k_follower.h"
|
||||||
|
#include "k_director.h"
|
||||||
|
|
||||||
#ifdef HW3SOUND
|
#ifdef HW3SOUND
|
||||||
#include "hardware/hw3sound.h"
|
#include "hardware/hw3sound.h"
|
||||||
|
|
@ -2783,6 +2784,13 @@ static void P_DeathThink(player_t *player)
|
||||||
player->playerstate = PST_REBORN;
|
player->playerstate = PST_REBORN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: support splitscreen
|
||||||
|
// Spectate another player after 2 seconds
|
||||||
|
if (player == &players[consoleplayer] && playerGone == true && (gametyperules & GTR_BUMPERS) && player->deadtimer == 2*TICRATE)
|
||||||
|
{
|
||||||
|
K_ToggleDirector(true);
|
||||||
|
}
|
||||||
|
|
||||||
// Keep time rolling
|
// Keep time rolling
|
||||||
if (!(player->exiting || mapreset) && !(player->pflags & PF_NOCONTEST) && !stoppedclock)
|
if (!(player->exiting || mapreset) && !(player->pflags & PF_NOCONTEST) && !stoppedclock)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue