mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-14 23:58:06 +03:00
Reset damage stats on Putin Server
This commit is contained in:
parent
c0f47949ec
commit
02a0516c2f
@ -225,7 +225,7 @@ EXT_FUNC bool CCSPlayer::RemovePlayerItemEx(const char* pszItemName, bool bRemov
|
|||||||
|
|
||||||
if (pItem == pPlayer->m_pActiveItem) {
|
if (pItem == pPlayer->m_pActiveItem) {
|
||||||
((CBasePlayerWeapon *)pItem)->RetireWeapon();
|
((CBasePlayerWeapon *)pItem)->RetireWeapon();
|
||||||
|
|
||||||
if (pItem->CanHolster() && pItem != pPlayer->m_pActiveItem && !(pPlayer->pev->weapons &(1 << pItem->m_iId))) {
|
if (pItem->CanHolster() && pItem != pPlayer->m_pActiveItem && !(pPlayer->pev->weapons &(1 << pItem->m_iId))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -561,6 +561,8 @@ void CCSPlayer::ResetAllStats()
|
|||||||
m_iNumKilledByUnanswered[i] = 0;
|
m_iNumKilledByUnanswered[i] = 0;
|
||||||
m_bPlayerDominated[i] = false;
|
m_bPlayerDominated[i] = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_DamageList.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCSPlayer::OnSpawn()
|
void CCSPlayer::OnSpawn()
|
||||||
@ -589,6 +591,7 @@ void CCSPlayer::OnKilled()
|
|||||||
void CCSPlayer::OnConnect()
|
void CCSPlayer::OnConnect()
|
||||||
{
|
{
|
||||||
ResetVars();
|
ResetVars();
|
||||||
|
ResetAllStats();
|
||||||
m_iUserID = GETPLAYERUSERID(BasePlayer()->edict());
|
m_iUserID = GETPLAYERUSERID(BasePlayer()->edict());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user