mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Don't modify the states table for kartdebugwaypoints or kartdebugbotpredict
Also makes debugwaypoints fullbright so it's a little easier to see in dark levels.
This commit is contained in:
parent
d2dd562919
commit
17de1d5ff3
2 changed files with 10 additions and 13 deletions
|
|
@ -867,8 +867,7 @@ static void K_DrawPredictionDebug(botprediction_t *predict, player_t *player)
|
||||||
debugmobj->color = SKINCOLOR_ORANGE;
|
debugmobj->color = SKINCOLOR_ORANGE;
|
||||||
debugmobj->scale *= 2;
|
debugmobj->scale *= 2;
|
||||||
|
|
||||||
debugmobj->state->tics = 2;
|
debugmobj->tics = 2;
|
||||||
debugmobj->state->nextstate = S_NULL;
|
|
||||||
|
|
||||||
for (i = 0; i < 2; i++)
|
for (i = 0; i < 2; i++)
|
||||||
{
|
{
|
||||||
|
|
@ -894,8 +893,7 @@ static void K_DrawPredictionDebug(botprediction_t *predict, player_t *player)
|
||||||
debugmobj->color = SKINCOLOR_YELLOW;
|
debugmobj->color = SKINCOLOR_YELLOW;
|
||||||
debugmobj->scale /= 2;
|
debugmobj->scale /= 2;
|
||||||
|
|
||||||
debugmobj->state->tics = 2;
|
debugmobj->tics = 2;
|
||||||
debugmobj->state->nextstate = S_NULL;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -535,9 +535,9 @@ static void K_DebugWaypointsSpawnLine(waypoint_t *const waypoint1, waypoint_t *c
|
||||||
{
|
{
|
||||||
spawnedmobj = P_SpawnMobj(x, y, z, MT_SPARK);
|
spawnedmobj = P_SpawnMobj(x, y, z, MT_SPARK);
|
||||||
P_SetMobjState(spawnedmobj, S_THOK);
|
P_SetMobjState(spawnedmobj, S_THOK);
|
||||||
spawnedmobj->state->nextstate = S_NULL;
|
spawnedmobj->tics = 1;
|
||||||
spawnedmobj->state->tics = 1;
|
spawnedmobj->frame &= ~FF_TRANSMASK;
|
||||||
spawnedmobj->frame = spawnedmobj->frame & ~FF_TRANSMASK;
|
spawnedmobj->frame |= FF_FULLBRIGHT;
|
||||||
spawnedmobj->color = linkcolour;
|
spawnedmobj->color = linkcolour;
|
||||||
spawnedmobj->scale = FixedMul(spawnedmobj->scale, FixedMul(FRACUNIT/4, FixedDiv((15 - ((leveltime + n) % 16))*FRACUNIT, 15*FRACUNIT)));
|
spawnedmobj->scale = FixedMul(spawnedmobj->scale, FixedMul(FRACUNIT/4, FixedDiv((15 - ((leveltime + n) % 16))*FRACUNIT, 15*FRACUNIT)));
|
||||||
}
|
}
|
||||||
|
|
@ -582,9 +582,9 @@ static void K_DebugWaypointDrawRadius(waypoint_t *const waypoint)
|
||||||
|
|
||||||
radiusOrb = P_SpawnMobj(spawnX, spawnY, spawnZ, MT_SPARK);
|
radiusOrb = P_SpawnMobj(spawnX, spawnY, spawnZ, MT_SPARK);
|
||||||
P_SetMobjState(radiusOrb, S_THOK);
|
P_SetMobjState(radiusOrb, S_THOK);
|
||||||
radiusOrb->state->nextstate = S_NULL;
|
radiusOrb->tics = 1;
|
||||||
radiusOrb->state->tics = 1;
|
radiusOrb->frame &= ~FF_TRANSMASK;
|
||||||
radiusOrb->frame = radiusOrb->frame & ~FF_TRANSMASK;
|
radiusOrb->frame |= FF_FULLBRIGHT;
|
||||||
radiusOrb->color = SKINCOLOR_PURPLE;
|
radiusOrb->color = SKINCOLOR_PURPLE;
|
||||||
radiusOrb->scale = radiusOrb->scale / 4;
|
radiusOrb->scale = radiusOrb->scale / 4;
|
||||||
}
|
}
|
||||||
|
|
@ -623,7 +623,7 @@ void K_DebugWaypointsVisualise(void)
|
||||||
P_SetMobjState(debugmobj, S_THOK);
|
P_SetMobjState(debugmobj, S_THOK);
|
||||||
|
|
||||||
debugmobj->frame &= ~FF_TRANSMASK;
|
debugmobj->frame &= ~FF_TRANSMASK;
|
||||||
debugmobj->frame |= FF_TRANS20;
|
debugmobj->frame |= FF_TRANS20|FF_FULLBRIGHT;
|
||||||
|
|
||||||
// There's a waypoint setup for this mobj! So draw that it's a valid waypoint and draw lines to its connections
|
// There's a waypoint setup for this mobj! So draw that it's a valid waypoint and draw lines to its connections
|
||||||
if (waypoint != NULL)
|
if (waypoint != NULL)
|
||||||
|
|
@ -683,8 +683,7 @@ void K_DebugWaypointsVisualise(void)
|
||||||
{
|
{
|
||||||
debugmobj->color = SKINCOLOR_RED;
|
debugmobj->color = SKINCOLOR_RED;
|
||||||
}
|
}
|
||||||
debugmobj->state->tics = 1;
|
debugmobj->tics = 1;
|
||||||
debugmobj->state->nextstate = S_NULL;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue