mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-18 03:22:35 +00:00
Legacy Proration, force "Leader" splits for Class R
This commit is contained in:
parent
0a94c2ac83
commit
a498ca732f
3 changed files with 11 additions and 4 deletions
|
|
@ -2344,6 +2344,10 @@ void G_SetDemoCheckpointTiming(player_t *player, tic_t time, UINT8 checkpoint)
|
|||
|
||||
boolean polite = (cv_attacksplits.value == 1);
|
||||
|
||||
// Class R doesn't have coherent times, just watch the leader.
|
||||
if (K_LegacyRingboost(player))
|
||||
polite = false;
|
||||
|
||||
// "Next" Mode: Find the weakest ghost who beats our best time.
|
||||
// Don't set a ghost if we have no set time (oldbest == UINT32_MAX)
|
||||
if (polite)
|
||||
|
|
@ -3577,7 +3581,7 @@ void G_AddGhost(savebuffer_t *buffer, const char *defdemoname)
|
|||
p++; // SUBVERSION
|
||||
|
||||
ghostversion = READUINT16(p);
|
||||
|
||||
|
||||
if (ghostversion < MINDEMOVERSION || ghostversion > DEMOVERSION)
|
||||
{
|
||||
// too old, cannot support.
|
||||
|
|
|
|||
|
|
@ -3108,6 +3108,9 @@ fixed_t K_PlayerTripwireSpeedThreshold(const player_t *player)
|
|||
{
|
||||
fixed_t required_speed = 2 * K_GetKartSpeed(player, false, false); // 200%
|
||||
|
||||
if (K_LegacyRingboost(player))
|
||||
return required_speed;
|
||||
|
||||
if (specialstageinfo.valid)
|
||||
required_speed = 3 * K_GetKartSpeed(player, false, false) / 2; // 150%
|
||||
|
||||
|
|
@ -9484,7 +9487,7 @@ static inline BlockItReturn_t PIT_AttractingRings(mobj_t *thing)
|
|||
return BMIT_CONTINUE; // find other rings
|
||||
}
|
||||
|
||||
boolean K_LegacyRingboost(player_t *player)
|
||||
boolean K_LegacyRingboost(const player_t *player)
|
||||
{
|
||||
if (netgame)
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ Make sure this matches the actual number of states
|
|||
|
||||
#define BAIL_MAXCHARGE (84) // tics to bail when in painstate nad in air, on ground is half, if you touch this, also update Obj_BailChargeThink synced animation logic
|
||||
#define BAIL_DROP (FRACUNIT)
|
||||
#define BAIL_BOOST (6*FRACUNIT/5)
|
||||
#define BAIL_BOOST (6*FRACUNIT/5)
|
||||
#define BAIL_CREDIT_DEBTRINGS (true)
|
||||
#define BAIL_DROPFREQUENCY (2)
|
||||
#define BAILSTUN (TICRATE*6)
|
||||
|
|
@ -348,7 +348,7 @@ UINT16 K_GetEXP(player_t *player);
|
|||
|
||||
UINT32 K_GetNumGradingPoints(void);
|
||||
|
||||
boolean K_LegacyRingboost(player_t *player);
|
||||
boolean K_LegacyRingboost(const player_t *player);
|
||||
|
||||
void K_BotHitPenalty(player_t *player);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue