Slight viewbob adjustment.

This commit is contained in:
Mari the Deer 2023-06-04 11:43:18 +02:00
commit 57464deeed
2 changed files with 4 additions and 4 deletions

View file

@ -97,8 +97,8 @@ extend Class Demolitionist
// apply bobbing (formula adapted from Unreal)
oldbobtime = bobtime;
double vel2d = vel.xy dot vel.xy;
bobtime += (1.75+.25*min(vel2d/100.,3.))/GameTicRate;
Vector2 bob = (sin(bobtime*180.),.5*sin(bobtime*360.))*player.bob*.25;
bobtime += (1.8+.4*min(vel2d/100.,3.))/GameTicRate;
Vector2 bob = (sin(bobtime*180.),.5*sin(bobtime*360.))*player.bob*.35;
if ( player.morphtics )
bob = (0.,0.);
else if ( player.bob && !multiplayer && !(player.cheats&CF_CHASECAM)