Slight viewbob adjustment.

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

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r788 \cu(Thu 1 Jun 09:07:43 CEST 2023)\c-";
SWWM_SHORTVER="\cw1.3pre r788 \cu(2023-06-01 09:07:43)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r789 \cu(Sun 4 Jun 11:56:44 CEST 2023)\c-";
SWWM_SHORTVER="\cw1.3pre r789 \cu(2023-06-04 11:56:44)\c-";

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)