mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-27 22:18:03 +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,7 +468,10 @@ void CBaseTrigger::InitTrigger()
|
||||
pev->movetype = MOVETYPE_NONE;
|
||||
|
||||
// set size and link into world
|
||||
SET_MODEL(ENT(pev), STRING(pev->model));
|
||||
if (FStringNull(pev->model))
|
||||
UTIL_SetOrigin(pev, pev->origin); // link into the list
|
||||
else
|
||||
SET_MODEL(ENT(pev), STRING(pev->model));
|
||||
|
||||
if (CVAR_GET_FLOAT("showtriggers") == 0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user