mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 23:25: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;
|
||||
pev->body = 0;
|
||||
|
||||
GiveNamedItem("item_thighpack");
|
||||
|
||||
MESSAGE_BEGIN(MSG_ONE, gmsgStatusIcon, NULL, pev);
|
||||
@ -5794,6 +5793,14 @@ void CBasePlayer::__API_HOOK(GiveNamedItem)(const char *pszName)
|
||||
|
||||
DispatchSpawn(pent);
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user