Slight viewbob adjustment.
This commit is contained in:
parent
8f37783aad
commit
57464deeed
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue