diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-01 12:37:30 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-01 12:37:30 -0400 |
| commit | ebdcc3753246daf598cea3ec87eb4552380067c9 (patch) | |
| tree | e43080daf5fbda0b14de05a4aa2156ffce737bf3 /gamemode/itemsystem/items/gunchunks.lua | |
| parent | 95a85da4da42d758f09b883fa655e947b7dfbfdc (diff) | |
| download | gmstranded-ebdcc3753246daf598cea3ec87eb4552380067c9.tar.gz gmstranded-ebdcc3753246daf598cea3ec87eb4552380067c9.tar.bz2 gmstranded-ebdcc3753246daf598cea3ec87eb4552380067c9.zip | |
Added all gun chuncks as resources, fixed gunchunk structure, added gunpowder and urin bottle as resources
Diffstat (limited to 'gamemode/itemsystem/items/gunchunks.lua')
| -rw-r--r-- | gamemode/itemsystem/items/gunchunks.lua | 30 |
1 files changed, 30 insertions, 0 deletions
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 |
