CreatorsOk
senkou kaitori
senkou kaitori

patreon


Structure of ModularPartDef

ModularPartDef is a Def that defines a part that can be attached to a modular weapon. It's written as follows;

The name of the def. Required like any other Defs.

The name of the part displayed in the game.

Description of the part displayed on the gunsmith screen.

Classification of the part. Enter the same as defined in CompModularParts.

File path of the part graphic. Write the path below the AssetBundle.

File path of AssetBundle. Write only when you want to use different AssetBundle than Base.

Materials consumed at the Gunsmith Workbench.

Required research to attach this part.

Boolean variable, sat false as default. If this true, this part will require the Gunsmith Workbench to attach, and will consume materials regardless of difficulty.

Weight to be added (kg).

Accuracy added at each range. 1.0=100%

Addition to damage and AP value multipliers. 0.1→+10%.

Range to be added (tiles).

Burst count to be added. Final value cannot be less than 1.

Boolean variable. If this true, the part adds blinding effect to nearby enemies.

If you write this, the bullets fired will be replaced with the specified ThingDef.

If you write this, the part will add a means of melee attack.

If you write this, the part adds a gizmo separate from normal shooting.

Works similarly to equippedStatOffsets of ThingDef.

Works similarly to equippedStatOffsets of ThingDef.

Armor ratings to be added. Only works on apparel.

Insulation to be added. Only works on apparel.


More Models and Creators