Spawning Gear Configuration – DayZ

From Bohemia Interactive Community
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:


{{Feature|informative|
{{Feature|informative|
This server-side configured spawning method completely overrides the spawning of the character. Which means that character created in main menu will be overriden by the settings from Player Spawn Gear configuration on server during the character creation process.
This server-side configured spawning method completely overrides the spawning of the character. Which means that character created in main menu will be overridden by the settings from Player Spawn Gear configuration on server during the character creation process.
}}
}}


Line 45: Line 45:
|An array of '''DiscreteUnsortedItemSets''' structures which is used for character cargo spawning.
|An array of '''DiscreteUnsortedItemSets''' structures which is used for character cargo spawning.
|}
|}
{{Feature|informative|If a particular preset has an empty or undefined characterTypes, character type last set in character creation menu will be used for that preset}}


== AttachmentSlots ==
== AttachmentSlots ==

Latest revision as of 10:31, 20 February 2024

What is the Spawning Gear Configuration?

The Spawning Gear Configuration is a way to override vanilla character spawning without touching the mission init file. This can be used to prepare multiple character presets that will be used during the spawning process.

The configuration can be placed in any JSON file(s) with the respective structure of Preset (described in this document). These new files have to be listed in cfgGameplay.json in PlayerData.spawnGearPresetFiles array. Files can also be nested in sub-directories under the $mission directory.


This server-side configured spawning method completely overrides the spawning of the character. Which means that character created in main menu will be overridden by the settings from Player Spawn Gear configuration on server during the character creation process.
The Spawning Gear Configuration overrides the behavior of StartingEquipSetup() in mission init file. If the CreateCharacter() in mission init file is overridden and someone use own characterName setting/selection here, characterTypes from this JSON preset(s) will be ignored.

Presets

An array of individual presets that will be used during the character spawn process. Presets with higher spawnWeight have a higher chance to spawn often.

Field Type Description
name string Name (can be any string)
spawnWeight integer Spawn weight (min = 1, higher number means higher chance for spawn selection)
characterTypes array An array of character types (typename) associated with the preset. Spawned in random order.
attachmentSlotItemSets array An array of AttachmentSlots structures which is used for character attachments spawning.
discreteUnsortedItemSets array An array of DiscreteUnsortedItemSets structures which is used for character cargo spawning.
If a particular preset has an empty or undefined characterTypes, character type last set in character creation menu will be used for that preset

AttachmentSlots

Configuration of specific character attachments (on character slots - back, head, body, etc.)

Field Type Description
slotName string The name of the attachment slot for the character, derived from CfgSlots

note: For shoulders, you can use shoulderL and shoulderR, these are automatically translated to respective ones defined in CfgSlots.

discreteItemSets array An array of discrete items that can be attached to the slot.

DiscreteItemSets

Configuration of specific character attachment(slot) and its attachments/cargo, for example weapon(s) and its attachments. You can setup multiple variants for each slot. Its spawning chance is driven by the spawnWeight.

Field Type Description
itemType string The type or name of the item in the set.
spawnWeight integer Spawn weight (min = 1, higher number means higher chance for spawn selection)
attributes See Attributes section

Those are default values used if the nested types have not simpleChildrenUseDefaultAttributes set to true.

quickBarSlot integer The quick bar slot where the item can be placed. Value of -1 means "don't assign".
complexChildrenTypes An array of items that will be spawned under the parent (defined by itemType). See ComplexChildrenTypes section.
simpleChildrenTypes array An array of items (typename) that will be spawned under the parent (defined by itemType).
simpleChildrenUseDefaultAttributes bool Indicates whether simple children items use default attributes defined on parent or configuration default.

DiscreteUnsortedItemSets

Used for spawning of cargo to character that have some attachments configured (through AttachmentSlots configuration).

Field Type Description
name string Name (can be any string)
spawnWeight integer Spawn weight (min = 1, higher number means higher chance for spawn selection)
attributes See Attributes section

Those are default values used if the nested types have not simpleChildrenUseDefaultAttributes set to true.

complexChildrenTypes An array of items that will be spawned in any of the characters cargo.
simpleChildrenTypes array An array of items (typename) that will be spawned in any of the characters cargo.
simpleChildrenUseDefaultAttributes bool Indicates whether simple children items use default attributes defined in that structure or configuration default.

ComplexChildrenTypes

Primary use of that types is for spawning of nested cargo, for example, if you want to spawn the Pot with Tomato inside. You can also set the QuickBar shortcut for the parent item.

Field Type Description
itemType string Name of item to spawn (typename)
attributes See Attributes section

Those are default values used if the nested types have not simpleChildrenUseDefaultAttributes set to true.

quickBarSlot integer The quick bar slot where the item can be placed. Value of -1 means "don't assign".
simpleChildrenUseDefaultAttributes bool Indicates whether simple children items use default attributes defined in that structure or configuration default.
simpleChildrenTypes array An array of item names (typename) that will be spawned.

SimpleChildrenTypes

Is used for simple spawning of one or more items to the existing cargo that is already attached to the player (through AttachmentSlots configuration).

Attributes

These are common attributes used by the other structures and defines the basic stats of the item. If set, random value between the min and max is calculated and set during the item spawn.

Field Type Description
healthMin float The minimum health attribute value for the item.
healthMax float The maximum health attribute value for the item.
quantityMin float The minimum quantity attribute value for the item.
quantityMax float The maximum quantity attribute value for the item.

Examples

cfggameplay

{

"version": 122,
    "GeneralData":
    {
        "disableBaseDamage": false,
        "disableContainerDamage": false,
        "disableRespawnDialog": false
    },
    "PlayerData":
    {
        "disablePersonalLight": false,
        "spawnGearPresetFiles": ["survivalist.json", "casual.json", "military.json"],
        "StaminaData":
        {
            "sprintStaminaModifierErc": 1.0,
            "sprintStaminaModifierCro": 1.0,
            "staminaWeightLimitThreshold": 6000.0,
            "staminaMax": 100.0,
            "staminaKgToStaminaPercentPenalty": 1.75,
            "staminaMinCap": 5.0,
            "sprintSwimmingStaminaModifier": 1.0,
            "sprintLadderStaminaModifier": 1.0,
            "meleeStaminaModifier": 1.0,
            "obstacleTraversalStaminaModifier": 1.0,
            "holdBreathStaminaModifier": 1.0
        },
        "ShockHandlingData":
        {
            "shockRefillSpeedConscious": 5.0,
            "shockRefillSpeedUnconscious": 1.0,
            "allowRefillSpeedModifier": true
        },
        "MovementData":
        {
            "timeToStrafeJog": 0.1,
            "rotationSpeedJog": 0.3,
            "timeToSprint": 0.45,
            "timeToStrafeSprint": 0.3,
            "rotationSpeedSprint": 0.15,
            "allowStaminaAffectInertia": true
        },
        "DrowningData":
        {
            "staminaDepletionSpeed": 10.0,
            "healthDepletionSpeed": 10.0,
            "shockDepletionSpeed": 10.0
        }
    },
    "WorldsData":
    {
        "lightingConfig": 1,
        "objectSpawnersArr": [],
        "environmentMinTemps": [-3.0, -2.0, 0.0, 4.0, 9.0, 14.0, 18.0, 17.0, 12.0, 7.0, 4.0, 0.0],
        "environmentMaxTemps": [3.0, 5.0, 7.0, 14.0, 19.0, 24.0, 26.0, 25.0, 21.0, 16.0, 10.0, 5.0],
        "wetnessWeightModifiers": [1.0, 1.0, 1.33, 1.66, 2.0]
    },
    "BaseBuildingData":
    {
        "HologramData":
        {
            "disableIsCollidingBBoxCheck": false,
            "disableIsCollidingPlayerCheck": false,
            "disableIsClippingRoofCheck": false,
            "disableIsBaseViableCheck": false,
            "disableIsCollidingGPlotCheck": false,
            "disableIsCollidingAngleCheck": false,
            "disableIsPlacementPermittedCheck": false,
            "disableHeightPlacementCheck": false,
            "disableIsUnderwaterCheck": false,
            "disableIsInTerrainCheck": false,
            "disallowedTypesInUnderground": ["FenceKit","TerritoryFlagKit","WatchtowerKit"]
        },
        "ConstructionData":
        {
            "disablePerformRoofCheck": false,
            "disableIsCollidingCheck": false,
            "disableDistanceCheck": false
        }
    },
    "UIData":
    {
        "use3DMap": false,
        "HitIndicationData":
        {
            "hitDirectionOverrideEnabled": false,
            "hitDirectionBehaviour": 1,
            "hitDirectionStyle": 0,
            "hitDirectionIndicatorColorStr": "0xffbb0a1e",
            "hitDirectionMaxDuration": 2.0,
            "hitDirectionBreakPointRelative": 0.2,
            "hitDirectionScatter": 10.0,
            "hitIndicationPostProcessEnabled": true
        }
    },
    "MapData":
    {
        "ignoreMapOwnership": false,
        "ignoreNavItemsOwnership": false,
        "displayPlayerPosition": false,
        "displayNavInfo": true
    }
}
↑ Back to spoiler's top

{

"version": 122,
    "GeneralData":
    {
        "disableBaseDamage": false,
        "disableContainerDamage": false,
        "disableRespawnDialog": false
    },
    "PlayerData":
    {
        "disablePersonalLight": false,
        "spawnGearPresetFiles": ["custom/survivalist.json", "custom/casual.json", "custom/military.json"],
        "StaminaData":
        {
            "sprintStaminaModifierErc": 1.0,
            "sprintStaminaModifierCro": 1.0,
            "staminaWeightLimitThreshold": 6000.0,
            "staminaMax": 100.0,
            "staminaKgToStaminaPercentPenalty": 1.75,
            "staminaMinCap": 5.0,
            "sprintSwimmingStaminaModifier": 1.0,
            "sprintLadderStaminaModifier": 1.0,
            "meleeStaminaModifier": 1.0,
            "obstacleTraversalStaminaModifier": 1.0,
            "holdBreathStaminaModifier": 1.0
        },
        "ShockHandlingData":
        {
            "shockRefillSpeedConscious": 5.0,
            "shockRefillSpeedUnconscious": 1.0,
            "allowRefillSpeedModifier": true
        },
        "MovementData":
        {
            "timeToStrafeJog": 0.1,
            "rotationSpeedJog": 0.3,
            "timeToSprint": 0.45,
            "timeToStrafeSprint": 0.3,
            "rotationSpeedSprint": 0.15,
            "allowStaminaAffectInertia": true
        },
        "DrowningData":
        {
            "staminaDepletionSpeed": 10.0,
            "healthDepletionSpeed": 10.0,
            "shockDepletionSpeed": 10.0
        }
    },
    "WorldsData":
    {
        "lightingConfig": 1,
        "objectSpawnersArr": [],
        "environmentMinTemps": [-3.0, -2.0, 0.0, 4.0, 9.0, 14.0, 18.0, 17.0, 12.0, 7.0, 4.0, 0.0],
        "environmentMaxTemps": [3.0, 5.0, 7.0, 14.0, 19.0, 24.0, 26.0, 25.0, 21.0, 16.0, 10.0, 5.0],
        "wetnessWeightModifiers": [1.0, 1.0, 1.33, 1.66, 2.0]
    },
    "BaseBuildingData":
    {
        "HologramData":
        {
            "disableIsCollidingBBoxCheck": false,
            "disableIsCollidingPlayerCheck": false,
            "disableIsClippingRoofCheck": false,
            "disableIsBaseViableCheck": false,
            "disableIsCollidingGPlotCheck": false,
            "disableIsCollidingAngleCheck": false,
            "disableIsPlacementPermittedCheck": false,
            "disableHeightPlacementCheck": false,
            "disableIsUnderwaterCheck": false,
            "disableIsInTerrainCheck": false,
            "disallowedTypesInUnderground": ["FenceKit","TerritoryFlagKit","WatchtowerKit"]
        },
        "ConstructionData":
        {
            "disablePerformRoofCheck": false,
            "disableIsCollidingCheck": false,
            "disableDistanceCheck": false
        }
    },
    "UIData":
    {
        "use3DMap": false,
        "HitIndicationData":
        {
            "hitDirectionOverrideEnabled": false,
            "hitDirectionBehaviour": 1,
            "hitDirectionStyle": 0,
            "hitDirectionIndicatorColorStr": "0xffbb0a1e",
            "hitDirectionMaxDuration": 2.0,
            "hitDirectionBreakPointRelative": 0.2,
            "hitDirectionScatter": 10.0,
            "hitIndicationPostProcessEnabled": true
        }
    },
    "MapData":
    {
        "ignoreMapOwnership": false,
        "ignoreNavItemsOwnership": false,
        "displayPlayerPosition": false,
        "displayNavInfo": true
    }
}
↑ Back to spoiler's top

Vanilla setup

{
    "spawnWeight": 1,
    "name": "Player",
    "characterTypes": [
        "SurvivorM_Mirek",
        "SurvivorM_Boris",
        "SurvivorM_Cyril",
        "SurvivorM_Denis",
        "SurvivorM_Elias",
        "SurvivorM_Francis",
        "SurvivorM_Guo",
        "SurvivorM_Hassan",
        "SurvivorM_Indar",
        "SurvivorM_Jose",
        "SurvivorM_Kaito",
        "SurvivorM_Lewis",
        "SurvivorM_Manua",
        "SurvivorM_Niki",
        "SurvivorM_Oliver",
        "SurvivorM_Peter",
        "SurvivorM_Quinn",
        "SurvivorM_Rolf",
        "SurvivorM_Seth",
        "SurvivorM_Taiki",
        "SurvivorF_Eva",
        "SurvivorF_Frida",
        "SurvivorF_Gabi",
        "SurvivorF_Helga",
        "SurvivorF_Irena",
        "SurvivorF_Judy",
        "SurvivorF_Keiko",
        "SurvivorF_Linda",
        "SurvivorF_Maria",
        "SurvivorF_Naomi",
        "SurvivorF_Baty"
    ],
    "attachmentSlotItemSets": [
        {
            "slotName": "Body",
            "discreteItemSets": [
                {
                    "itemType": "TShirt_Beige",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "TShirt_Black",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "TShirt_Blue",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "TShirt_Green",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "TShirt_OrangeWhiteStripes",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "TShirt_Red",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "TShirt_RedBlackStripes",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "TShirt_White",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "TShirt_Grey",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }                  
            ]
        },
        {
            "slotName": "Legs",
            "discreteItemSets": [
                {
                    "itemType": "CanvasPantsMidi_Beige",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "CanvasPantsMidi_Blue",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "CanvasPantsMidi_Grey",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "CanvasPantsMidi_Red",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "CanvasPantsMidi_Violet",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ]
        },
        {
            "slotName": "Feet",
            "discreteItemSets": [
                {
                    "itemType": "AthleticShoes_Black",
                    "spawnWeight": 1,
                    "attributes": {
                    "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "AthleticShoes_Blue",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "AthleticShoes_Brown",
                    "spawnWeight": 1,
                    "attributes": {
                    "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "AthleticShoes_Green",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "AthleticShoes_Grey",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.45,
                        "healthMax": 0.65,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ]
        }
    ],
    "discreteUnsortedItemSets": [
            {
                "name": "Cargo1",
                "spawnWeight": 1,
                "attributes": {
                    "healthMin": 1.0,
                    "healthMax": 1.0,
                    "quantityMin": 1.0,
                    "quantityMax": 1.0
                },
                "complexChildrenTypes": [
                    {
                        "itemType": "BandageDressing",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 2
                    },
                    {
                        "itemType": "Chemlight_Red",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 1
                    },
                    {
                        "itemType": "Pear",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 3
                    }
                ]
            },
            {
                "name": "Cargo2",
                "spawnWeight": 1,
                "attributes": {
                    "healthMin": 1.0,
                    "healthMax": 1.0,
                    "quantityMin": 1.0,
                    "quantityMax": 1.0
                },
                "complexChildrenTypes": [
                    {
                        "itemType": "BandageDressing",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 2
                    },
                    {
                        "itemType": "Chemlight_Green",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 1
                    },
                    {
                        "itemType": "Pear",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 3
                    }
                ]
            },
            {
                "name": "Cargo3",
                "spawnWeight": 1,
                "attributes": {
                    "healthMin": 1.0,
                    "healthMax": 1.0,
                    "quantityMin": 1.0,
                    "quantityMax": 1.0
                },
                "complexChildrenTypes": [
                    {
                        "itemType": "BandageDressing",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 2
                    },
                    {
                        "itemType": "Chemlight_Yellow",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 1
                    },
                    {
                        "itemType": "Pear",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 3
                    }
                ]
            },
            {
                "name": "Cargo4",
                "spawnWeight": 1,
                "attributes": {
                    "healthMin": 1.0,
                    "healthMax": 1.0,
                    "quantityMin": 1.0,
                    "quantityMax": 1.0
                },
                "complexChildrenTypes": [
                    {
                        "itemType": "BandageDressing",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 2
                    },
                    {
                        "itemType": "Chemlight_White",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 1
                    },
                    {
                        "itemType": "Pear",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 3
                    }
                ]
            },
            {
                "name": "Cargo5",
                "spawnWeight": 1,
                "attributes": {
                    "healthMin": 1.0,
                    "healthMax": 1.0,
                    "quantityMin": 1.0,
                    "quantityMax": 1.0
                },
                "complexChildrenTypes": [
                    {
                        "itemType": "BandageDressing",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 2
                    },
                    {
                        "itemType": "Chemlight_Red",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 1
                    },
                    {
                        "itemType": "Plum",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 3
                    }
                ]
            },
            {
                "name": "Cargo6",
                "spawnWeight": 1,
                "attributes": {
                    "healthMin": 1.0,
                    "healthMax": 1.0,
                    "quantityMin": 1.0,
                    "quantityMax": 1.0
                },
                "complexChildrenTypes": [
                    {
                        "itemType": "BandageDressing",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 2
                    },
                    {
                        "itemType": "Chemlight_Green",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 1
                    },
                    {
                        "itemType": "Plum",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 3
                    }
                ]
            },
            {
                "name": "Cargo7",
                "spawnWeight": 1,
                "attributes": {
                    "healthMin": 1.0,
                    "healthMax": 1.0,
                    "quantityMin": 1.0,
                    "quantityMax": 1.0
                },
                "complexChildrenTypes": [
                    {
                        "itemType": "BandageDressing",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 2
                    },
                    {
                        "itemType": "Chemlight_Yellow",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 1
                    },
                    {
                        "itemType": "Plum",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 3
                    }
                ]
            },
            {
                "name": "Cargo8",
                "spawnWeight": 1,
                "attributes": {
                    "healthMin": 1.0,
                    "healthMax": 1.0,
                    "quantityMin": 1.0,
                    "quantityMax": 1.0
                },
                "complexChildrenTypes": [
                    {
                        "itemType": "BandageDressing",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 2
                    },
                    {
                        "itemType": "Chemlight_White",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 1
                    },
                    {
                        "itemType": "Plum",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 3
                    }
                ]
            },
            {
                "name": "Cargo9",
                "spawnWeight": 1,
                "attributes": {
                    "healthMin": 1.0,
                    "healthMax": 1.0,
                    "quantityMin": 1.0,
                    "quantityMax": 1.0
                },
                "complexChildrenTypes": [
                    {
                        "itemType": "BandageDressing",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 2
                    },
                    {
                        "itemType": "Chemlight_Red",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 1
                    },
                    {
                        "itemType": "Apple",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 3
                    }
                ]
            },
            {
                "name": "Cargo10",
                "spawnWeight": 1,
                "attributes": {
                    "healthMin": 1.0,
                    "healthMax": 1.0,
                    "quantityMin": 1.0,
                    "quantityMax": 1.0
                },
                "complexChildrenTypes": [
                    {
                        "itemType": "BandageDressing",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 2
                    },
                    {
                        "itemType": "Chemlight_Green",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 1
                    },
                    {
                        "itemType": "Apple",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 3
                    }
                ]
            },
            {
                "name": "Cargo11",
                "spawnWeight": 1,
                "attributes": {
                    "healthMin": 1.0,
                    "healthMax": 1.0,
                    "quantityMin": 1.0,
                    "quantityMax": 1.0
                },
                "complexChildrenTypes": [
                    {
                        "itemType": "BandageDressing",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 2
                    },
                    {
                        "itemType": "Chemlight_Yellow",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 1
                    },
                    {
                        "itemType": "Apple",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 3
                    }
                ]
            },
            {
                "name": "Cargo12",
                "spawnWeight": 1,
                "attributes": {
                    "healthMin": 1.0,
                    "healthMax": 1.0,
                    "quantityMin": 1.0,
                    "quantityMax": 1.0
                },
                "complexChildrenTypes": [
                    {
                        "itemType": "BandageDressing",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 2
                    },
                    {
                        "itemType": "Chemlight_White",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 1
                    },
                    {
                        "itemType": "Apple",
                        "attributes": {
                            "healthMin": 1.0,
                            "healthMax": 1.0,
                            "quantityMin": 1.0,
                            "quantityMax": 1.0
                        },
                        "quickBarSlot": 3
                    }
                ]
            }
    ]
}
↑ Back to spoiler's top

Use case

{
    "spawnWeight": 1,
    "name": "Military - AKM",
    "characterTypes": [
        "SurvivorF_Judy",
        "SurvivorM_Lewis"
    ],
    "attachmentSlotItemSets": [
        {
            "slotName": "shoulderL",
            "discreteItemSets": [
                {
                    "itemType": "AKM",
                    "spawnWeight": 3,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": 1,
                    "complexChildrenTypes": [
                        {
                            "itemType": "AK_PlasticBttstck",
                            "attributes": {
                                "healthMin": 0.4,
                                "healthMax": 0.6,
                                "quantityMin": 1.0,
                                "quantityMax": 1.0
                            },
                            "quickBarSlot": -1
                        },
                        {
                            "itemType": "PSO1Optic",
                            "attributes": {
                                "healthMin": 0.1,
                                "healthMax": 0.2,
                                "quantityMin": 1.0,
                                "quantityMax": 1.0
                            },
                            "quickBarSlot": -1,
                            "simpleChildrenUseDefaultAttributes": true,
                            "simpleChildrenTypes": [
                                "Battery9V"
                            ]
                        },
                        {
                            "itemType": "Mag_AKM_30Rnd",
                            "attributes": {
                                "healthMin": 0.5,
                                "healthMax": 0.5,
                                "quantityMin": 1.0,
                                "quantityMax": 1.0
                            },
                            "quickBarSlot": -1
                        }
                    ],
                    "simpleChildrenUseDefaultAttributes": false,
                    "simpleChildrenTypes": [
                        "AK_PlasticHndgrd",
                        "AK_Bayonet"
                    ]
                },
                {
                    "itemType": "AKM",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": 1,
                    "complexChildrenTypes": [
                        {
                            "itemType": "AK_WoodBttstck",
                            "attributes": {
                                "healthMin": 1.0,
                                "healthMax": 1.0,
                                "quantityMin": 1.0,
                                "quantityMax": 1.0
                            },
                            "quickBarSlot": -1
                        },
                        {
                            "itemType": "PSO11Optic",
                            "attributes": {
                                "healthMin": 1.0,
                                "healthMax": 1.0,
                                "quantityMin": 1.0,
                                "quantityMax": 1.0
                            },
                            "quickBarSlot": -1,
                            "simpleChildrenUseDefaultAttributes": true,
                            "simpleChildrenTypes": [
                                "Battery9V"
                            ]
                        },
                        {
                            "itemType": "Mag_AKM_30Rnd",
                            "attributes": {
                                "healthMin": 1.0,
                                "healthMax": 1.0,
                                "quantityMin": 1.0,
                                "quantityMax": 1.0
                            },
                            "quickBarSlot": -1
                        }
                    ],
                    "simpleChildrenUseDefaultAttributes": false,
                    "simpleChildrenTypes": [
                        "AK_WoodHndgrd",
                        "AK_Bayonet"
                    ]
                }
            ]
        },
        {
            "slotName": "shoulderR",
            "discreteItemSets": [
                {
                    "itemType": "BaseballBat",
                    "spawnWeight": 2,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 0.8,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": 2
                },
                {
                    "itemType": "Shovel",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 0.8
                    },
                    "quickBarSlot": 2
                }
            ]
        },
        {
            "slotName": "Vest",
            "discreteItemSets": [
                {
                    "itemType": "PlateCarrierVest",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1,
                    "simpleChildrenUseDefaultAttributes": false,
                    "simpleChildrenTypes": [
                        "PlateCarrierHolster"
                    ]
                }
            ]
        },
        {
            "slotName": "Back",
            "discreteItemSets": [
                {
                    "itemType": "TaloonBag_Blue",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 0.8,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": 3,
                    "simpleChildrenUseDefaultAttributes": false,
                    "simpleChildrenTypes": [
                        "Mag_AKM_Drum75Rnd"
                    ]
                },
                {
                    "itemType": "TaloonBag_Orange",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 0.8,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": 3,
                    "simpleChildrenUseDefaultAttributes": true,
                    "simpleChildrenTypes": [
                        "Mag_AKM_30Rnd",
                        "Mag_AKM_30Rnd"
                    ]
                }
            ]
        },
        {
            "slotName": "Eyewear",
            "discreteItemSets": [
                {
                    "itemType": "AviatorGlasses",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "",
                    "spawnWeight": 1
                }
            ]
        },
        {
            "slotName": "Body",
            "discreteItemSets": [
                {
                    "itemType": "GorkaEJacket_Flat",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ]
        },
        {
            "slotName": "Legs",
            "discreteItemSets": [
                {
                    "itemType": "GorkaPants_Flat",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ]
        },
        {
            "slotName": "Feet",
            "discreteItemSets": [
                {
                    "itemType": "MilitaryBoots_Bluerock",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ]
        }
    ],
    "discreteUnsortedItemSets": [
        {
            "name": "Obelix",
            "spawnWeight": 1,
            "attributes": {
                "healthMin": 0.5,
                "healthMax": 1.0,
                "quantityMin": 0.6,
                "quantityMax": 0.8
            },
            "complexChildrenTypes": [
                {
                    "itemType": "Pot",
                    "attributes": {
                        "healthMin": 0.1,
                        "healthMax": 0.8,
                        "quantityMin": 0.1,
                        "quantityMax": 0.1
                    },
                    "quickBarSlot": -1,
                    "simpleChildrenUseDefaultAttributes": false,
                    "simpleChildrenTypes": [
                        "BoarSteakMeat",
                        "BoarSteakMeat"
                    ]
                },
                {
                    "itemType": "Mag_AKM_30Rnd",
                    "attributes": {
                        "healthMin": 0.1,
                        "healthMax": 0.8,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ],
            "simpleChildrenUseDefaultAttributes": false,
            "simpleChildrenTypes": [
                "Rag",
                "BoarSteakMeat",
                "BoarSteakMeat",
                "BoarSteakMeat",
                "FNX45",
                "Mag_FNX45_15Rnd",
                "AmmoBox_45ACP_25rnd"
            ]
        },
        {
            "name": "Asterix",
            "spawnWeight": 1,
            "attributes": {
                "healthMin": 0.5,
                "healthMax": 1.0,
                "quantityMin": 0.6,
                "quantityMax": 0.8
            },
            "simpleChildrenUseDefaultAttributes": false,
            "simpleChildrenTypes": [
                "Canteen",
                "Rag",
                "Apple",
                "AmmoBox_762x39_20Rnd",
                "CZ75",
                "Mag_CZ75_15Rnd",
                "AmmoBox_9x19_25rnd"
            ]
        }
    ]
}
↑ Back to spoiler's top

{
    "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
                }
            ]
        }
    ],
    "discreteUnsortedItemSets": [
        {
            "name": "Medic Cargo 1",
            "spawnWeight": 1,
            "attributes": {
                "healthMin": 0.5,
                "healthMax": 1.0,
                "quantityMin": 0.6,
                "quantityMax": 0.8
            },
            "complexChildrenTypes": [
                {
                    "itemType": "FirstAidKit",
                    "attributes": {
                        "healthMin": 0.7,
                        "healthMax": 0.8,
                        "quantityMin": 0.05,
                        "quantityMax": 0.1
                    },
                    "quickBarSlot": 3,
                    "simpleChildrenUseDefaultAttributes": false,
                    "simpleChildrenTypes": [
                        "BloodBagIV",
                        "BandageDressing"
                    ]
                }
            ],
            "simpleChildrenUseDefaultAttributes": false,
            "simpleChildrenTypes": [
                "Rag",
                "SheepSteakMeat"
            ]
        },
        {
            "name": "Medic Cargo 2",
            "spawnWeight": 1,
            "attributes": {
                "healthMin": 0.5,
                "healthMax": 1.0,
                "quantityMin": 0.6,
                "quantityMax": 0.8
            },
            "complexChildrenTypes": [
                {
                    "itemType": "FirstAidKit",
                    "attributes": {
                        "healthMin": 0.7,
                        "healthMax": 0.8,
                        "quantityMin": 0.05,
                        "quantityMax": 0.1
                    },
                    "quickBarSlot": 3,
                    "simpleChildrenUseDefaultAttributes": false,
                    "simpleChildrenTypes": [
                        "TetracyclineAntibiotics",
                        "BandageDressing"
                    ]
                }
            ],
            "simpleChildrenUseDefaultAttributes": false,
            "simpleChildrenTypes": [
                "Canteen",
                "Rag",
                "Apple"
            ]
        }
    ]
}
↑ Back to spoiler's top