Weapon Mod
Updated for version 3.38.
This page is missing some information.
Module Definition
The module is inherited from ItemModuleBase. So base parameters can be found there.
This modules let's you add weapon aprts.
Module name
The name of the module you use as the meta of the module definition is 'WeaponMod' or 'WeaponModModule' if _force_search
is set to true in the module definition.
XML Structure
<WeaponMod ...>
<WeaponMod ...>
And any other tweakdata value. There are more that are not listed here yet.
The icon
The icon will be stored in guis/dlcs/mods/textures/pd2/blackmarket/icons/mods and will be named id
.texture then add it using AddFiles.
Example
This example is what you would put inside your main node within your mod config
This will add another saw blade to the saw. Based on an existing saw blade. You will still need to localize the title of the part. In this case bm_wp_wpn_part_YOUR_PART_NAME
will need to be localized using LocalizationModule. And add unit, object, material_config, textures and icon through AddFiles Thankfully shortcuts make it easier:
Template
Download template (sight) here
Last updated