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

View File

@ -786,7 +786,7 @@ InfectZombieToHuman(client, bool:respawn = false, bool:protect = false)
if (knife != -1)
{
RemovePlayerItem(client, knife);
RemoveEdict(knife);
AcceptEntityInput(knife, "Kill");
GivePlayerItem(client, "weapon_knife");
}

View File

@ -85,7 +85,7 @@ stock RoundStartKillObjectives()
if(StrContains(ROUNDSTART_OBJECTIVE_ENTITIES, classname) > -1)
{
// Entity is an objective, kill it.
RemoveEdict(x);
AcceptEntityInput(x, "Kill");
}
}
}

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");
}
/**

View File

@ -317,7 +317,7 @@ VAmbienceApplyFog(bool:override = false)
if (fogindex != -1)
{
// Delete fog.
RemoveEdict(fogindex);
AcceptEntityInput(fogindex, "Kill");
}
}

View File

@ -126,7 +126,7 @@ VEffectsCreateExplosion(const Float:origin[3], flags)
AcceptEntityInput(explosion, "Explode");
// Remove entity from world.
RemoveEdict(explosion);
AcceptEntityInput(explosion, "Kill");
}
/**

View File

@ -824,7 +824,7 @@ stock WeaponsRemoveClientGrenades(client, bool:weaponsdrop)
else
{
RemovePlayerItem(client, grenade);
RemoveEdict(grenade);
AcceptEntityInput(grenade, "Kill");
}
// Find next grenade.
@ -854,7 +854,7 @@ stock WeaponsRefreshClientWeapon(client, WeaponsSlot:slot)
// Refresh weapon.
RemovePlayerItem(client, weaponindex);
RemoveEdict(weaponindex);
AcceptEntityInput(weaponindex, "Kill");
GivePlayerItem(client, entityname);
}
@ -885,7 +885,7 @@ stock WeaponsRemoveAllClientWeapons(client, bool:weaponsdrop)
{
// Strip knife.
RemovePlayerItem(client, weapons[x]);
RemoveEdict(weapons[x]);
AcceptEntityInput(weapons[x], "Kill");
continue;
}
@ -898,7 +898,7 @@ stock WeaponsRemoveAllClientWeapons(client, bool:weaponsdrop)
{
// Strip weapon.
RemovePlayerItem(client, weapons[x]);
RemoveEdict(weapons[x]);
AcceptEntityInput(weapons[x], "Kill");
}
}