2
0
mirror of https://github.com/s1lentq/ReGameDLL_CS.git synced 2025-05-02 09:59:30 +03:00

Drop defuser on disconnect

This commit is contained in:
Francisco Muñoz 2023-10-10 19:05:13 -03:00 committed by s1lentq
parent a2678a18ed
commit 7e02dea4a0

@ -3589,13 +3589,14 @@ void CHalfLifeMultiplay::ClientDisconnected(edict_t *pClient)
pPlayer->DropPlayerItem("weapon_c4");
}
#ifndef REGAMEDLL_FIXES
// Why ? DropPlayerItem didn't handle item_thighpack
if (pPlayer->m_bHasDefuser)
{
pPlayer->DropPlayerItem("item_thighpack");
}
#ifdef REGAMEDLL_FIXES
SpawnDefuser(pPlayer->pev->origin, nullptr);
#else
pPlayer->DropPlayerItem("item_thighpack"); // DropPlayerItem didn't handle item_thighpack
#endif
}
if (pPlayer->m_bIsVIP)
{