diff --git a/src/gs-entbase/server/func_door.cpp b/src/gs-entbase/server/func_door.cpp index 598bb109..dba49978 100644 --- a/src/gs-entbase/server/func_door.cpp +++ b/src/gs-entbase/server/func_door.cpp @@ -43,6 +43,7 @@ class func_door:CBaseTrigger vector m_vecPos2; vector m_vecDest; vector m_vecMoveDir; + string m_strFire; float m_flSpeed; float m_flLip; float m_iState; @@ -126,6 +127,15 @@ void func_door::Returned(void) touch = Touch; } + if (m_strFire) { + CBaseTrigger t; + t = (CBaseTrigger)find(world, CBaseTrigger::m_strTargetName, m_strFire); + + if (t) { + t.Trigger(); + } + } + m_iState = DOORSTATE_LOWERED; } @@ -354,6 +364,10 @@ void func_door::func_door(void) case "wait": m_flWait = stof(argv(i+1)); break; + case "netname": + m_strFire = argv(i+1); + netname = __NULL__; + break; default: break; }