From 0ce40afcb04587bbccd39fc64a4928607c285c51 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 7 Aug 2017 18:08:00 -0400 Subject: Various additions and removals for server --- gamemode/itemsystem/weapons/rustyaxe.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gamemode/itemsystem/weapons/rustyaxe.lua') diff --git a/gamemode/itemsystem/weapons/rustyaxe.lua b/gamemode/itemsystem/weapons/rustyaxe.lua index 359580f..930a736 100644 --- a/gamemode/itemsystem/weapons/rustyaxe.lua +++ b/gamemode/itemsystem/weapons/rustyaxe.lua @@ -1,6 +1,7 @@ --[[ An axe that you can swing around! ]] +do return end local pac,swi if SERVER then pac = nrequire("core/pac/sv_pac.lua") @@ -78,7 +79,7 @@ item.pacname = "rustyaxe" if SERVER then --Before makeSwingable is called, an item needs a .Name field and a .attacks field and a .pacname field - swi.makeSwingable(item) + --swi.makeSwingable(item) end --[[ local swingdata = { @@ -239,7 +240,7 @@ item.onClick = function(self,owner) end ]] ---[[ + --Optional, if we should do something special on equip(like draw the PAC for this weapon) item.onEquip = function(self,who) print("onEquip",who) @@ -261,7 +262,7 @@ item.onUnEquip = function(self,who) who:GetActiveWeapon():SetHoldType("normal") if SERVER then pac.RemovePac(who,"rustyaxe") end end -]] + item.onDropped = function(self, ent) if SERVER then pac.ApplyPac(ent,"rustyaxe") end end -- cgit v1.2.3-70-g09d2