Garry's Mod

Garry's Mod

Not enough ratings
How to add my Zombie-Survival weapons into the Arsenal Crate
By Frost
This guide has been created to teach people how to add my weapons into the arsenal crate. This guide IS NOT meant for the newer Zombie-Survival gamemode (2018) version, this guide IS MEANT for the older versions of Zombie-Survival (2016) version or older. If you try to use this guide for adding my weapons into the (2018) version of Zombie-Survival, your gamemode might break, because those weapons were not coded on the new (2018) version of Zombie-Survival. Make sure to follow every step carefully in order to add any of my weapons into the arsenal crate. You may also want to view the steps that refer to the weapon that you have subbed to on the workshop.
   
Award
Favorite
Favorited
Unfavorite
Let's start
Alright. If GMod is already open, close it, turn on do not disturb on Steam and probably Discord as well, and let's start.

You will need the GW Tool and Sublime text 3 or any other text file that can read Lua files don't use Notepad it will be a mess, just use Sublime text 3, it's free and easy to use. Once you've done all the steps if you don't want it, you can just uninstall it.

You can download the GW tool and Sublime text 3 using Google or Firefox or whichever web browser you use. I like to use Sublime text 3.

Or you can just click here[drive.google.com]to download the GW Tool. I've already tried this link and it works, if you don't trust it then you can just use your web browser to find the one that you trust.

You can also click here[www.sublimetext.com]to download Sublime text 3. Offical page.

Note: This guide WILL NOT WORK for the (2018) version of Zombie-Survival. If you have subscribed to the Zombie-Survival addon on the workshop, then you will be getting the newer version of Zombie-Survival, and this guide is not meant for the (2018) version.

You can download the (2016) version here[github.com] from Jetboom's Github website. Click on Clone or download.

You can also download the (2014) version of Zombie-Survival from Github here[github.com].

If you're looking for an addon that adds bots to Zombie-Survival, then I recommend you use D3Bot.

Here is the D3Bot addon that is used for Jetboom's Zombie-Survival gamemode, click here[github.com] It should work on the (2014) version of Zombie-Survival and the (2016) version of Zombie-Survival as well.

If you have any questions put them down in the comments below, I will do my best to answer them.
Extracting any of my weapons
Once you've downloaded the GW Tool and Sublime text 3, the Addon that you've Subscribed to should be located in your Addons folder (BY DEFAULT) that is inside your Garry's Mod game folder, it might be located here:

C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\addons

Q: What if the Addon that I've Subscribed to isn't in my Addons Folder?

A: It might be located here:

\Steam\steamapps\workshop\content\4000\[AddonID]

The [AddonID] is the ID Number of the Subscribed Addon that you're looking for. Each Workshop Item has an ID, here are all the IDs for all my Zombie-Survival Addons:


Laser Boom Stick [Zombie-Survival] ID: 1822076698

'Life-Line' Tactical Medical Pistol [Zombie-Survival] ID: 1822249996

'Hammer-Down' XM1014 Automatic Shotgun [Zombie-Survival] ID:1822250500

'AR2' Overwatch's Standard Issue Upgraded Rifle [Zombie-Survival] ID:1822251498

Power Battery [Zombie-Survival] ID: 1822251792

Combine Barricade [Zombie-Survival] ID: 2286999929

Look for my addon that you've subbed to, and extract it using the GW Tool.

How to extract it: You simply just open the GW Tool, drag and drop the file into the GW Tool, and the GW Tool will do the work. Once it finishes extracting you should get the folder containing everything about the addon that you've subbed to, in this case one of my weapons.

This also works for extracting any of my weapons as well as any addon you have subbed to on the workshop.
Extracting and adding the 'AR2' into the Arsenal Crate
---Extracting and moving files---

Alright. So once you've subbed to the 'AR2' weapon on the workshop, go to the addons folder located inside your Garry's Mod folder, it may be located here:

C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\addons

Once you've located the AR2 addon that you've subbed to, extract it using the GW Tool. To learn how to extract an addon/weapon, take a step back and read the 2nd step before this one.

Now that you have extracted the addon, open it up and there should be a text file inside the same folder that you have just opened, the text file is useless, delete it and open up the lua folder.

The lua folder should have 1 folder in it, the entities folder, open it up and open the folder named weapons. It should have 1 weapon inside, which is called weapon_zs_ar2.lua if it doesn't say .lua that's fine.

Copy or cut weapon_zs_ar2.lua and go to your Zombie-Survival gamemode folder.

Note: This weapon will not work on the (2018) version of Zombie-Survival, only older versions will work for this weapon.

Once you've located your gamemode folder, it should be called Zombie Survival, or something like that, open it. It should have multiple folders, open up the folder named gamemodes. Then, there should be another folder inside of it called zombiesurvival open it and open the entities folder. Inside the entities folder there should be 3 more folders, just open the folder named weapons and paste the weapon_zs_ar2.lua there. The one that you've copied earlier.

Once you've pasted weapon_zs_ar2.lua step out of that folder and open the effects folder and keep that effects folder open.

Now go back to the addon that you've extracted, in this case it's the ar2, locate the effects folder inside the lua folder and open it. It should have only 1 file inside of it called hit_ar2.lua, copy or cut the file as you wish into the gamemode's effects folder, the one that you kept open earlier.

Um, you did keep it open, right? Once you've done doing that, exit the effects folder and exit the entities folder and open the folder named gamemode, it should be next to the entities folder. Once you've done that, you're pretty much done moving files, now let's add it into the Arsenal Crate.

---Adding the AR2 into the Arsenal Crate---

The process of adding the AR2 into the Arsenal crate is very simple do not worry. Here, copy this:

GM:AddPointShopItem("ar2", "'AR2' Overwatch's Standard Issue Upgraded Rifle", nil, ITEMCAT_GUNS, 235, "weapon_zs_ar2")

What you've just copied is the line of code used for adding the weapon into the arsenal crate.

Now remember that gamemode folder that I told you open up earlier? Look for a file named sh_options.lua. Open up Sublime text 3 and drag and drop sh_options.lua into Sublime text 3 so that Sublime opens sh_options, you should see lots of coding, scroll down and keep on scrolling down until you see something like this:
------------
-- Points --
------------

GM:AddPointShopItem("deagle", "'Zombie Drill' Desert Eagle", nil, ITEMCAT_GUNS, 30, "weapon_zs_deagle")
GM:AddPointShopItem("glock3", "'Crossfire' Glock 3", nil, ITEMCAT_GUNS, 30, "weapon_zs_glock3")
GM:AddPointShopItem("magnum", "'Ricochet' Magnum", nil, ITEMCAT_GUNS, 35, "weapon_zs_magnum")
GM:AddPointShopItem("eraser", "'Eraser' Tactical Pistol", nil, ITEMCAT_GUNS, 35, "weapon_zs_eraser")

GM:AddPointShopItem("uzi", "'Sprayer' Uzi 9mm", nil, ITEMCAT_GUNS, 70, "weapon_zs_uzi")

What you are seeing is the location of the weapons inside the arsenal crate. Anything below

------------
-- Points --
------------

Will be located inside the arsenal crate. Now, take your time, look for the place that you want the ar2 to be in. Example:
GM:AddPointShopItem("sweeper", "'Sweeper' Shotgun", nil, ITEMCAT_GUNS, 200, "weapon_zs_sweepershotgun")
GM:AddPointShopItem("boomstick", "Boom Stick", nil, ITEMCAT_GUNS, 200, "weapon_zs_boomstick")
GM:AddPointShopItem("slugrifle", "'Tiny' Slug Rifle", nil, ITEMCAT_GUNS, 200, "weapon_zs_slugrifle")
GM:AddPointShopItem("pulserifle", "'Adonis' Pulse Rifle", nil, ITEMCAT_GUNS, 225, "weapon_zs_pulserifle")
GM:AddPointShopItem("ar2", "'AR2' Overwatch's Standard Issue Upgraded Rifle", nil, ITEMCAT_GUNS, 235, "weapon_zs_ar2")

You can see that I have put the ar2 under the 'Adonis' Pulse Rifle like so with the price of 235 points.

You can place a line of code below another line of code by selecting the end of the line of code and pressing your ENTER key. It will open a small gap/area for you to paste your line of code, just make sure that you DO NOT change anything about the other lines of codes other than the price of the item.

You can simply change the price of the gun that you want as you wish, by changing the number in front of , ITEMCAT_GUNS. So that means you can set the price of my weapon to like, 5 points, or 175 points, or 200 points. Or just 0 points. And that also means that you can change the price of any other weapon that you want.

Before you exit out of sh_options make sure that you save!! If you don't save it will not show up in the arsenal crate!!

---That wasn't so bad---

We're done here. You have successfully added the 'AR2' Overwatch's Standard Issue Upgraded Rifle into the arsenal crate, with the price of your choice! You can go into single player to test it out for yourself, or you can play around with bots on navmeshed maps.

I hope you have an awesome day and thank you for subscribing to my weapon on the workshop. Have fun playing with it.
Extracting and adding the Laser Boom Stick into the Arsenal Crate
---Extracting and moving files---

Alright, close GMod if it's already open and let's start.

Go to your addons folder and extract the Laser Boom Stick addon using the GW Tool.

Open the extracted folder and delete the text file it's useless, then open the lua folder then open the entities folder then open the weapons folder and copy or cut the only file located inside the weapons folder.

Copy/Cut it into your gamemode's weapons folder, the weapons folder is located inside the entities folder inside your gamemode like so:

gamemodes\zombiesurvival\entites\weapons

Paste the Laser Boom Stick inside the weapons folder and go back to the Laser Boom Stick folder.

Open the lua folder and then open the entities folder then open the effects folder.

The effects folder should contain 2 files inside of it, a tracer file, and a hit effect file. Copy or Cut both of them into your gamemode's effects folder, it may be located here:

gamemodes\zombiesurvival\entities\effects

Paste both of the files in there and now you're done moving files.

---Adding the Laser Boom Stick into the Arsenal---

Let's add it into the Arsenal crate. Go to gamemodes\zombiesurvival\gamemode and read sh_options using Sublime text 3.

Once you've opened sh_options using Sublime text 3/notepad++ copy this line of code:

GM:AddPointShopItem("lasrbomstck", "Laser Boom Stick", nil, ITEMCAT_GUNS, 250, "weapon_zs_boomstick2")

Once you've copied it scroll down until you see something like this:
------------
-- Points --
------------

GM:AddPointShopItem("deagle", "'Zombie Drill' Desert Eagle", nil, ITEMCAT_GUNS, 30, "weapon_zs_deagle")
GM:AddPointShopItem("glock3", "'Crossfire' Glock 3", nil, ITEMCAT_GUNS, 30, "weapon_zs_glock3")
GM:AddPointShopItem("magnum", "'Ricochet' Magnum", nil, ITEMCAT_GUNS, 35, "weapon_zs_magnum")
GM:AddPointShopItem("eraser", "'Eraser' Tactical Pistol", nil, ITEMCAT_GUNS, 35, "weapon_zs_eraser")

GM:AddPointShopItem("uzi", "'Sprayer' Uzi 9mm", nil, ITEMCAT_GUNS, 70, "weapon_zs_uzi")

What you are seeing is the location of everything inside the arsenal crate, anything below
------------
-- Points --
------------
will be located inside the arsenal crate. Take your time, look for a place that you want the Laser Boom Stick to be in. Once you've found the location place that line of code there and make sure to save!

Example:
GM:AddPointShopItem("sweeper", "'Sweeper' Shotgun", nil, ITEMCAT_GUNS, 200, "weapon_zs_sweepershotgun")
GM:AddPointShopItem("boomstick", "Boom Stick", nil, ITEMCAT_GUNS, 200, "weapon_zs_boomstick")
GM:AddPointShopItem("lasrbomstck", "Laser Boom Stick", nil, ITEMCAT_GUNS, 250, "weapon_zs_boomstick2")
GM:AddPointShopItem("slugrifle", "'Tiny' Slug Rifle", nil, ITEMCAT_GUNS, 200, "weapon_zs_slugrifle")
GM:AddPointShopItem("pulserifle", "'Adonis' Pulse Rifle", nil, ITEMCAT_GUNS, 225, "weapon_zs_pulserifle")

You can place a line of code below another line of code by selecting the end of the line of code and pressing your ENTER key. Once you've pressed your enter key it will open a small gap/area for you to paste your line of code, just make sure that you DO NOT change anything about the other lines of codes other than the price of the item.

You can also change the price of any weapon, simply change the numbers in front of ITEMCAT_GUNS. Make sure to save after you're done.

---We're done here---

We're done moving files, adding it to the arsenal crate, now you can play with it in single player with bots. Have fun!
Extracting and adding the 'Hammer-Down' into the Arsenal Crate
---Extracting and moving files---

Go to your addons folder and extract it using GW Tool, once you've extracted it you should get a text file and a folder named lua, delete the text file and open the folder named lua.

Once you've open the lua folder you should find another folder in there, open it and open the weapons folder. You should get 1 file in there named weapon_zs_xm, copy or cut it and go to your gamemode's folder.

Once you've opened your gamemode's folder there should be another folder in there named gamemodes open it and open zombiesurvival, it should have an entities folder in there, open it and open the folder named weapons, paste the file there.

Now step out of the weapons folder and open the effects folder, keep it open and go back to the lua folder you've extracted.
Open the entities folder and locate the effects folder, once you've located it open it and copy or cut both of the effects in there, and go back to the effects folder you've kept open earlier, paste them there.

We're done moving files, let's go to the gamemode folder inside zombiesurvival, exit the effects folder, and then exit the entities folder and open the gamemode folder, it should be next to entities folder I believe, read the file named sh_options with Sublime text 3.

Once you've opened it copy this:
GM:AddPointShopItem("xm", "'Hammer-Down' XM1014 Automatic shotgun", nil, ITEMCAT_GUNS, 300, "weapon_zs_xm")

What you've just copied is the xm's line of code, used to add it into the arsenal crate

---Adding the 'Hammer-Down' into the arsenal crate---

Now, scroll down until you see something like this:

------------
-- Points --
------------

GM:AddPointShopItem("deagle", "'Zombie Drill' Desert Eagle", nil, ITEMCAT_GUNS, 30, "weapon_zs_deagle")
GM:AddPointShopItem("glock3", "'Crossfire' Glock 3", nil, ITEMCAT_GUNS, 30, "weapon_zs_glock3")
GM:AddPointShopItem("magnum", "'Ricochet' Magnum", nil, ITEMCAT_GUNS, 35, "weapon_zs_magnum")
GM:AddPointShopItem("eraser", "'Eraser' Tactical Pistol", nil, ITEMCAT_GUNS, 35, "weapon_zs_eraser")

GM:AddPointShopItem("uzi", "'Sprayer' Uzi 9mm", nil, ITEMCAT_GUNS, 70, "weapon_zs_uzi")

What you are seeing is the location of the weapons inside the arsenal crate. Anything below

------------
-- Points --
------------

Will be located inside the arsenal crate. Now, take your time, look for a place you want the xm to be located in. Here's an example if you don't know where to put it:
GM:AddPointShopItem("sweeper", "'Sweeper' Shotgun", nil, ITEMCAT_GUNS, 200, "weapon_zs_sweepershotgun")
GM:AddPointShopItem("xm", "'Hammer-Down' XM1014 Automatic shotgun", nil, ITEMCAT_GUNS, 260, "weapon_zs_xm")
GM:AddPointShopItem("boomstick", "Boom Stick", nil, ITEMCAT_GUNS, 200, "weapon_zs_boomstick")
GM:AddPointShopItem("slugrifle", "'Tiny' Slug Rifle", nil, ITEMCAT_GUNS, 200, "weapon_zs_slugrifle")
GM:AddPointShopItem("pulserifle", "'Adonis' Pulse Rifle", nil, ITEMCAT_GUNS, 225, "weapon_zs_pulserifle")

You can place a line of code below another line of code by selecting the end of the line of code and pressing your ENTER key. Once you've pressed your enter key it will open a small gap/area for you to paste your line of code, just make sure that you DO NOT change anything about the other lines of codes other than the price of the item.

You can also change the price of any weapon, simply change the numbers in front of ITEMCAT_GUNS. Make sure to save after you're done.

---Done---

We're done here, the shotgun has been added into the arsenal crate, so uh, what now? You can play around with it in single player with bots, and if you have a good enough internet, you can invite a few friends to play with you. They don't have to do this whole process, they just need to have the same addons as you do and they need to allow custom content, and they can play with you and with the same guns that you've placed in the arsenal crate.
Extracting and adding the 'Life-Line' into the Arsenal Crate
---Extracting and moving files---

Alright. If GMod's already open, close it, and let us begin.

Go to your addons folder and extract the 'Life-Line' addon. Open it up and delete the text file and open the lua folder. Open up the entities folder and you should see 3 more folders, we're gonna start with the weapons folder, open it up.

Copy or Cut the weapon_zs_medseven and paste it into your weapons folder located inside the Zombie-Survival gamemode, it might be located here:

gamemodes\zombiesurvival\entities\weapons

Once you've pasted it inside the weapons folder, exit out of the folder and open the effects folder located inside the Zombie-Survival gamemode, it might be located here:

gamemodes\zombiesurvival\entities\effects

Once you've opened the effects folder keep it open and go back to the addon that you have extracted, in this case it's the 'Life-Line' addon, and open up the effects folder located inside the lua folder. Copy or Cut the hit_medicaldart.lua file and paste it into the same folder that you've kept open earlier. You did keep it open? Right? Once you've pasted the effect exit out of the effects folder and open the entities folder next to it, and keep that folder open.

Now go back to the addon that you've subbed to and open up the lua folder, then open the entities folder, inside the entities folder there should be another folder called entities, open it. There should be 1 folder in there, and 2 files. Copy or cut that 1 folder and 2 files into the folder that you've kept open earlier, which is the entities folder located inside the gamemode's folder, I'm sure you kept this folder open this time. Now that the entities are in the right place, and the effect is in the right place and the weapon is in the right place let's add the 'Life-Line' into the arsenal.

---Adding the 'Life-Line' into the arsenal crate---

Alright. Go to this location:

gamemodes/zombiesurival/gamemode

Look for a file named sh_options.lua and read it with Sublime text 3.

Now that you've opened it copy this:

GM:AddPointShopItem("lifeline", "'Life-Line' Tactical Medical Pistol", nil, ITEMCAT_TOOLS, 50, "weapon_zs_medseven")

What you've copied is the line of code used for adding the 'Life-Line' into the arsenal. Now scroll down until you see something like this:

GM:AddPointShopItem("crphmr", "Carpenter's Hammer", nil, ITEMCAT_TOOLS, 50, "weapon_zs_hammer").NoClassicMode = true
GM:AddPointShopItem("wrench", "Mechanic's Wrench", nil, ITEMCAT_TOOLS, 25, "weapon_zs_wrench").NoClassicMode = true
GM:AddPointShopItem("arsenalcrate", "Arsenal Crate", nil, ITEMCAT_TOOLS, 50, "weapon_zs_arsenalcrate")
GM:AddPointShopItem("resupplybox", "Resupply Box", nil, ITEMCAT_TOOLS, 200, "weapon_zs_resupplybox")
GM:AddPointShopItem("infturret", "Infrared Gun Turret", nil, ITEMCAT_TOOLS, 50, "weapon_zs_gunturret").NoClassicMode = true

What you are seeing is the location of the tools located inside the arsenal crate, anything that has , ITEMCAT_TOOLS will be located inside the tools section/tab. Now go ahead, take your time, look for a place that you want the 'Life-Line' to be in, if you don't know where to put it, then here's an example:

GM:AddPointShopItem("crphmr", "Carpenter's Hammer", nil, ITEMCAT_TOOLS, 50, "weapon_zs_hammer").NoClassicMode = true
GM:AddPointShopItem("wrench", "Mechanic's Wrench", nil, ITEMCAT_TOOLS, 25, "weapon_zs_wrench").NoClassicMode = true
GM:AddPointShopItem("arsenalcrate", "Arsenal Crate", nil, ITEMCAT_TOOLS, 50, "weapon_zs_arsenalcrate")
GM:AddPointShopItem("resupplybox", "Resupply Box", nil, ITEMCAT_TOOLS, 200, "weapon_zs_resupplybox")
GM:AddPointShopItem("infturret", "Infrared Gun Turret", nil, ITEMCAT_TOOLS, 50, "weapon_zs_gunturret").NoClassicMode = true
GM:AddPointShopItem("lifeline", "'Life-Line' Tactical Medical Pistol", nil, ITEMCAT_TOOLS, 50, "weapon_zs_medseven")

You can place a line of code below another line of code by selecting the end of the line of code and pressing your ENTER key. Once you've pressed your enter key it will open a small gap/area for you to paste your line of code, just make sure that you DO NOT change anything about the other lines of codes other than the price of the item.

You can also change the price of any tool, simply change the numbers in front of ITEMCAT_TOOLS. Make sure to save after you're done.

---We've done it---

We've added the 'Life-Line' into the arsenal crate, it was a long one because of the entities as well, but here we are, it has been added.

You can test it out in single player with bots, I recommend you play on nav meshed maps and with D3Bot, you can also invite a few Friends over to play with you, they don't have to do the same process as you have just did, they just need to make sure that they allow custom content, and you're good to go. Have fun! And thank you for subscribing to my addon.
Extracting and adding the Power Battery into the Arsenal Crate
---Extracting and moving files---

Alright, once you've subbed to the Power Battery on the workshop, go to your addons folder located inside your Garry's Mod folder and open it. Once you've located it and opened it, look for the Power Battery that you've subbed to and extract it. You should get a text file and a lua folder, delete the text file, it's useless and open up the lua folder. You should have another folder inside named entities open it and open the weapons folder inside.

Now go ahead and copy the only file named weapon_zs_battery. Once you've copied it, go to your Zombie Survival gamemode and open up the folder named gamemodes, there should be another folder inside name zombiesurvival, open it and open the entities folder. You will notice 3 folders inside, open the weapons folder and paste the weapon_zs_battery file in there. We're done moving files, now let's add it into the arsenal crate.

Step out of the folder and step out of the entities folder and open the folder named gamemode.

Copy this: GM:AddPointShopItem("battery", "Power Battery", nil, ITEMCAT_TOOLS, 170, "weapon_zs_battery")

What you've just copied is the line of code used to add the Power Battery into the Arsenal crate.

--Adding the Power Battery into the Arsenal Crate---

Look for a file named sh_options and read it using Sublime text 3/notepad++. Once you've opened it scroll down until you see something like this:

GM:AddPointShopItem("crphmr", "Carpenter's Hammer", nil, ITEMCAT_TOOLS, 50, "weapon_zs_hammer").NoClassicMode = true
GM:AddPointShopItem("wrench", "Mechanic's Wrench", nil, ITEMCAT_TOOLS, 25, "weapon_zs_wrench").NoClassicMode = true
GM:AddPointShopItem("arsenalcrate", "Arsenal Crate", nil, ITEMCAT_TOOLS, 50, "weapon_zs_arsenalcrate")
GM:AddPointShopItem("resupplybox", "Resupply Box", nil, ITEMCAT_TOOLS, 200, "weapon_zs_resupplybox")
GM:AddPointShopItem("infturret", "Infrared Gun Turret", nil, ITEMCAT_TOOLS, 50, "weapon_zs_gunturret").NoClassicMode = true

What you are seeing, is the location of the tools. Anything that is
ITEMCAT_TOOLS
will show up on the tools tab. Go ahead, take your time, look for a place you want the Power Battery to be in, once you've found the place that you want it to be in paste the line of code there. Once you've pasted it be sure to save before you exit the file.

You can place a line of code below another line of code by selecting the end of the line of code and pressing your ENTER key. Once you've pressed your enter key it will open a small gap/area for you to paste your line of code, just make sure that you DO NOT change anything about the other lines of codes other than the price of the item.

At this point you're gonna probably be wondering, it's in the arsenal crate, when I buy it, I get it, but it doesn't do anything, it doesn't shoot it just floats there. Well, this is supposed to be crafted with other weapons, we need to make this weapon craftable with other weapons, but how? It's very simple, don't worry, go to the folder named gamemode inside your zombiesurvival folder and look for a file named sh_crafts. Once you've found it, open it with Sublime text 3/notpad++.

---Making the Power Battery Crafable with other weapons---

Alright, now that you have the file open, look for a place you want to place the new lines of code, it doesn't matter where, just look for a place suitable for the new lines of code we're about to add. Found a good location? Alright, here are a few lines of code I've made for the Power Battery to be usable for crafting:

{ Name = "an 'ar2'", callback = function(enta, entb) return enta:IsWeaponType("weapon_zs_pulserifle") and entb:IsWeaponType("weapon_zs_battery") end, Result = {"weapon_zs_ar2"} }, { Name = "a laser boom stick", callback = function(enta, entb) return enta:IsWeaponType("weapon_zs_boomstick") and entb:IsWeaponType("weapon_zs_battery") end, Result = {"weapon_zs_boomstick2"} },

Alright so the first one is about crafting the 'Adonis' Pulse rifle with the power battery to get the 'AR2', the Upgraded version of it.

The 2nd one is about crafting the normal boomstick with the power battery to get the upgraded version of it, the Laser Boom Stick.

Here's a screenshot of where I put those lines of code


Try to place them like shown then save, and you should be able to craft the Power Battery with both, the 'Adonis' and the Boom Stick in-game. If you don't know how to craft weapons then please follow the step below. If you do know how to craft weapons then just skip the step below and move to the last one.

---How to craft weapons with other weapons/items---

Alright, you need to be very close to the items/weapons that you're trying to craft together then press and hold your ALT key located on the left side of your keyboard, it will open up a menu on the right side of your screen, if it doesn't open, then you don't have the ALT key located on the left side of your keyboard bound to walk.

Open up the console first, if you don't know how to open the console, then look up a way on youtube on how to open the console. Once you've opened the console, type everything inside the following brackets: (bind alt +walk) Make sure to type the command fully without the brackets in the console. Now if you try to press and hold your ALT key it will open up a menu on the right side of the screen, if it still didn't open up, then there's no other way to solve the issue.

With this opened menu you can drop ammo by pressing the Box icon next to the type of ammo you're trying to drop, or you can give ammo/give weapons/drop weapons and you can also craft items/weapons with it.

While the menu is open, press Left-Click on a weapon/item then press Right-Click on the other weapon/item, if it doesn't work then press Left-Click on the weapon that you're trying to craft, then press Left-click again on the other weapon/item, if it doesn't work then you need to get closer to the items, then you'll hear a sound after you've crafted the weapons and you will get the weapon that you've crafted.

---Done like dinner---
We've added it to the arsenal crate, we've made the Power Battery craftable with two things, that wasn't so bad, was it? I hope you have an awesome day and thank you for subscribing to my weapons. Have fun.
Extracting and adding the Combine Barricade into the Arsenal Crate
---Extracting and moving files---

Alright. If GMod's already open, close it, and let us begin.

Go to your addons folder and extract the Combine Barricade Addon. Open it up and delete the text file and open the lua folder. We're gonna start with the weapons folder, open it up.

Copy or Cut the weapon_zs_combinebarricade and it's controller and paste'em into your weapons folder located inside the Zombie-Survival gamemode, it might be located here:

gamemodes\zombiesurvival\entities\weapons

Once you've pasted it inside the weapons folder, exit out of the folder and open the entities folder located inside the Zombie-Survival gamemode, it might be located here:

gamemodes\zombiesurvival\entities\entities

Open the entities folder and keep it open. Then return to the entities folder located in the Combine Barricade Addon, inside the entities folder there should be 1 folder in there, and 1 file. Copy or cut that 1 folder and that 1 file into the folder that you've kept open earlier, which is the entities folder located inside the gamemode's folder, I'm sure you kept this folder open this time. Now that the entities are in the right place, and the weapon is in the right place let's add the Combine Barricade into the arsenal.

---Adding the Combine Barricade into the arsenal crate---

Alright. Go to this location:

gamemodes/zombiesurival/gamemode

Look for a file named sh_options.lua and read it with Sublime text 3.

Now that you've opened it copy this:

GM:AddPointShopItem("cmbricd", "Combine Barricade", nil, ITEMCAT_TOOLS, 70, "weapon_zs_combinebarricade")

What you've copied is the line of code used for adding the Combine Barricade into the arsenal. Now scroll down until you see something like this:

GM:AddPointShopItem("crphmr", "Carpenter's Hammer", nil, ITEMCAT_TOOLS, 50, "weapon_zs_hammer").NoClassicMode = true
GM:AddPointShopItem("wrench", "Mechanic's Wrench", nil, ITEMCAT_TOOLS, 25, "weapon_zs_wrench").NoClassicMode = true
GM:AddPointShopItem("arsenalcrate", "Arsenal Crate", nil, ITEMCAT_TOOLS, 50, "weapon_zs_arsenalcrate")
GM:AddPointShopItem("resupplybox", "Resupply Box", nil, ITEMCAT_TOOLS, 200, "weapon_zs_resupplybox")
GM:AddPointShopItem("infturret", "Infrared Gun Turret", nil, ITEMCAT_TOOLS, 50, "weapon_zs_gunturret").NoClassicMode = true

What you are seeing is the location of the tools located inside the arsenal crate, anything that has , ITEMCAT_TOOLS will be located inside the tools section/tab. Now go ahead, take your time, look for a place that you want the Combine Barricade to be in, if you don't know where to put it, then here's an example:

GM:AddPointShopItem("crphmr", "Carpenter's Hammer", nil, ITEMCAT_TOOLS, 50, "weapon_zs_hammer").NoClassicMode = true
GM:AddPointShopItem("wrench", "Mechanic's Wrench", nil, ITEMCAT_TOOLS, 25, "weapon_zs_wrench").NoClassicMode = true
GM:AddPointShopItem("arsenalcrate", "Arsenal Crate", nil, ITEMCAT_TOOLS, 50, "weapon_zs_arsenalcrate")
GM:AddPointShopItem("resupplybox", "Resupply Box", nil, ITEMCAT_TOOLS, 200, "weapon_zs_resupplybox")
GM:AddPointShopItem("infturret", "Infrared Gun Turret", nil, ITEMCAT_TOOLS, 50, "weapon_zs_gunturret").NoClassicMode = true
GM:AddPointShopItem("cmbricd", "Combine Barricade", nil, ITEMCAT_TOOLS, 70, "weapon_zs_combinebarricade")

You can place a line of code below another line of code by selecting the end of the line of code and pressing your ENTER key. Once you've pressed your enter key it will open a small gap/area for you to paste your line of code, just make sure that you DO NOT change anything about the other lines of codes other than the price of the item.

You can also change the price of any tool, simply change the numbers in front of ITEMCAT_TOOLS. Make sure to save after you're done.


---IMPORTANT---

The Combine Barricade prop uses a Special ammo type that needs to be added, follow these steps

1: Go to your shared.lua folder located in your Zombie-Survival gamemode, it may be here:

gamemodes/zombiesurival/gamemode/shared.lua

2: Open it with Sublime text 3, and copy this:
game.AddAmmoType({name = "combinebarricade"})

3: Scroll down until you find a function called
GM:AddCustomAmmo()
, place what you've copied inside of the function. Make sure to >>>> Save <<<<

---Done and done---

We've added the Combine Barricade into the arsenal crate. Wasn't so hard now was it?

You can test it out in single player with bots, I recommend you play on nav meshed maps and with D3Bot, you can also invite a few Friends over to play with you, they don't have to do the same process as you have just did, they just need to make sure that they allow custom content, and you're good to go. Have fun! And thank you for subscribing to my addon.
Cheers big fella
Thank you for viewing this guide and thank you for Subscribing to my weapons. I hope you have an awesome day and a great time while point-farming to get my weapons, if that's what you're aiming for. Anyways, have fun.

Oh and, before I forget, I might upload more weapons, I have a few more weapons on standby, but I just don't want to work on them right now, and be sure to rate my guide if it has helped you, and in case it hasn't, you can post a comment down below, I will do my best to answer it for ya.
< >
26 Comments
k04erap Sep 28, 2022 @ 1:02pm 
i can help , add me
Citizen 21 Sep 28, 2022 @ 10:43am 
oh.
Frost  [author] Sep 28, 2022 @ 10:31am 
@Elite 3650 this is a Guide on how to add my Weapons to the Arsenal Crate. Wrong place to ask about D3bots.
Citizen 21 Sep 28, 2022 @ 10:21am 
I made a Zombie class but I want D3bots to use It but They dont.
k04erap Oct 5, 2021 @ 8:30am 
ok thanks
Frost  [author] Oct 5, 2021 @ 7:56am 
Keep in mind that this Guide was created to teach you how to add my Weapons INTO the Arsenal Crate, and nothing else.
Frost  [author] Oct 5, 2021 @ 7:55am 
To solve it, you'll need to go to \gamemode\shared.lua, Scroll down until you get to the Custom Ammo Function:

function GM:AddCustomAmmo()

game.AddAmmoType({name = "pulse"})
game.AddAmmoType({name = "stone"})

game.AddAmmoType({name = "spotlamp"})
game.AddAmmoType({name = "manhack"})
game.AddAmmoType({name = "manhack_saw"})
end

Now all what you need to do is just adding this line of Code to the function:

game.AddAmmoType({name = "combinebarricade"})


and the Result should be:

function GM:AddCustomAmmo()
game.AddAmmoType({name = "pulse"})
game.AddAmmoType({name = "stone"})
game.AddAmmoType({name = "combinebarricade"})

game.AddAmmoType({name = "spotlamp"})
game.AddAmmoType({name = "manhack"})
game.AddAmmoType({name = "manhack_saw"})
end

This will add a Custom Ammo Type called "combinebarricade", which is what the Combine Barricade uses, and that will fix the problem.
Frost  [author] Oct 5, 2021 @ 7:47am 
It's not a Gamemode-related issue, it's a Custom Ammo Type issue.
k04erap Oct 5, 2021 @ 7:38am 
I know, but zs redemption is not stable and for example when picking up "Combine Barricade" you can't put it again.
Frost  [author] Oct 5, 2021 @ 4:30am 
ZS Redemption uses most of the original ZS Code, makes sense.