CBaseEntity: Add inputs for 'Kill' and 'KillHierarchy'
This commit is contained in:
parent
1657ff3e29
commit
f0957141cc
1 changed files with 13 additions and 0 deletions
|
@ -490,6 +490,19 @@ void
|
||||||
CBaseEntity::Input(entity eAct, string strInput, string strData)
|
CBaseEntity::Input(entity eAct, string strInput, string strData)
|
||||||
{
|
{
|
||||||
switch (strInput) {
|
switch (strInput) {
|
||||||
|
case "Kill":
|
||||||
|
think = Util_Destroy;
|
||||||
|
nextthink = time;
|
||||||
|
break;
|
||||||
|
case "KillHierarchy":
|
||||||
|
/* this works because ents are basically just entnums */
|
||||||
|
for (entity e = world; (e=findfloat(e, ::owner, this));) {
|
||||||
|
e.think = Util_Destroy;
|
||||||
|
e.nextthink = time;
|
||||||
|
}
|
||||||
|
think = Util_Destroy;
|
||||||
|
nextthink = time;
|
||||||
|
break;
|
||||||
case "FireUser1":
|
case "FireUser1":
|
||||||
UseOutput(eAct, m_strOnUser1);
|
UseOutput(eAct, m_strOnUser1);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue