Talk:Creating custom weapons - basics
Jump to navigation
Jump to search
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, prefab "prefab1 prefab2" will make the weapon inherit the parameters from both prefab1 and prefab2)
- item_name_color and custom_color allow weapon names and attributes respectively to be coloured with RGB values.
- 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 tf2c_english.txt
- 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