mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 23:25:41 +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
|
// have the player kill himself
|
||||||
pev->health = 0.0f;
|
pev->health = 0.0f;
|
||||||
|
|
||||||
|
#ifdef REGAMEDLL_API
|
||||||
|
CSPlayer()->ResetAllStats(); // reset damage stats on killed himself or team change
|
||||||
|
#endif
|
||||||
|
|
||||||
Killed(pev, GIB_NEVER);
|
Killed(pev, GIB_NEVER);
|
||||||
|
|
||||||
if (CSGameRules()->m_pVIP == this)
|
if (CSGameRules()->m_pVIP == this)
|
||||||
|
Loading…
Reference in New Issue
Block a user