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:
parent
cb60ee98df
commit
bc05c33c20
2 changed files with 9 additions and 1 deletions
|
|
@ -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) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue