diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-09-08 18:48:13 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-09-08 18:48:13 -0400 |
| commit | 22f3c6d96fcb560c13445d4a6135ca3f01d27197 (patch) | |
| tree | bbabd4bc9d6b96acbbc6248833c602f8f3249a04 /gamemode/itemsystem/foodstuffs/watermelon.lua | |
| parent | 13a87c24b79ff4db6e1917409ce8a11b1d72b6e6 (diff) | |
| download | artery-22f3c6d96fcb560c13445d4a6135ca3f01d27197.tar.gz artery-22f3c6d96fcb560c13445d4a6135ca3f01d27197.tar.bz2 artery-22f3c6d96fcb560c13445d4a6135ca3f01d27197.zip | |
Deleted a lot of code
Deleted code that was not being used, and some of the images too.
Diffstat (limited to 'gamemode/itemsystem/foodstuffs/watermelon.lua')
| -rw-r--r-- | gamemode/itemsystem/foodstuffs/watermelon.lua | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/gamemode/itemsystem/foodstuffs/watermelon.lua b/gamemode/itemsystem/foodstuffs/watermelon.lua deleted file mode 100644 index 00828dc..0000000 --- a/gamemode/itemsystem/foodstuffs/watermelon.lua +++ /dev/null @@ -1,62 +0,0 @@ --- --[[ --- An example item --- ]] --- do return end --- local item = {} --- local pac --- if SERVER then --- pac = nrequire("core/pac/sv_pac.lua") --- end --- --- --Required, a name, all item names must be unique --- item.Name = "Watermelon" --- --- --Optional, a tooltip to display when hovered over --- item.Tooltip = "Where do they grow these in an apocolyptic wasteland???" --- --- --Required Returns the data needed to rebuild this item, should only contain the minimum data nessessary since this gets sent over the network --- item.Serialize = function(self) --- print("Trying to serailize!") --- return "" --- end --- --- --Required, Rebuilds the item from data created in Serialize, if the item is different from the "main" copy of the item, it should retun a tabl.Copy(self), with the appropriate fields set. --- item.DeSerialize = function(self,string) --- print("Trying to deserialize!") --- return self --- end --- if SERVER then --- util.AddNetworkString("eat_watermelon") --- net.Receive("eat_watermelon", function(len,ply) --- local row,col,bp = ply:HasItem("Watermelon") --- if row and col and bp then --- ply:RemoveItemAt(bp,row,col) --- end --- end) --- end --- --Optional, when the player clicks this item, a menu will show up, if the menu item is clicked, the function is ran. This is all run client side, so if you want it to do something server side, you'll need to use the net library. Remember that items are in the shared domain, so you can define what it does in the same file! --- function item.GetOptions(self) --- local options = {} --- options["eat"] = function() --- net.Start("eat_watermelon") --- net.SendToServer() --- end --- return options --- end --- --- --Required, the shape of this item in a backpack. --- item.Shape = { --- {true,true,true}, --- {true,true,true}, --- {true,true,true}, --- } --- --- item.onDropped = function(self, ent) --- if SERVER then --- pac.ApplyPac(ent,"Watermelon") --- end --- end --- --- print("Hello from exampleitem.lua") --- --Don't forget to register the item! --- nrequire("item.lua").RegisterItem(item) |
