From 45fbb042f801c7c4782a0d3ffb5c7702e1d13c2e Mon Sep 17 00:00:00 2001 From: CrazY Date: Mon, 25 Feb 2019 18:13:23 -0300 Subject: [PATCH] Fix for dead player inclination (#342) * Fix for dead player inclination --- regamedll/dlls/player.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/regamedll/dlls/player.cpp b/regamedll/dlls/player.cpp index 33f6c1b4..8b9c5391 100644 --- a/regamedll/dlls/player.cpp +++ b/regamedll/dlls/player.cpp @@ -3482,7 +3482,12 @@ void CBasePlayer::PlayerDeathThink() // we aren't calling into any of their code anymore through the player pointer. PackDeadPlayerItems(); } - + +#ifdef REGAMEDLL_FIXES + // Clear inclination came from client view + pev->angles.x = 0; +#endif + if (pev->modelindex && !m_fSequenceFinished && pev->deadflag == DEAD_DYING) { StudioFrameAdvance();