Skip to content

Commit 09a6c61

Browse files
etojuicewopox1337
andauthored
Reset m_flNextFollowTime before trying to find next target after previous target death (#712)
* Freelook bug fix * Update regamedll/dlls/player.cpp Co-authored-by: Sergey Shorokhov <[email protected]>
1 parent b979b5e commit 09a6c61

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

regamedll/dlls/player.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2102,6 +2102,11 @@ void EXT_FUNC CBasePlayer::__API_HOOK(Killed)(entvars_t *pevAttacker, int iGib)
21022102

21032103
pObserver->m_bNightVisionOn = false;
21042104
}
2105+
2106+
#ifdef REGAMEDLL_FIXES
2107+
if (pObserver->m_hObserverTarget == this)
2108+
pObserver->m_flNextFollowTime = 0.0f;
2109+
#endif
21052110
}
21062111

21072112
if (m_pTank)

0 commit comments

Comments
 (0)