Explanation of Attachment Slot Sets
Attachment Slot Sets (attachmentSlotItemSets
) are used for configuring specific items that a character can spawn with in designated attachment slots (e.g., shoulder, vest, back, etc.). Each attachment slot can hold a variety of items with different attributes and probabilities, allowing for detailed customization of the character's loadout.
Here's a detailed breakdown of the fields and their purposes within an attachmentSlotItemSet
:
spawnWeight (integer):
This field determines the overall likelihood of this attachment slot set being selected for spawning. The minimum value is 1, and a higher number increases the chance of this set being chosen over others with lower spawn weights.
name (string):
This is a user-defined name for the attachment slot set. It serves as an identifier for the set.
attachmentSlotItemSets (array):
This array contains individual attachment slot configurations. Each configuration specifies items that can be placed in a specific slot (e.g., shoulderR, Vest, Back).
slotName (string):
This field specifies the name of the attachment slot (e.g., shoulderR, Vest, Back, Eyewear, Body, Legs, Feet). It identifies where the items will be equipped on the character.
discreteItemSets (array):
This array contains the item sets that can be assigned to the specified slot. Each item set has the following fields:
itemType (string): The type of the item that will be equipped in the slot.
spawnWeight (integer): The likelihood of this specific item being chosen to spawn in the slot. Higher values increase the probability.
attributes: Specific attributes for the item, including:
healthMin: The minimum health value of the item.
healthMax: The maximum health value of the item.
quantityMin: The minimum quantity value of the item.
quantityMax: The maximum quantity value of the item.
quickBarSlot (integer): The quick bar slot assigned to this item. A value of
-1
means no quick bar slot is assigned.
Example Use Case
Let's take a look at a specific example of attachmentSlotItemSets
:
In this example:
The overall attachment slot set is named "medic" and has a
spawnWeight
of 1.Each
attachmentSlotItemSet
specifies an attachment slot name (e.g., shoulderR, Vest, Back, etc.) and the items that can be placed in that slot.For instance, the
shoulderR
slot can contain either aPipeWrench
or aCrowbar
, each with their own spawn weights, attributes, and quick bar slots.The
Vest
slot contains aPressVest_LightBlue
with specified attributes and no quick bar slot.The
Back
slot can contain either aTortillaBag
or aCoyoteBag_Green
, each with their own attributes and assigned quick bar slot 1.The
Eyewear
slot can containThinFramesGlasses
or be empty (indicated by an emptyitemType
).The
Body
,Legs
, andFeet
slots have specified items with set attributes and no quick bar slots.
By configuring attachmentSlotItemSets
in this way, you can create detailed and varied loadouts for characters, ensuring they have the right equipment in the appropriate slots.
Note: All items have been added from the game itself, however some items may have other items missed. Please let us know asap if you notice anything.
Last updated