From f711276d8a722d6811a62de5415a3ea0db0a310d Mon Sep 17 00:00:00 2001 From: s1lentq Date: Thu, 4 Apr 2024 19:31:27 +0700 Subject: [PATCH] ignore kill assist when victim killed himself while changing team --- regamedll/dlls/player.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/regamedll/dlls/player.cpp b/regamedll/dlls/player.cpp index 06c55089..3638f261 100644 --- a/regamedll/dlls/player.cpp +++ b/regamedll/dlls/player.cpp @@ -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)