From a3a9aa4ba567a42c04adfd790049de8b390ee2d5 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Wed, 30 Dec 2015 14:09:16 -0500 Subject: Allowed aidirector to spawn dodos --- gamemode/itemsystem/items/sword.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gamemode/itemsystem') diff --git a/gamemode/itemsystem/items/sword.lua b/gamemode/itemsystem/items/sword.lua index 47388d2..0da38c3 100644 --- a/gamemode/itemsystem/items/sword.lua +++ b/gamemode/itemsystem/items/sword.lua @@ -37,9 +37,9 @@ function ITEM:OnPrimary(pl,tr) if (IsValid(tr.Entity)) then local ent = tr.Entity local class = ent:GetClass() - print("Class:") - print(class) - + --print("Class:") + --print(class) + if (class == "player" or class:find("npc_") or class == "ws_pigeon" or class == "ws_prop") then ent:TakeDamage(self.Damage,pl) -- cgit v1.2.3-70-g09d2