Talk:Creating custom weapons - basics: Difference between revisions
Discussion page of Creating custom weapons - basics
More actions
Created page with "Aside from parameter or model/sound/etc names, please don't allow people to directly copy and paste things from here into their schemas. It's important that people actually take the time to understand how the schema works rather than just copying and pasting things and having no clue of what individual bits do. --~~~~" |
m Static Fanatic moved page Talk:Creating custom weapons to Talk:Creating custom weapons - basics |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Aside from parameter or model/sound/etc names, please don't allow people to directly copy and paste things from here into their schemas. It's important that people actually take the time to understand how the schema works rather than just copying and pasting things and having no clue of what individual bits do. --[[User:Static Fanatic|Static Fanatic]] ([[User talk:Static Fanatic|talk]]) 11:31, 26 June 2026 (UTC) | Aside from parameter or model/sound/etc names, please don't allow people to directly copy and paste things from here into their schemas. It's important that people actually take the time to understand how the schema works rather than just copying and pasting things and having no clue of what individual bits do. --[[User:Static Fanatic|Static Fanatic]] ([[User talk:Static Fanatic|talk]]) 11:31, 26 June 2026 (UTC) | ||
Oh, and don't encourage people to use the iffy items_game.txt replacement method. | |||
= Misc info to be added to the finished sections (TEMP!)= | |||
* Prefab info | |||
** 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 "prefab1 prefab2"}} will make the weapon inherit the parameters from both {{code|prefab1}} and {{code|prefab2}}) | |||
* {{code|item_name_color}} and {{code|custom_color}} allow weapon names and attributes respectively to be coloured with RGB values. | |||
* {{code|custom_level_sounds.txt}} can be used to create custom soundscripts for weapons. Please correct this if there's a better way of doing this! | |||
* Localization strings in {{code|tf2c_english.txt}} | |||
* {{code|baseitem}} sets an item as the default in its slot. Rather finicky, so avoid using. | |||
* Attribute info | |||
** Quite a few weapon attributes have interesting behavior if set to additive mode | |||