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
mNo edit summary
mNo edit summary
Line 20: Line 20:
=== Explanation ===
=== Explanation ===
{{code|preset=3|base "items_game.txt"}}
{{code|preset=3|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.
: This line is responsible for merging the data from the custom item schema into TF2C's main item schema. Without this, TF2C's items, prefabs and attributes will fail to load.
{{code|preset=3|"items_game"}}
{{code|preset=3|"items_game"}}
: The parameter that contains everything unique to the item schema. Whilst not particularly interesting, it's vital for the item schema to run.
: The parameter that contains everything unique to the item schema. Whilst not particularly interesting, it's vital for the item schema to run.
Line 33: Line 33:


== The basics ==
== The basics ==
To function, item entries must be placed under the {{code|preset=3|"items"}} parameter, with the exact indentation shown in the upcoming template.
To function, item entries must be placed in the {{code|preset=3|"items"}} parameter.


Shown below is a template item entry that contains the essential parameters for most custom weapons. Values in {{code|<>}} brackets are placeholder values that should be replaced by suitable ones.
Below is a template item entry that contains the essential parameters for most custom weapons. Values in {{code|<>}} brackets are placeholder values that should be replaced by suitable ones.


[[File:example_03_bns.png]]
[[File:example_03_bns.png]]