mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Follower-mimicing emblems: Permit them to just sit there if their defined bobamp is 0
This is unlike audience members, which have a minimum jump height
This commit is contained in:
parent
af288571bd
commit
91f4169212
1 changed files with 6 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ Obj_AudienceInit
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// The following is derived from the default bobamp
|
// The following is derived from the default bobamp
|
||||||
if (!(mobj->flags & MF_NOGRAVITY) && followers[followerpick].bobamp < 4*FRACUNIT)
|
if (mobj->type != MT_EMBLEM && !(mobj->flags & MF_NOGRAVITY) && followers[followerpick].bobamp < 4*FRACUNIT)
|
||||||
{
|
{
|
||||||
audience_bobamp(mobj) = 4*mobj->scale;
|
audience_bobamp(mobj) = 4*mobj->scale;
|
||||||
}
|
}
|
||||||
|
|
@ -260,6 +260,11 @@ Obj_AudienceThink
|
||||||
// Skipped frames at spawn for offset in jumping
|
// Skipped frames at spawn for offset in jumping
|
||||||
audience_animoffset(mobj)--;
|
audience_animoffset(mobj)--;
|
||||||
}
|
}
|
||||||
|
else if (audience_bobamp(mobj) == 0)
|
||||||
|
{
|
||||||
|
// Just sit there
|
||||||
|
;
|
||||||
|
}
|
||||||
else if (mobj->flags2 & MF2_OBJECTFLIP)
|
else if (mobj->flags2 & MF2_OBJECTFLIP)
|
||||||
{
|
{
|
||||||
if (mobj->z + mobj->height >= mobj->ceilingz)
|
if (mobj->z + mobj->height >= mobj->ceilingz)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue