Replaced RemoveEdict with kill entity input command.
This commit is contained in:
		| @@ -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"); | ||||
|     } | ||||
|      | ||||
|   | ||||
| @@ -85,7 +85,7 @@ stock RoundStartKillObjectives() | ||||
|         if(StrContains(ROUNDSTART_OBJECTIVE_ENTITIES, classname) > -1) | ||||
|         { | ||||
|             // Entity is an objective, kill it. | ||||
|             RemoveEdict(x); | ||||
|             AcceptEntityInput(x, "Kill"); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -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"); | ||||
| } | ||||
|  | ||||
| /** | ||||
|   | ||||
| @@ -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"); | ||||
|         } | ||||
|     } | ||||
|      | ||||
|   | ||||
		Reference in New Issue
	
	Block a user