From a27b8e26b600e04aac269ea7b8b354a3a5e6c33b Mon Sep 17 00:00:00 2001 From: s1lent Date: Sun, 17 Dec 2017 19:28:01 +0700 Subject: [PATCH] Fixed a bug after killing czbot by headshot, angles turn at 180 degrees. Part 2 --- regamedll/dlls/player.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/regamedll/dlls/player.cpp b/regamedll/dlls/player.cpp index de896ff2..7adbd538 100644 --- a/regamedll/dlls/player.cpp +++ b/regamedll/dlls/player.cpp @@ -2057,12 +2057,7 @@ void EXT_FUNC CBasePlayer::__API_HOOK(Killed)(entvars_t *pevAttacker, int iGib) break; } -#ifdef REGAMEDLL_FIXES - pev->angles.y = UTIL_VecToAngles(pev->velocity).y; -#else pev->angles.y = UTIL_VecToAngles(-pev->velocity).y; -#endif - pev->v_angle.y = pev->angles.y; m_iThrowDirection = THROW_NONE; @@ -2587,8 +2582,10 @@ void EXT_FUNC CBasePlayer::__API_HOOK(SetAnimation)(PLAYER_ANIM playerAnim) break; case 3: case 4: +#ifndef REGAMEDLL_FIXES m_iThrowDirection = THROW_FORWARD; break; +#endif case 5: case 6: m_iThrowDirection = THROW_HITVEL;