mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-04-25 07:53:39 +03:00
Drop defuser on disconnect
This commit is contained in:
parent
a2678a18ed
commit
7e02dea4a0
@ -3588,14 +3588,15 @@ void CHalfLifeMultiplay::ClientDisconnected(edict_t *pClient)
|
|||||||
{
|
{
|
||||||
pPlayer->DropPlayerItem("weapon_c4");
|
pPlayer->DropPlayerItem("weapon_c4");
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef REGAMEDLL_FIXES
|
|
||||||
// Why ? DropPlayerItem didn't handle item_thighpack
|
|
||||||
if (pPlayer->m_bHasDefuser)
|
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
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
if (pPlayer->m_bIsVIP)
|
if (pPlayer->m_bIsVIP)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user