SourceMod 1.10 and new OnEntitySpawned forward

This commit is contained in:
BotoX
2019-09-10 16:34:12 +02:00
parent 4bb399c18d
commit ad2f7cd71a
26 changed files with 802 additions and 975 deletions
+1 -11
View File
@@ -775,17 +775,7 @@ public void ZR_OnClientInfected(int client, int attacker, bool motherInfect, boo
//----------------------------------------------------------------------------------------------------
// Purpose:
//----------------------------------------------------------------------------------------------------
public void OnEntityCreated(int entity, const char[] classname)
{
if (StrContains(classname, "_projectile", false) != -1)
SDKHook(entity, SDKHook_SpawnPost, ProjectileSpawned);
}
//----------------------------------------------------------------------------------------------------
// Purpose:
//----------------------------------------------------------------------------------------------------
public void ProjectileSpawned(int Entity)
public void OnEntitySpawned(int Entity, const char[] sClassname)
{
int iOwner = GetEntPropEnt(Entity, Prop_Data, "m_hOwnerEntity");
if(!IsValidClient(iOwner))