PMove: make sv_maxspeed actually controlls players speed
This commit is contained in:
parent
ac0e739170
commit
9455596a3a
1 changed files with 3 additions and 1 deletions
|
@ -299,7 +299,9 @@ NSClientPlayer::Physics_WaterMove(void)
|
||||||
float
|
float
|
||||||
NSClientPlayer::Physics_MaxSpeed(void)
|
NSClientPlayer::Physics_MaxSpeed(void)
|
||||||
{
|
{
|
||||||
return (GetFlags() & FL_CROUCHING) ? 135 : 270;
|
float maxspeed = serverkeyfloat("phy_maxspeed");
|
||||||
|
float desiredspeed = (GetFlags() & FL_CROUCHING) ? PMOVE_STEP_WALKSPEED : maxspeed;
|
||||||
|
return min(desiredspeed, maxspeed);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue