mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-14 07:38:00 +03:00
Restart trigger_multiple (#935)
This commit is contained in:
parent
75f142e18a
commit
d7f22ae3ec
@ -652,6 +652,7 @@ void EXT_FUNC CHalfLifeMultiplay::__API_HOOK(CleanUpMap)()
|
|||||||
UTIL_RestartOther("env_beam");
|
UTIL_RestartOther("env_beam");
|
||||||
UTIL_RestartOther("env_laser");
|
UTIL_RestartOther("env_laser");
|
||||||
UTIL_RestartOther("trigger_auto");
|
UTIL_RestartOther("trigger_auto");
|
||||||
|
UTIL_RestartOther("trigger_multiple");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Remove grenades and C4
|
// Remove grenades and C4
|
||||||
|
@ -996,6 +996,14 @@ void CTriggerMultiple::Spawn()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
|
void CTriggerMultiple::Restart()
|
||||||
|
{
|
||||||
|
pev->nextthink = -1;
|
||||||
|
Spawn();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
LINK_ENTITY_TO_CLASS(trigger_once, CTriggerOnce, CCSTriggerOnce)
|
LINK_ENTITY_TO_CLASS(trigger_once, CTriggerOnce, CCSTriggerOnce)
|
||||||
|
|
||||||
void CTriggerOnce::Spawn()
|
void CTriggerOnce::Spawn()
|
||||||
|
@ -283,6 +283,10 @@ class CTriggerMultiple: public CBaseTrigger
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual void Spawn();
|
virtual void Spawn();
|
||||||
|
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
|
virtual void Restart();
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
// Variable sized trigger. Triggers once, then removes itself. You must set the key "target" to the name of another object in the level that has a matching
|
// Variable sized trigger. Triggers once, then removes itself. You must set the key "target" to the name of another object in the level that has a matching
|
||||||
|
Loading…
x
Reference in New Issue
Block a user