Tweak player friction again.
This commit is contained in:
parent
311bf6e899
commit
69bc0ba86c
2 changed files with 4 additions and 4 deletions
|
|
@ -2097,8 +2097,8 @@ Class Demolitionist : PlayerPawn
|
|||
else if ( player.onground && ShouldDecelerate(floorsector) )
|
||||
{
|
||||
// quickly decelerate if we're not holding movement keys
|
||||
// (account for slippery floors, and assume approx .9 friction as "midpoint" for 75% reductrion)
|
||||
double fact = clamp(floorsector.GetFriction(0)/1.2,.5,1.);
|
||||
// (account for slippery floors, and assume approx .9 friction as "midpoint" for 85% reduction)
|
||||
double fact = clamp(floorsector.GetFriction(0)*.95,.5,1.);
|
||||
vel *= fact;
|
||||
player.vel *= fact;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue