mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Jawz uses Battle's steering in Special Stages
Makes it miss the UFO's erratic movement less often
This commit is contained in:
parent
630e5d4cf1
commit
7427daf7ad
1 changed files with 12 additions and 1 deletions
|
|
@ -24,6 +24,7 @@
|
|||
#include "../k_waypoint.h"
|
||||
#include "../k_respawn.h"
|
||||
#include "../k_collide.h"
|
||||
#include "../k_specialstage.h"
|
||||
|
||||
#define MAX_JAWZ_TURN (ANGLE_90 / 15) // We can turn a maximum of 6 degrees per frame at regular max speed
|
||||
|
||||
|
|
@ -185,6 +186,16 @@ static void JawzChase(mobj_t *th, boolean grounded)
|
|||
}
|
||||
}
|
||||
|
||||
static boolean JawzSteersBetter(void)
|
||||
{
|
||||
if (specialStage.active == true)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return !!!(gametyperules & GTR_CIRCUIT);
|
||||
}
|
||||
|
||||
void Obj_JawzThink(mobj_t *th)
|
||||
{
|
||||
mobj_t *ghost = P_SpawnGhostMobj(th);
|
||||
|
|
@ -215,7 +226,7 @@ void Obj_JawzThink(mobj_t *th)
|
|||
ghost->colorized = true;
|
||||
}
|
||||
|
||||
if (!(gametyperules & GTR_CIRCUIT))
|
||||
if (JawzSteersBetter() == true)
|
||||
{
|
||||
th->friction = max(0, 3 * th->friction / 4);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue