- Blood: Clamp tangent applied as Z offset in view.

* Value of `1.171875` == 150 (value between 180/120 - old min/max) / 128 (Build to pure Tan).
This commit is contained in:
Mitchell Richters 2022-09-30 15:20:56 +10:00 committed by Christoph Oelckers
parent c3adf5ea58
commit dbdcdb934f

View file

@ -525,7 +525,7 @@ static void SetupView(PLAYER* pPlayer, DVector3& cPos, DAngle& cA, DAngle& cH, s
{
cPos.Z += bobHeight;
}
cPos.Z += cH.Tan() * 5.;
cPos.Z += clamp(cH.Tan(), -1.171875, 1.171875) * 5.;
}
else
{