Slight run/sprint speed tweaks.

This commit is contained in:
Mari the Deer 2022-11-29 20:28:54 +01:00
commit 6ce0c7b312
2 changed files with 4 additions and 4 deletions

View file

@ -333,7 +333,7 @@ Class Demolitionist : PlayerPawn
}
double TweakSpeed()
{
double fact = bWalking?.08:(player.cmd.buttons&BT_RUN)?1.25:.5;
double fact = bWalking?.08:(player.cmd.buttons&BT_RUN)?1.1:.4;
for ( Inventory i=Inv; i; i=i.Inv ) fact *= i.GetSpeedFactor();
return fact;
}
@ -1976,7 +1976,7 @@ Class Demolitionist : PlayerPawn
oldbobtime = bobtime;
double vel2d = vel.xy.length();
if ( vel2d < .25 ) bobtime += .2/GameTicRate;
else bobtime += (.3+.7*min(vel2d/8.,4.))/GameTicRate;
else bobtime += (.5+.8*min(vel2d/10.,3.))/GameTicRate;
Vector2 bob = (sin(bobtime*180.),sin(bobtime*360.))*player.bob*.25;
if ( player.morphtics )
bob = (0.,0.);