diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-07 18:08:00 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-07 18:08:00 -0400 |
| commit | 0ce40afcb04587bbccd39fc64a4928607c285c51 (patch) | |
| tree | 8a82b316b7300864aca612c6b0c059e14c15bd37 /gamemode/itemsystem/weapons/rustyaxe.lua | |
| parent | 076b4245a757dc0ca9d1c9d234c32df546b1239e (diff) | |
| download | artery-0ce40afcb04587bbccd39fc64a4928607c285c51.tar.gz artery-0ce40afcb04587bbccd39fc64a4928607c285c51.tar.bz2 artery-0ce40afcb04587bbccd39fc64a4928607c285c51.zip | |
Various additions and removals for server
Diffstat (limited to 'gamemode/itemsystem/weapons/rustyaxe.lua')
| -rw-r--r-- | gamemode/itemsystem/weapons/rustyaxe.lua | 7 |
1 files changed, 4 insertions, 3 deletions
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 |
