Creating custom weapons - basics: Difference between revisions
From TF2 Classified Wiki
More actions
No edit summary |
No edit summary |
||
| Line 84: | Line 84: | ||
: The icon used in the loadout menu and bucket. | : The icon used in the loadout menu and bucket. | ||
{{code|preset=3|"attach_to_hands"}} | {{code|preset=3|"attach_to_hands"}} | ||
: This parameter controls what model's animations are used. If set to 1, the class' c_arms will be used for the animations. If set to 2, the | : This parameter controls what model's animations are used. If set to 1, the class' c_arms will be used for the animations. If set to 2, the item model's animations will be used instead. | ||
{{code|preset=3|"used_by_classes"}} | |||
: This controls which classes can use the item. {{code|preset=3|<backpack slot>}} can be set to 1 to use the loadout slot defined under {{code|preset=3|"item_slot"}}, or can be set to a specific loadout slot. | |||
{{code|preset=3|"attributes"}} | |||
: The list of attributes that modify the weapon's behaviour. You can add as many attributes as you'd like, just as long as the attribute class isn't repeated. Some attributes can be condensed into a single line if you wish (e.g. <attribute name> "<value>"), which is helpful for meta-attributes like {{code|"hidden separator"}} and {{code|"provide on active"}} that are repeated often. | |||
{{code|preset=3|"static_attrs"}} | |||
: A variant of {{code|preset=3|"attributes"}} that should '''only''' be used for attributes like {{code|"min_viewmodel_offset"}}. | |||
== Adding attributes == | == Adding attributes == | ||