Copy over frozen/totallyfrozen player property behavior from DT:

- Fixes end cutscene in Spooktober, and other cases where the player would be frozen but made to autowalk.
 - Also fixes preserving dash while frozen (this was definitely not intended).
This commit is contained in:
Mari the Deer 2020-11-02 13:46:03 +01:00
commit bc05c33c20
2 changed files with 9 additions and 1 deletions

View file

@ -1071,6 +1071,14 @@ Class Demolitionist : PlayerPawn
}
override void MovePlayer()
{
if ( !player || (player.mo != self) || (player.cheats&(CF_FROZEN|CF_TOTALLYFROZEN)) )
{
dashboost = 0.;
if ( dashsnd ) A_StartSound("demolitionist/jetstop",CHAN_JETPACK);
dashsnd = false;
Super.MovePlayer();
return;
}
bool isdashing = InStateSequence(CurState,FindState("Dash"));
if ( isdashing ) player.cmd.forwardmove = player.cmd.sidemove = 0;
if ( (waterlevel < 2) && bFly && !bFlyCheat && !(player.cheats&CF_NOCLIP2) )