Replaced RemoveEdict with kill entity input command.

This commit is contained in:
Richard Helgeby
2012-07-01 21:12:43 +02:00
parent c025ac9479
commit 581825829a
6 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -105,7 +105,7 @@ RagdollRemove(ragdoll)
if (dissolve == VEFFECTS_RAGDOLL_DISSOLVE_EFFECTLESS)
{
// Remove entity from world.
RemoveEdict(ragdoll);
AcceptEntityInput(ragdoll, "Kill");
return;
}
@@ -135,7 +135,7 @@ RagdollRemove(ragdoll)
AcceptEntityInput(dissolver, "Dissolve");
// Remove the dissolver.
RemoveEdict(dissolver);
AcceptEntityInput(dissolver, "Kill");
}
/**
+1 -1
View File
@@ -317,7 +317,7 @@ VAmbienceApplyFog(bool:override = false)
if (fogindex != -1)
{
// Delete fog.
RemoveEdict(fogindex);
AcceptEntityInput(fogindex, "Kill");
}
}
+1 -1
View File
@@ -126,7 +126,7 @@ VEffectsCreateExplosion(const Float:origin[3], flags)
AcceptEntityInput(explosion, "Explode");
// Remove entity from world.
RemoveEdict(explosion);
AcceptEntityInput(explosion, "Kill");
}
/**