mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-02-05 18:20:33 +03:00
Improve CBaseTrigger::InitTrigger to allow use custom triggers without bsp model just origin,mins,maxs
This commit is contained in:
parent
426c975a88
commit
96e2121c45
@ -468,6 +468,9 @@ void CBaseTrigger::InitTrigger()
|
|||||||
pev->movetype = MOVETYPE_NONE;
|
pev->movetype = MOVETYPE_NONE;
|
||||||
|
|
||||||
// set size and link into world
|
// set size and link into world
|
||||||
|
if (FStringNull(pev->model))
|
||||||
|
UTIL_SetOrigin(pev, pev->origin); // link into the list
|
||||||
|
else
|
||||||
SET_MODEL(ENT(pev), STRING(pev->model));
|
SET_MODEL(ENT(pev), STRING(pev->model));
|
||||||
|
|
||||||
if (CVAR_GET_FLOAT("showtriggers") == 0)
|
if (CVAR_GET_FLOAT("showtriggers") == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user