mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-26 14:45:38 +03:00
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 <wopox1337@ya.ru>
This commit is contained in:
parent
b979b5e84f
commit
09a6c61898
@ -2102,6 +2102,11 @@ 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)
|
||||
|
Loading…
Reference in New Issue
Block a user