summaryrefslogtreecommitdiff
path: root/gamemode
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode')
-rw-r--r--gamemode/craftablesystem/gunlabs/gunchunks.lua4
-rw-r--r--gamemode/itemsystem/items/gunchunks.lua30
-rw-r--r--gamemode/itemsystem/items/gunpowder.lua10
-rw-r--r--gamemode/itemsystem/items/urinebottle.lua10
4 files changed, 52 insertions, 2 deletions
diff --git a/gamemode/craftablesystem/gunlabs/gunchunks.lua b/gamemode/craftablesystem/gunlabs/gunchunks.lua
index 5dada80..23eed1c 100644
--- a/gamemode/craftablesystem/gunlabs/gunchunks.lua
+++ b/gamemode/craftablesystem/gunlabs/gunchunks.lua
@@ -709,7 +709,7 @@ COMBI.Description = "Used in making gunpowder"
COMBI.Entity = "gms_gunchunks"
COMBI.Req = {}
-COMBI.Req["Urine_Bottles"] = 1
+COMBI.Req["Urine Bottles"] = 1
COMBI.Results = {}
COMBI.Results["Saltpetre"] = 1
@@ -724,7 +724,7 @@ COMBI.Description = "Used in making gunpowder"
COMBI.Entity = "gms_gunchunks"
COMBI.Req = {}
-COMBI.Req["Urine_Bottles"] = 10
+COMBI.Req["Urine Bottles"] = 10
COMBI.Results = {}
COMBI.Results["Saltpetre"] = 10
diff --git a/gamemode/itemsystem/items/gunchunks.lua b/gamemode/itemsystem/items/gunchunks.lua
new file mode 100644
index 0000000..8c2abf6
--- /dev/null
+++ b/gamemode/itemsystem/items/gunchunks.lua
@@ -0,0 +1,30 @@
+local materials = {
+ "Copper",
+ "Iron",
+ "Tech",
+ "Silver",
+ "Gold",
+ "Steel",
+ "Platinum",
+}
+
+local gunparts = {
+ {"Gunslide","test.png"},
+ {"Gunbarrel","test.png"},
+ {"Gungrip", "test.png"},
+ {"Gunmagazine", "test.png"},
+ {"Weapon Scope", "test.png"},
+ {"Reflex Scope", "test.png"},
+}
+
+for k,v in pairs(materials) do
+ for i,j in pairs(gunparts) do
+ local ITEM = {}
+ ITEM.Name = v .. " " .. j[1]
+ ITEM.Description = "A part of a weapon!"
+ ITEM.Icon = j[2]
+ ITEM.UniqueData = false
+ genericMakeDroppable(ITEM)
+ GMS.RegisterResource(ITEM)
+ end
+end
diff --git a/gamemode/itemsystem/items/gunpowder.lua b/gamemode/itemsystem/items/gunpowder.lua
new file mode 100644
index 0000000..63166a7
--- /dev/null
+++ b/gamemode/itemsystem/items/gunpowder.lua
@@ -0,0 +1,10 @@
+ITEM = {}
+
+ITEM.Name = "Gunpowder"
+ITEM.Description = "Something you can craft with!"
+ITEM.Icon = "test.png"
+ITEM.UniqueData = false
+
+genericMakeDroppable(ITEM)
+
+GMS.RegisterResource(ITEM)
diff --git a/gamemode/itemsystem/items/urinebottle.lua b/gamemode/itemsystem/items/urinebottle.lua
new file mode 100644
index 0000000..cdf1e76
--- /dev/null
+++ b/gamemode/itemsystem/items/urinebottle.lua
@@ -0,0 +1,10 @@
+ITEM = {}
+
+ITEM.Name = "Urine Bottles"
+ITEM.Description = "Something you can craft with!"
+ITEM.Icon = "test.png"
+ITEM.UniqueData = false
+
+genericMakeDroppable(ITEM)
+
+GMS.RegisterResource(ITEM)