From 7c79dc101abbbe56338f3cda45063814289db705 Mon Sep 17 00:00:00 2001 From: etojuice Date: Mon, 27 Dec 2021 15:35:17 +0300 Subject: [PATCH 1/2] Freelook bug fix --- regamedll/dlls/player.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/regamedll/dlls/player.cpp b/regamedll/dlls/player.cpp index c48545051..046231c45 100644 --- a/regamedll/dlls/player.cpp +++ b/regamedll/dlls/player.cpp @@ -2102,6 +2102,13 @@ void EXT_FUNC CBasePlayer::__API_HOOK(Killed)(entvars_t *pevAttacker, int iGib) pObserver->m_bNightVisionOn = false; } + +#ifdef REGAMEDLL_FIXES + if (pObserver->m_hObserverTarget == this) + { + pObserver->m_flNextFollowTime = 0.0f; + } +#endif } if (m_pTank) From d169d5fcb3bb93f4bbc8fa6f9cfcbb17e2bba7a0 Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Mon, 27 Dec 2021 15:40:19 +0300 Subject: [PATCH 2/2] Update regamedll/dlls/player.cpp --- regamedll/dlls/player.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/regamedll/dlls/player.cpp b/regamedll/dlls/player.cpp index 046231c45..ac14a7ec5 100644 --- a/regamedll/dlls/player.cpp +++ b/regamedll/dlls/player.cpp @@ -2105,9 +2105,7 @@ void EXT_FUNC CBasePlayer::__API_HOOK(Killed)(entvars_t *pevAttacker, int iGib) #ifdef REGAMEDLL_FIXES if (pObserver->m_hObserverTarget == this) - { pObserver->m_flNextFollowTime = 0.0f; - } #endif }