mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-28 15:45:41 +03:00
Changes In GiveNamedItem: force remove the item if not touches.
This commit is contained in:
parent
d9c6805e28
commit
bc8dbf056c
@ -2139,7 +2139,6 @@ void CBasePlayer::__API_VHOOK(Killed)(entvars_t *pevAttacker, int iGib)
|
|||||||
{
|
{
|
||||||
m_bHasDefuser = false;
|
m_bHasDefuser = false;
|
||||||
pev->body = 0;
|
pev->body = 0;
|
||||||
|
|
||||||
GiveNamedItem("item_thighpack");
|
GiveNamedItem("item_thighpack");
|
||||||
|
|
||||||
MESSAGE_BEGIN(MSG_ONE, gmsgStatusIcon, NULL, pev);
|
MESSAGE_BEGIN(MSG_ONE, gmsgStatusIcon, NULL, pev);
|
||||||
@ -5794,6 +5793,14 @@ void CBasePlayer::__API_HOOK(GiveNamedItem)(const char *pszName)
|
|||||||
|
|
||||||
DispatchSpawn(pent);
|
DispatchSpawn(pent);
|
||||||
DispatchTouch(pent, ENT(pev));
|
DispatchTouch(pent, ENT(pev));
|
||||||
|
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
|
// not allow the item to fall to the ground.
|
||||||
|
if (FNullEnt(pent->v.owner))
|
||||||
|
{
|
||||||
|
pent->v.flags |= FL_KILLME;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
CBaseEntity *FindEntityForward(CBaseEntity *pMe)
|
CBaseEntity *FindEntityForward(CBaseEntity *pMe)
|
||||||
|
Loading…
Reference in New Issue
Block a user