ItemSpawn: Oops

This commit is contained in:
zaCade 2018-08-12 16:45:20 +02:00
parent 652387ca9e
commit 27f2eb92a5

View File

@ -253,17 +253,17 @@ public void OnRoundStart(Event hEvent, const char[] sEvent, bool bDontBroadcast)
// filter_damage_type zombie items.
int iZombieFilter3 = CreateEntityByName("filter_damage_type");
DispatchKeyFormat(iZombieFilter3, "targetname", "item_filter_zombie_items");
DispatchKeyFormat(iZombieFilter3, "Negated", "0");
DispatchKeyFormat(iZombieFilter3, "damagetype", "128");
DispatchKeyFormat(iZombieFilter3, "targetname", "item_filter_zombie_items");
DispatchKeyFormat(iZombieFilter3, "Negated", "0");
DispatchKeyFormat(iZombieFilter3, "damagetype", "128");
SpawnAndActivate(iZombieFilter3);
// filter_multi zombies.
int iHumanFilter4 = CreateEntityByName("filter_multi");
DispatchKeyFormat(iHumanFilter4, "targetname", "item_filter_zombies");
DispatchKeyFormat(iHumanFilter4, "Negated", "0");
DispatchKeyFormat(iHumanFilter4, "filtertype", "1");
DispatchKeyFormat(iHumanFilter4, "filter01", "item_filter_zombie");
DispatchKeyFormat(iHumanFilter4, "filter02", "item_filter_zombie_items");
SpawnAndActivate(iHumanFilter4);
int iZombieFilter4 = CreateEntityByName("filter_multi");
DispatchKeyFormat(iZombieFilter4, "targetname", "item_filter_zombies");
DispatchKeyFormat(iZombieFilter4, "Negated", "0");
DispatchKeyFormat(iZombieFilter4, "filtertype", "1");
DispatchKeyFormat(iZombieFilter4, "filter01", "item_filter_zombie");
DispatchKeyFormat(iZombieFilter4, "filter02", "item_filter_zombie_items");
SpawnAndActivate(iZombieFilter4);
}