Creating custom weapons - basics: Difference between revisions
From TF2 Classified Wiki
More actions
use lists properly you silly! |
No edit summary |
||
| Line 21: | Line 21: | ||
* Basically everything about prefabs. | * Basically everything about prefabs. | ||
** Prefabs work as templates. Load order is important; Prefab at the top means you want to overwrite the prefab, Prefab at the bottom means you want prefab to overwrite you | |||
** List based parameters (like visuals and static attrs) will get merged. Single value parameters (like bucket or attach to hands) will get overwritten. | |||
** Prefabs cannot have spaces in the name. This is because spaces are used as a delimiter to apply multiple prefabs. (eg, <code>prefab "shotgun killspeople"</code> will make a shotgun that also killspeople) | |||
* {{code|item_name}}, {{code|item_type_name}}, {{code|item_description}} and {{code|description_string}} support localized strings. | * {{code|item_name}}, {{code|item_type_name}}, {{code|item_description}} and {{code|description_string}} support localized strings. | ||