mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
Postrace director cam
This commit is contained in:
parent
5f95ad933f
commit
b79f79db51
2 changed files with 22 additions and 0 deletions
|
|
@ -37,6 +37,7 @@
|
||||||
#include "g_party.h"
|
#include "g_party.h"
|
||||||
#include "g_input.h"
|
#include "g_input.h"
|
||||||
#include "k_objects.h"
|
#include "k_objects.h"
|
||||||
|
#include "k_director.h"
|
||||||
|
|
||||||
boolean level_tally_t::UseBonuses(void)
|
boolean level_tally_t::UseBonuses(void)
|
||||||
{
|
{
|
||||||
|
|
@ -781,6 +782,24 @@ void level_tally_t::Tick(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (done == true)
|
||||||
|
{
|
||||||
|
if (directorWait < TALLY_DIRECTOR_TIME)
|
||||||
|
{
|
||||||
|
directorWait++;
|
||||||
|
|
||||||
|
if (directorWait == TALLY_DIRECTOR_TIME && G_IsPartyLocal(owner - players) == true)
|
||||||
|
{
|
||||||
|
// Finished tally, go to director while we wait for others to finish.
|
||||||
|
K_ToggleDirector(G_PartyPosition(owner - players), true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
directorWait = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (transition < FRACUNIT)
|
if (transition < FRACUNIT)
|
||||||
{
|
{
|
||||||
if (transitionTime <= 0)
|
if (transitionTime <= 0)
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,8 @@ typedef enum
|
||||||
TALLY_ST_GAMEOVER_DONE,
|
TALLY_ST_GAMEOVER_DONE,
|
||||||
} tally_state_e;
|
} tally_state_e;
|
||||||
|
|
||||||
|
#define TALLY_DIRECTOR_TIME (2 * TICRATE)
|
||||||
|
|
||||||
struct level_tally_t
|
struct level_tally_t
|
||||||
{
|
{
|
||||||
boolean active;
|
boolean active;
|
||||||
|
|
@ -97,6 +99,7 @@ struct level_tally_t
|
||||||
boolean showGrade;
|
boolean showGrade;
|
||||||
boolean done;
|
boolean done;
|
||||||
boolean releasedFastForward;
|
boolean releasedFastForward;
|
||||||
|
INT32 directorWait;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
boolean UseBonuses(void);
|
boolean UseBonuses(void);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue