Replaced RemoveEdict with kill entity input command.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -317,7 +317,7 @@ VAmbienceApplyFog(bool:override = false)
|
||||
if (fogindex != -1)
|
||||
{
|
||||
// Delete fog.
|
||||
RemoveEdict(fogindex);
|
||||
AcceptEntityInput(fogindex, "Kill");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ VEffectsCreateExplosion(const Float:origin[3], flags)
|
||||
AcceptEntityInput(explosion, "Explode");
|
||||
|
||||
// Remove entity from world.
|
||||
RemoveEdict(explosion);
|
||||
AcceptEntityInput(explosion, "Kill");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user