ignore kill assist when victim killed himself while changing team

This commit is contained in:
s1lentq 2024-04-04 19:31:27 +07:00
parent a546997723
commit f711276d8a

View File

@ -10658,6 +10658,11 @@ bool CBasePlayer::Kill()
// have the player kill himself
pev->health = 0.0f;
#ifdef REGAMEDLL_API
CSPlayer()->ResetAllStats(); // reset damage stats on killed himself or team change
#endif
Killed(pev, GIB_NEVER);
if (CSGameRules()->m_pVIP == this)