mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Audience: shadow, auomatically becomes white on fullbright frames
This commit is contained in:
parent
e41b371096
commit
c591087ac4
1 changed files with 9 additions and 0 deletions
|
|
@ -518,6 +518,11 @@ boolean P_SetMobjState(mobj_t *mobj, statenum_t state)
|
||||||
for (;(state = seenstate[i]) > S_NULL; i = state - 1)
|
for (;(state = seenstate[i]) > S_NULL; i = state - 1)
|
||||||
seenstate[i] = S_NULL; // erase memory of states
|
seenstate[i] = S_NULL; // erase memory of states
|
||||||
|
|
||||||
|
// Shadow automatically turns white on fullbright frames.
|
||||||
|
// For now, only applies to Follower Audience.
|
||||||
|
if (mobj->type == MT_RANDOMAUDIENCE)
|
||||||
|
mobj->whiteshadow = (mobj->frame & FF_FULLBRIGHT) != 0;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -10694,6 +10699,10 @@ static void P_DefaultMobjShadowScale(mobj_t *thing)
|
||||||
case MT_AIRIVOBALL:
|
case MT_AIRIVOBALL:
|
||||||
thing->shadowscale = FRACUNIT/2;
|
thing->shadowscale = FRACUNIT/2;
|
||||||
break;
|
break;
|
||||||
|
case MT_RANDOMAUDIENCE:
|
||||||
|
thing->shadowscale = FRACUNIT;
|
||||||
|
thing->whiteshadow = false;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if (thing->flags & (MF_ENEMY|MF_BOSS))
|
if (thing->flags & (MF_ENEMY|MF_BOSS))
|
||||||
thing->shadowscale = FRACUNIT;
|
thing->shadowscale = FRACUNIT;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue