Garry's Mod

Garry's Mod

Not enough ratings
Changing all weapons in battle_fought_
By lambups
This guide will show you everything about the tables file for battle_fought_. It's built similarly to the Modern Warfare Gamemode table system, so if you know how to modify that file, this one will be a lot easier.
   
Award
Favorite
Favorited
Unfavorite
Introduction
This guide will help you change all loot available to the player in battle_fought_. Please pay attention to this guy and remember: If the file looks right but it won't work, it's most likely that you forgot commas in the tables or the guide is outdated/not functional.

Latest version of the file can be found here[pastebin.com].
Setting up the files
Skip to step 3 of this section if you don't want to make folders and directly create the file in the Lua folder.

1. Create a folder inside the addons folder named whatever you want it to be named

2. Create a folder named lua inside of the folder you just created

3. Create a file named battle-fought-tables.lua in the lua folder

4. Make sure the file has the file extension .lua
Contents of the file
Congratulations, you've successfully created the tables file, but it's empty!

Get the pastebin link in the Introduction section of this guide and put the contents of the paste inside of the file. It should look something like this:

The reason the line that says BF = {} is cut is because we want nothing to do with that line. It should remain like that.

These lines are responsible for handling the loot you can get at the start of the game and from supply boxes.
1 - All weapons you can get at the start of the game
2 - Common weaponry - Makes a metal clang noise when the supply box is opened
3 - Rare weaponry - Makes an audible blip sound when the box is opened
4 - Epique weaponry - Fiddlesticks when opened
Keep in mind that the loot is truly given out randomly and nothing is rarer than another thing

If you added your custom weapons above, remember to also add them here, as this table determines what slot they will occupy.
1 - Primary weapons
2 - Secondary weapons
You MUST format them like that in your table file or else it will not work.

If any addon uses a custom weapon to perform an action, you must add it here for it to work.
By default, the addon has support for ActMod by AhmedMake400.
1 - Whitelisted weapons
2 - Melee weapon you spawn with - can be anything
3 - Armor charger you spawn with - can be anything

Here you can change the playermodel selection, on the left being the name when you hover over the playermodel and on the right being the actual model.
1 - All available playermodels
2 - Default one, MUST be in the list above it
Outroduction
Well, that was the whole guide. By now your weapons should be available to use for everyone in the server/your friends.