Creating custom weapons - basics: Difference between revisions
From TF2 Classified Wiki
More actions
No edit summary |
No edit summary |
||
| Line 12: | Line 12: | ||
To begin, create a file named {{code|custom_items_game.txt}} in the {{code|<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 {{code|tf2classified\custom\disabled}} to allow the new custom item schema to load. | To begin, create a file named {{code|custom_items_game.txt}} in the {{code|<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 {{code|tf2classified\custom\disabled}} to allow the new custom item schema to load. | ||
== Setting up the custom item schema == | == Setting up the custom item schema == | ||
Shown below are the | Shown below are the main parameters that should ideally be included in every single item schema. Copy this exactly into your {{code|custom_items_game.txt}} file. | ||
[[File:example_02_emptyschema.png]] | [[File:example_02_emptyschema.png]] | ||
| Line 28: | Line 28: | ||
: The parameter that contains attributes, which will also be explained later. | : The parameter that contains attributes, which will also be explained later. | ||
= Creating your first weapon = | = Creating your first weapon = | ||
== The | == The basics == | ||
Shown below is a template item entry that contains the essential parameters for most custom weapons. Please not it won't work if you copy everything literally. Anything in {{code|<>}} brackets should be replaced by a suitable value. | |||
== Adding attributes == | == Adding attributes == | ||