mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Guard: Scale graphic to player spheres
This commit is contained in:
parent
df6c9cee73
commit
a3d954e4ef
1 changed files with 9 additions and 2 deletions
|
|
@ -16,11 +16,14 @@ void Obj_BlockRingThink (mobj_t *ring)
|
|||
|
||||
// Follow player
|
||||
ring->flags &= ~(MF_NOCLIPTHING);
|
||||
P_SetScale(ring, mo->scale);
|
||||
P_MoveOrigin(ring, mo->x, mo->y, mo->z + mo->height/2);
|
||||
ring->flags |= MF_NOCLIPTHING;
|
||||
ring->color = mo->color;
|
||||
|
||||
fixed_t baseScale = mo->scale / 2;
|
||||
baseScale += (mo->scale / 30) * player->spheres;
|
||||
P_SetScale(ring, baseScale);
|
||||
|
||||
// Twirl
|
||||
ring->angle = ring->target->angle + (ANG15 * leveltime);
|
||||
// Visuals
|
||||
|
|
@ -49,7 +52,11 @@ void Obj_BlockBodyThink (mobj_t *body)
|
|||
|
||||
// Follow player
|
||||
body->flags &= ~(MF_NOCLIPTHING);
|
||||
P_SetScale(body, mo->scale);
|
||||
|
||||
fixed_t baseScale = mo->scale / 2;
|
||||
baseScale += (mo->scale / 30) * player->spheres;
|
||||
P_SetScale(body, baseScale);
|
||||
|
||||
P_MoveOrigin(body, mo->x, mo->y, mo->z + mo->height/2);
|
||||
body->flags |= MF_NOCLIPTHING;
|
||||
body->color = mo->color;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue