Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Creating custom weapons - basics: Difference between revisions

From TF2 Classified Wiki
No edit summary
No edit summary
Line 13: Line 13:
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 essentials, which should ideally be included in every single item schema.
[[File:example_02_emptyschema.png]]
[[File:example_02_emptyschema.png]]
{{code|base "items_game.txt"}}
: This line is responsible for merging the data from the custom item schema into TF2C's main item schema. Without this, none of TF2C's items, prefabs or attributes will load, which isn't very ideal.
{{code|"items_game"}}
: TEMPTEXT No idea what to call the <parameter> { } thing, but it's basically that and it contains the other important shite.
{{code|"items"}}
: TEMPTEXT The <parameter> { } thing for all of the weapons
{{code|"prefabs"}}
: TEMPTEXT The <parameter> { } thing for prefabs
{{code|"attributes"}}
: TEMPTEXT The <parameter> { } thing for attributes
= Creating your first weapon =
= Creating your first weapon =
== The essentials ==
== The essentials ==