Tweak player friction again.

This commit is contained in:
Mari the Deer 2022-08-11 16:34:11 +02:00
commit 69bc0ba86c
2 changed files with 4 additions and 4 deletions

View file

@ -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;
}