mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 07:05:38 +03:00
Fix dead players kick for idle (#389)
This commit is contained in:
parent
b669a3907a
commit
75bdc26df1
@ -4218,7 +4218,11 @@ void EXT_FUNC CBasePlayer::__API_HOOK(PreThink)()
|
|||||||
m_flVelocityModifier = 1;
|
m_flVelocityModifier = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_flIdleCheckTime <= (double)gpGlobals->time || m_flIdleCheckTime == 0.0f)
|
if (
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
|
IsAlive() &&
|
||||||
|
#endif
|
||||||
|
m_flIdleCheckTime <= (double)gpGlobals->time || m_flIdleCheckTime == 0.0f)
|
||||||
{
|
{
|
||||||
// check every 5 seconds
|
// check every 5 seconds
|
||||||
m_flIdleCheckTime = gpGlobals->time + 5.0;
|
m_flIdleCheckTime = gpGlobals->time + 5.0;
|
||||||
|
Loading…
Reference in New Issue
Block a user