Creating custom weapons - basics: Difference between revisions
From TF2 Classified Wiki
More actions
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, | : 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 | To function, item entries must be placed in the {{code|preset=3|"items"}} parameter. | ||
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]] | ||