Creating custom weapons - basics: Difference between revisions
From TF2 Classified Wiki
More actions
mNo edit summary |
No edit summary |
||
| Line 148: | Line 148: | ||
The first problem is the position of the attribute in the description. In order from top to bottom, item descriptions should always list neutral (white) stats first, then positive (blue) stats, and finally negative (red) stats, with informational text like "This weapon will reload when not active" and "Can be defused by the Wrench" being positioned at the very end. | The first problem is the position of the attribute in the description. In order from top to bottom, item descriptions should always list neutral (white) stats first, then positive (blue) stats, and finally negative (red) stats, with informational text like "This weapon will reload when not active" and "Can be defused by the Wrench" being positioned at the very end. | ||
[[File:example_09_headshottop.png]] | |||
By moving the {{code|"can headshot VISIBLE"}} attribute to the top, it also moves it to the top of the item's description. | By moving the {{code|"can headshot VISIBLE"}} attribute to the top, it also moves it to the top of the item's description. | ||
[[File:example_09_backpack.png]] | |||
The second problem is the text colour. Crits on headshot is undeniably an upside, so it should be coloured blue to reflect that. | The second problem is the text colour. Crits on headshot is undeniably an upside, so it should be coloured blue to reflect that. | ||
[[File:example_10_headshotblue.png]] | |||
By adding {{code|"effect_type" "positive"}} to the {{code|"can headshot VISIBLE"}} attribute, we can set the colour to the same blue as other positive attributes. If you want an attribute to be displayed as negative, simply replace {{code|"positive"}} with {{code|"negative"}}. The same goes for neutral attributes - replace {{code|"positive"}} with {{code|"neutral"}}. | By adding {{code|"effect_type" "positive"}} to the {{code|"can headshot VISIBLE"}} attribute, we can set the colour to the same blue as other positive attributes. If you want an attribute to be displayed as negative, simply replace {{code|"positive"}} with {{code|"negative"}}. The same goes for neutral attributes - replace {{code|"positive"}} with {{code|"neutral"}}. | ||
Here's the result: | |||
[[File:example_10_backpack.png]] | |||
== Models == | == Models == | ||