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 44: Line 44:
{{code|preset=3|"item_type_name"}}
{{code|preset=3|"item_type_name"}}
: The item's type, which is displayed under the name in the description.
: The item's type, which is displayed under the name in the description.
{{code|preset=3|"item_logname"}}
: The name used by the weapon when reported in the developer console.
{{code|preset=3|"item_iconname"}}
: The name of the weapon's main killicon. If an invalid icon is pointed to, then the default skull icon will be used instead. Supports SVG icons in {{code|resource\svgs\deathnotice}} and VTF icons defined in {{code|scripts\mod_textures.txt}} and {{code|scripts\mod_textures_tf2c.txt}}.
{{code|preset=3|"item_class"}}
: The item class to be used as a base for your weapon. A list of available item classes can be found [[List of TF2C item classes|here]].
{{code|preset=3|"item_slot"}}
: The loadout slot that the weapon is located in. Below is a list of functional slots:
:: Primary
:: Secondary
:: Melee
:: PDA
:: PDA2
:: Building
:: Action {{note|Not visible in the loadout menu}}
:: Utility {{note|Not visible in the loadout menu}}


== Adding attributes ==
== Adding attributes ==