mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 07:05:38 +03:00
ignore kill assist when victim killed himself while changing team
This commit is contained in:
parent
a546997723
commit
f711276d8a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user