diff options
Diffstat (limited to 'gamemode/itemsystem/weapons')
| -rw-r--r-- | gamemode/itemsystem/weapons/knuckledclaw.lua | 1 | ||||
| -rw-r--r-- | gamemode/itemsystem/weapons/rustyaxe.lua | 7 | ||||
| -rw-r--r-- | gamemode/itemsystem/weapons/scraphammer.lua | 1 | ||||
| -rw-r--r-- | gamemode/itemsystem/weapons/seratedknife.lua | 1 |
4 files changed, 7 insertions, 3 deletions
diff --git a/gamemode/itemsystem/weapons/knuckledclaw.lua b/gamemode/itemsystem/weapons/knuckledclaw.lua index 0665a98..c738f2e 100644 --- a/gamemode/itemsystem/weapons/knuckledclaw.lua +++ b/gamemode/itemsystem/weapons/knuckledclaw.lua @@ -1,6 +1,7 @@ --[[ An example item ]] +do return end local item = {} --Required, a name, all item names must be unique 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 diff --git a/gamemode/itemsystem/weapons/scraphammer.lua b/gamemode/itemsystem/weapons/scraphammer.lua index 762dc5f..2534907 100644 --- a/gamemode/itemsystem/weapons/scraphammer.lua +++ b/gamemode/itemsystem/weapons/scraphammer.lua @@ -1,6 +1,7 @@ --[[ An example item ]] +do return end local com = nrequire("core/inventory/common/weapons.lua") local itm = nrequire("core/inventory/common/items.lua") local reg = nrequire("core/inventory/item.lua") diff --git a/gamemode/itemsystem/weapons/seratedknife.lua b/gamemode/itemsystem/weapons/seratedknife.lua index ee116aa..738beb6 100644 --- a/gamemode/itemsystem/weapons/seratedknife.lua +++ b/gamemode/itemsystem/weapons/seratedknife.lua @@ -1,6 +1,7 @@ --[[ An example item ]] +do return end local item = {} --Required, a name, all item names must be unique |
