Skip to content

Commit

Permalink
Make EyeHeight recovery Framerate independent
Browse files Browse the repository at this point in the history
  • Loading branch information
Deaod committed Jul 5, 2020
1 parent b42c3e9 commit 5bd4180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/UTComp_xPawn.uc
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ event UpdateEyeHeight( float DeltaTime )
EyeHeightOffset += BaseEyeHeight - OldBaseEyeHeight;
OldBaseEyeHeight = BaseEyeHeight;

EyeHeightOffset *= (1.0 - FMin(20.0*DeltaTime/Level.TimeDilation, 1.0));
EyeHeightOffset *= Exp(-10.0 * DeltaTime);
EyeHeight = BaseEyeHeight - EyeHeightOffset;

Controller.AdjustView(DeltaTime);
Expand Down

0 comments on commit 5bd4180

Please sign in to comment.