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) if (knife != -1)
{ {
RemovePlayerItem(client, knife); RemovePlayerItem(client, knife);
RemoveEdict(knife); AcceptEntityInput(knife, "Kill");
GivePlayerItem(client, "weapon_knife"); GivePlayerItem(client, "weapon_knife");
} }

View File

@ -85,7 +85,7 @@ stock RoundStartKillObjectives()
if(StrContains(ROUNDSTART_OBJECTIVE_ENTITIES, classname) > -1) if(StrContains(ROUNDSTART_OBJECTIVE_ENTITIES, classname) > -1)
{ {
// Entity is an objective, kill it. // 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) if (dissolve == VEFFECTS_RAGDOLL_DISSOLVE_EFFECTLESS)
{ {
// Remove entity from world. // Remove entity from world.
RemoveEdict(ragdoll); AcceptEntityInput(ragdoll, "Kill");
return; return;
} }
@ -135,7 +135,7 @@ RagdollRemove(ragdoll)
AcceptEntityInput(dissolver, "Dissolve"); AcceptEntityInput(dissolver, "Dissolve");
// Remove the dissolver. // Remove the dissolver.
RemoveEdict(dissolver); AcceptEntityInput(dissolver, "Kill");
} }
/** /**

View File

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

View File

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

View File

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