CBaseEntity: Add inputs for 'Kill' and 'KillHierarchy'

This commit is contained in:
Marco Cawthorne 2021-09-01 21:39:21 +02:00
parent 1657ff3e29
commit f0957141cc
Signed by: eukara
GPG key ID: C196CD8BA993248A

View file

@ -490,6 +490,19 @@ void
CBaseEntity::Input(entity eAct, string strInput, string strData)
{
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":
UseOutput(eAct, m_strOnUser1);
break;