mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-16 00:28:15 +03:00
Fix touched armoury_entity
This commit is contained in:
parent
c3e632eacc
commit
611344ed05
@ -1053,17 +1053,14 @@ int CBaseEntity::__MAKE_VHOOK(DamageDecal)(int bitsDamageType)
|
|||||||
// will keep a pointer to it after this call.
|
// will keep a pointer to it after this call.
|
||||||
CBaseEntity *CBaseEntity::Create(char *szName, const Vector &vecOrigin, const Vector &vecAngles, edict_t *pentOwner)
|
CBaseEntity *CBaseEntity::Create(char *szName, const Vector &vecOrigin, const Vector &vecAngles, edict_t *pentOwner)
|
||||||
{
|
{
|
||||||
edict_t *pent;
|
edict_t *pent = CREATE_NAMED_ENTITY(MAKE_STRING(szName));
|
||||||
CBaseEntity *pEntity;
|
|
||||||
|
|
||||||
pent = CREATE_NAMED_ENTITY(MAKE_STRING(szName));
|
|
||||||
if (FNullEnt(pent))
|
if (FNullEnt(pent))
|
||||||
{
|
{
|
||||||
ALERT(at_console, "NULL Ent in Create!\n");
|
ALERT(at_console, "NULL Ent in Create!\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
pEntity = Instance(pent);
|
CBaseEntity *pEntity = Instance(pent);
|
||||||
|
|
||||||
pEntity->pev->owner = pentOwner;
|
pEntity->pev->owner = pentOwner;
|
||||||
pEntity->pev->origin = vecOrigin;
|
pEntity->pev->origin = vecOrigin;
|
||||||
|
@ -2201,6 +2201,8 @@ void CArmoury::__MAKE_VHOOK(Restart)()
|
|||||||
if (m_iCount < 1)
|
if (m_iCount < 1)
|
||||||
m_iCount = 1;
|
m_iCount = 1;
|
||||||
|
|
||||||
|
Draw();
|
||||||
|
|
||||||
#ifdef REGAMEDLL_ADD
|
#ifdef REGAMEDLL_ADD
|
||||||
// Restored origin from the cache
|
// Restored origin from the cache
|
||||||
UTIL_SetSize(pev, Vector(-16, -16, 0), Vector(16, 16, 16));
|
UTIL_SetSize(pev, Vector(-16, -16, 0), Vector(16, 16, 16));
|
||||||
@ -2208,8 +2210,6 @@ void CArmoury::__MAKE_VHOOK(Restart)()
|
|||||||
|
|
||||||
DROP_TO_FLOOR(edict());
|
DROP_TO_FLOOR(edict());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Draw();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CArmoury::__MAKE_VHOOK(Precache)()
|
void CArmoury::__MAKE_VHOOK(Precache)()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user