Skip to content

Commit

Permalink
ignore kill assist when victim killed himself while changing team
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Apr 4, 2024
1 parent a546997 commit f711276
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions regamedll/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f711276

Please sign in to comment.