Creating custom weapons: Difference between revisions
mNo edit summary |
No edit summary |
||
| Line 12: | Line 12: | ||
=== Info to be added to the above sections === | === Info to be added to the above sections === | ||
- It should be noted that custom weapons don't currently show up in the loadout on the main menu. To view them, you need to load into a map first. | - It should be noted that custom weapons don't currently show up in the loadout on the main menu. To view them, you need to load into a map first.{{note|rei note! if using a items_game instead of a custom_items_game they will load on the main menu. however this means you are more prone to schema breakage between game versions and you gotta constantly update your copy anytime they update the item schema}} | ||
- It's a good idea to go over the basic parameters that most weapons should have. Failing to include these can either break the weapon in some way or completely prevent the whole pack from loading. | - It's a good idea to go over the basic parameters that most weapons should have. Failing to include these can either break the weapon in some way or completely prevent the whole pack from loading. | ||
Revision as of 14:33, 16 June 2026
| This article is a stub. You can help TF2 Classified Wiki by expanding it. |
| A todo list has been written for this article.
The specific instructions are: Add literally any information that is useful. I'll trim the fat and clean up the remaining stuff afterwards. |
This guide is currently incomplete, so please look for a better one while this is being worked on!
If you're here, chances are you're looking to create your own weapons for TF2 Classified. Whether for use against bots or other players, this guide should hopefully cover the majority of your questions regarding custom weapon creation. If it doesn't, ask people for help in the #modding-discussion channel in the official TF2C Discord.
Getting Started
To begin, create a file named custom_items_game.txt in the <SteamUserDir>\Team Fortress 2 Classified\tf2classified\custom\<Mod Name>\scripts directory. This is the file that will contain all of the information regarding your custom weapons. Please note that you cannot have multiple custom_items_game.txt files loaded simultaneously, so any other mod folders that contain them should be placed in tf2classified\custom\disabled to allow the new custom item schema to load.
Info to be added to the above sections
- It should be noted that custom weapons don't currently show up in the loadout on the main menu. To view them, you need to load into a map first.[note]
- It's a good idea to go over the basic parameters that most weapons should have. Failing to include these can either break the weapon in some way or completely prevent the whole pack from loading.