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:

  1. 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.

  2. name (string):

    • This is a user-defined name for the attachment slot set. It serves as an identifier for the set.

  3. 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).

  4. 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.

  5. 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:

ExampleLoadout.json
{
    "spawnWeight": 1,
    "name": "medic",
    "attachmentSlotItemSets": [
        {
            "slotName": "shoulderR",
            "discreteItemSets": [
                {
                    "itemType": "PipeWrench",
                    "spawnWeight": 2,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 0.8,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": 2
                },
                {
                    "itemType": "Crowbar",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 0.8
                    },
                    "quickBarSlot": 2
                }
            ]
        },
        {
            "slotName": "Vest",
            "discreteItemSets": [
                {
                    "itemType": "PressVest_LightBlue",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ]
        },
        {
            "slotName": "Back",
            "discreteItemSets": [
                {
                    "itemType": "TortillaBag",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 0.8,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": 1
                },
                {
                    "itemType": "CoyoteBag_Green",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 0.8,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": 1
                }
            ]
        },
        {
            "slotName": "Eyewear",
            "discreteItemSets": [
                {
                    "itemType": "ThinFramesGlasses",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "",
                    "spawnWeight": 1
                }
            ]
        },
        {
            "slotName": "Body",
            "discreteItemSets": [
                {
                    "itemType": "MedicalScrubsShirt_Blue",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ]
        },
        {
            "slotName": "Legs",
            "discreteItemSets": [
                {
                    "itemType": "MedicalScrubsPants_Blue",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ]
        },
        {
            "slotName": "Feet",
            "discreteItemSets": [
                {
                    "itemType": "WorkingBoots_Yellow",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ]
        }
    ]
}

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 a PipeWrench or a Crowbar, each with their own spawn weights, attributes, and quick bar slots.

  • The Vest slot contains a PressVest_LightBlue with specified attributes and no quick bar slot.

  • The Back slot can contain either a TortillaBag or a CoyoteBag_Green, each with their own attributes and assigned quick bar slot 1.

  • The Eyewear slot can contain ThinFramesGlasses or be empty (indicated by an empty itemType).

  • The Body, Legs, and Feet 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