Fix: NOFRICTION was set unconditionally.
This commit is contained in:
parent
35ee056d7a
commit
459f526e60
1 changed files with 10 additions and 2 deletions
|
|
@ -45,8 +45,6 @@ Class UTPlayer : DoomPlayer
|
||||||
Player.GruntSpeed 20;
|
Player.GruntSpeed 20;
|
||||||
MaxDropoffHeight 18;
|
MaxDropoffHeight 18;
|
||||||
MaxStepHeight 18;
|
MaxStepHeight 18;
|
||||||
+NOFRICTION;
|
|
||||||
+NOFRICTIONBOUNCE;
|
|
||||||
+NOMENU;
|
+NOMENU;
|
||||||
UTPlayer.DollType DOLL_Male;
|
UTPlayer.DollType DOLL_Male;
|
||||||
}
|
}
|
||||||
|
|
@ -205,6 +203,16 @@ Class UTPlayer : DoomPlayer
|
||||||
{
|
{
|
||||||
Super.Tick();
|
Super.Tick();
|
||||||
if ( !player || (player.mo != self) ) return;
|
if ( !player || (player.mo != self) ) return;
|
||||||
|
if ( flak_utmovement )
|
||||||
|
{
|
||||||
|
bNOFRICTION = true;
|
||||||
|
bNOFRICTIONBOUNCE = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
bNOFRICTION = false;
|
||||||
|
bNOFRICTIONBOUNCE = false;
|
||||||
|
}
|
||||||
if ( !footsteps ) footsteps = CVar.GetCVar('flak_footsteps',players[consoleplayer]);
|
if ( !footsteps ) footsteps = CVar.GetCVar('flak_footsteps',players[consoleplayer]);
|
||||||
if ( !footsteps.GetBool() ) return;
|
if ( !footsteps.GetBool() ) return;
|
||||||
double ang = level.time/(20*TICRATE/35.)*360.;
|
double ang = level.time/(20*TICRATE/35.)*360.;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue