Spawne Loot, Zumbis e Animais em qualquer lugar - zerodawnbr/zerodawntoolbox GitHub Wiki

Documentação dos Arquivos de Configuração JSON
Abaixo está a descrição detalhada de cada atributo utilizado nos arquivos de configuração do mod.
1. config.json (Configuração Principal)
Controla as configurações globais do mod.
| Atributo | Tipo | Descrição | Exemplo |
|---|---|---|---|
m_description |
String | Descrição informativa do arquivo. | "Global settings..." |
m_enabledZombie |
Int | Ativa (1) ou desativa (0) o sistema de zumbis/animais. |
1 |
m_enabledLoot |
Int | Ativa (1) ou desativa (0) o sistema de loot de contêineres. |
1 |
m_reloadCommands |
Array Strings | Comandos de chat para recarregar as configs (admin). | ["\\spawnreload", "!spawnreload"] |
Exemplo do arquivo config.json
{
"m_description": "Global settings for ZeroDawnBR Spawn Tool.",
"m_enabledZombie": 1,
"m_enabledLoot": 1,
"m_reloadCommands": [
"\\spawnreload",
"!spawnreload"
]
}
2. LootSpawn.json (Spawn de Contêineres)
Controla o spawn de contêineres e seus itens. O arquivo é uma lista de objetos m_locations.
| Atributo | Tipo | Descrição | Exemplo |
|---|---|---|---|
m_container |
String | ClassName do contêiner que será spawnado. |
"WoodenCrate" |
m_local |
String | Nome/descrição da localização (apenas para referência). | "Default Location Example" |
m_delaySeconds |
Int | Tempo em segundos que o container será spawnado no mapa | 10 |
m_timeReloadMinutes |
Int | Tempo em minutos que o container será recarregado no mapa | 90 |
m_position |
Array Strings | Lista de coordenadas (X, Y, Z) onde os contêineres irão spawnar. | ["2803.46, 29.8872, 1252.24", ...] |
m_items |
Array Objetos | Lista de itens dentro do contêiner. (Ver Objeto: m_items abaixo). |
[ { "m_classType": ... } ] |
m_activitySchedule |
Objeto | Horários/dias de atividade. (Ver Objeto: m_activitySchedule abaixo). |
{ "m_weekDay": ... } |
3. ZombieSpawn.json (Spawn de Zumbis e Animais)
Controla o spawn de zumbis/animais, seus gatilhos e loot. O arquivo é uma lista de objetos m_ZombieSpawn.
| Atributo | Tipo | Descrição | Exemplo |
|---|---|---|---|
m_local |
String | Nome/descrição da zona (apenas para referência). | "Exemplo de Spawn..." |
m_MinSpawnAmount |
Int | Número mínimo de zumbis/animais vivos na zona. | 15 |
m_MaxSpawnAmount |
Int | Número máximo de zumbis/animais vivos na zona. | 20 |
m_SpawnMaxRadius |
Float | Raio (metros) para espalhar o spawn ao redor dos m_SpawnLocation. |
50.0 |
m_TriggerRadius |
Float | Raio (metros) do gatilho. Usado SOMENTE se m_PlayerTriggerArea estiver vazio. |
100.0 |
m_SpawnDelaySeconds |
Int | Tempo (segundos) entre as verificações de spawn (após o 1º). | 60 |
m_FirstSpawnDelaySeconds |
Int | Tempo (segundos) para o primeiro spawn após player entrar na zona. | 0 |
m_PlayerSafeDistance |
Float | Distância (metros) que um player anula um ponto de spawn. | 10.0 |
m_tombstone |
Int | Controla o destino primário do loot: em "lápide" (1) ou no corpo/chão (0). |
1 |
m_spawnLootInInfected |
Int | Usado se m_tombstone = 0. Loot vai para o inventário do zumbi (1) ou é espalhado no chão (0). |
1 |
m_PlayerTriggerArea |
Array Objetos | Lista de gatilhos customizados. (Ver Objeto: m_PlayerTriggerArea abaixo). |
[] |
m_SpawnLocation |
Array Strings | Lista de coordenadas (X, Y, Z) onde os zumbis/animais nascem. | ["2650.24, 6.82784, ...] |
m_ZombiesToSpawn |
Array Objetos | Grupos de zumbis e seu loot. (Ver Objeto: m_ZombiesToSpawn abaixo). |
[ { "m_creatures": ... } ] |
m_animalsToSpawn |
Array Objetos | Grupos de animais. (Ver Objeto: m_animalsToSpawn abaixo). |
[ { "m_min": ... } ] |
m_activitySchedule |
Objeto | Horários/dias de atividade. (Ver Objeto: m_activitySchedule abaixo). |
{ "m_weekDay": ... } |
Objeto: m_PlayerTriggerArea (Usado em ZombieSpawn)
Esta é a estrutura dentro da lista m_PlayerTriggerArea. Cada objeto é um gatilho separado.
| Atributo | Tipo | Descrição | Exemplo (do Padrão do Script) |
|---|---|---|---|
m_TriggerLocation |
Array Floats | Coordenada [X, Y, Z] do centro do gatilho. |
[2800.0, 30.0, 1250.0] |
m_TriggerRadius |
Float | Raio (metros) deste gatilho customizado. | 25.0 |
4. Estruturas de Objeto Comuns
Estas são as estruturas de objetos usadas dentro dos arquivos JSON principais.
Objeto: m_items (Usado em LootSpawn e m_ZombiesToSpawn)
Define a chance e quantidade de um item específico ser gerado.
| Atributo | Tipo | Descrição | Exemplo |
|---|---|---|---|
m_classType |
String | ClassName do item. |
"FNX45" |
m_quantityMin |
Int | Quantidade mínimo de itens que será spawnado. | 1 |
m_quantityMax |
Int | Quantidade máxima de itens que será spawnado. | 1 |
m_chance |
Float (0.0-1.0) | Chance individual (0.0 a 1.0) deste item spawnar. | 1.0 |
m_attachments |
Array Strings | Lista de ClassNames de attachments para adicionar ao item. |
["Mag_FNX45_15Rnd", ...] |
Objeto: m_activitySchedule (Usado em LootSpawn e ZombieSpawn)
Define quando a zona de spawn estará ativa.
| Atributo | Tipo | Descrição | Exemplo |
|---|---|---|---|
m_weekDay |
String | Dias da semana (Domingo=1, Sábado=7) separados por espaço. | "1 2 3 4 5 6 7" |
m_hourStart |
Float | Hora (0-23) em que o spawn se torna ativo. | 0.0 |
m_hourEnd |
Float | Hora (1-24) em que o spawn se torna inativo. | 24.0 |
Objeto: m_ZombiesToSpawn (Usado em ZombieSpawn)
Define grupos de zumbis e o loot associado à sua morte.
| Atributo | Tipo | Descrição | Exemplo |
|---|---|---|---|
m_creatures |
Array Strings | Lista de ClassNames de zumbis deste grupo. |
["ZmbF_CitizenANormal_Beige", ...] |
m_lootAfterDie |
Array Objetos | Lista de loot que este grupo dropa. (Usa a estrutura m_items). |
[ { "m_classType": "VitaminBottle", ... } ] |
Objeto: m_animalsToSpawn (Usado em ZombieSpawn)
Define grupos de animais e as quantidades de spawn.
| Atributo | Tipo | Descrição | Exemplo |
|---|---|---|---|
m_min |
Int | Número mínimo de animais deste grupo para spawnar. | 0 |
m_max |
Int | Número máximo de animais deste grupo para spawnar. | 1 |
m_creatures |
Array Strings | Lista de ClassNames de animais deste grupo. |
["Animal_CanisLupus_Grey"] |
Exemplo do arquivo LootSpawn.json
{
"m_locations": [
{
"m_container": "WoodenCrate",
"m_local": "Default Location Example",
"m_delaySeconds": 10,
"m_timeReloadMinutes": 90,
"m_position": [
"2793.47, 29.6391, 1271.1"
],
"m_items": [
{
"m_classType": "FNX45",
"m_quantityMin": 1,
"m_quantityMax": 1,
"m_chance": 1,
"m_attachments": [
"Mag_FNX45_15Rnd",
"TLRLight",
"PistolSuppressor"
]
},
{
"m_classType": "Mag_FNX45_15Rnd",
"m_quantityMin": 1,
"m_quantityMax": 3,
"m_chance": 0.800000011920929,
"m_attachments": [
]
}
],
"m_activitySchedule": {
"m_weekDay": "1 2 3 4 5 6 7",
"m_hourStart": 0.0,
"m_hourEnd": 24.0
}
},
{
"m_container": "Barrel_Red",
"m_local": "Default Location Example",
"m_delaySeconds": 30,
"m_timeReloadMinutes": 60,
"m_position": [
"2787.03, 29.6927, 1273.28"
],
"m_items": [
{
"m_classType": "BoxCerealCrunchin",
"m_quantityMin": 1,
"m_quantityMax": 3,
"m_chance": 0.8,
"m_attachments": [
]
},
{
"m_classType": "TacticalBaconCan",
"m_quantityMin": 1,
"m_quantityMax": 3,
"m_chance": 0.45,
"m_attachments": [
]
},
{
"m_classType": "VitaminBottle",
"m_quantityMin": 1,
"m_quantityMax": 1,
"m_chance": 1,
"m_attachments": [
]
},
{
"m_classType": "BandageDressing",
"m_quantityMin": 1,
"m_quantityMax": 2,
"m_chance": 1,
"m_attachments": [
]
}
],
"m_activitySchedule": {
"m_weekDay": "1 2 3 4 5 6 7",
"m_hourStart": 0.0,
"m_hourEnd": 24.0
}
},
{
"m_container": "AssaultBag_Green",
"m_local": "Default Location Example",
"m_percentage": 0.5,
"m_position": [
"2756.07, 30.2322, 1290.23"
],
"m_items": [
{
"m_classType": "VitaminBottle",
"m_quantityMax": 1,
"m_chance": 1,
"m_attachments": [
]
},
{
"m_classType": "BandageDressing",
"m_quantityMax": 2,
"m_chance": 1,
"m_attachments": [
]
}
],
"m_activitySchedule": {
"m_weekDay": "1 2 3 4 5 6 7",
"m_hourStart": 0.0,
"m_hourEnd": 24.0
}
}
]
}
Exemplo do arquivo ZombieSpawn.json
{
"m_ZombieSpawn": [
{
"m_local": "Exemplo de Spawn: m_PlayerTriggerArea (abaixo) define os GATILHOS. Se m_PlayerTriggerArea estivesse VAZIO, os m_SpawnLocation seriam usados como gatilhos (com m_TriggerRadius).",
"m_MinSpawnAmount": 15,
"m_MaxSpawnAmount": 20,
"m_SpawnMaxRadius": 10.0,
"m_TriggerRadius": 100.0,
"m_SpawnDelaySeconds": 60,
"m_FirstSpawnDelaySeconds": 0,
"m_PlayerSafeDistance": 10.0,
"m_tombstone": 0,
"m_spawnLootInInfected": 1,
"m_PlayerTriggerArea": [],
"m_SpawnLocation": [
"2650.24, 6.82784, 1380.07",
"2710.16, 6.22715, 1418.32",
"2780.77, 29.2674, 1231.78",
"2758.36, 30.0996, 1307.58",
"4919.84, 334.723, 10409.1"
],
"m_ZombiesToSpawn": [
{
"m_creatures": [
"ZmbM_PatrolNormal_Autumn",
"ZmbM_PatrolNormal_Flat",
"ZmbM_PatrolNormal_PautRev",
"ZmbM_PatrolNormal_Summer",
"ZmbM_PolicemanFat",
"ZmbM_PolicemanSpecForce",
"ZmbM_PrisonerSkinny",
"ZmbF_PoliceWomanNormal"
],
"m_lootAfterDie": [
{
"m_classType": "BloodBagIV",
"m_quantityMax": 1,
"m_chance": 0.45,
"m_attachments": [
]
},
{
"m_classType": "Armband_Altis",
"m_quantityMax": 1,
"m_chance": 0.45,
"m_attachments": [
]
},
{
"m_classType": "Balaclava3Holes_Blue",
"m_quantityMax": 1,
"m_chance": 0.45,
"m_attachments": [
]
},
{
"m_classType": "Apple",
"m_quantityMax": 2,
"m_chance": 0.45,
"m_attachments": [
]
},
{
"m_classType": "CZ75",
"m_quantityMax": 1,
"m_chance": 0.5,
"m_attachments": [
"Mag_CZ75_15Rnd",
"TLRLight",
"FNP45_MRDSOptic",
"PistolSuppressor"
]
}
]
}
],
"m_animalsToSpawn": [
{
"m_min": 0,
"m_max": 1,
"m_creatures": [
"Animal_CanisLupus_Grey"
]
}
],
"m_activitySchedule": {
"m_weekDay": "1 2 3 4 5 6 7",
"m_hourStart": 0.0,
"m_hourEnd": 24.0
}
},
{
"m_local": "Exemplo de Spawn: m_PlayerTriggerArea (abaixo) define os GATILHOS. Se m_PlayerTriggerArea estivesse VAZIO, os m_SpawnLocation seriam usados como gatilhos (com m_TriggerRadius).",
"m_MinSpawnAmount": 15,
"m_MaxSpawnAmount": 30,
"m_SpawnMaxRadius": 10.0,
"m_TriggerRadius": 100.0,
"m_SpawnDelaySeconds": 60,
"m_FirstSpawnDelaySeconds": 0,
"m_PlayerSafeDistance": 10.0,
"m_tombstone": 0,
"m_spawnLootInInfected": 1,
"m_PlayerTriggerArea": [],
"m_SpawnLocation": [
"2668.63, 11.851, 1516.83",
"2720.07, 12.0526, 1588.66",
"2755.75, 6.19786, 1577.03",
"2747.79, 33.7553, 1276.28",
"2963.58, 15.8611, 1993.53",
"2905.9, 6.54814, 1998.82",
"2908.17, 18.8982, 2000.76",
"2907.08, 15.8482, 1995.26",
"2927, 6.22464, 1990.71",
"2924.37, 6.44392, 1972.3",
"2949.42, 6.86898, 1994.52",
"2972.42, 26.5772, 1996.58",
"2861.35, 6.14241, 1795.1",
"2818.84, 6.15612, 1654.36",
"2729.11, 6.16106, 1598.14",
"4919.84, 334.723, 10409.1",
"4627.39, 358.942, 10432",
"4630.84, 348.881, 10430.1",
"4623.22, 339.642, 10449.5"
],
"m_ZombiesToSpawn": [
{
"m_creatures": [
"ZmbF_CitizenANormal_Beige",
"ZmbF_CitizenANormal_Blue",
"ZmbF_CitizenANormal_Brown",
"ZmbF_CitizenBSkinny",
"ZmbF_Clerk_Normal_Blue",
"ZmbF_Clerk_Normal_Green",
"ZmbF_Clerk_Normal_Red",
"ZmbF_Clerk_Normal_White",
"ZmbF_DoctorSkinny",
"ZmbF_JoggerSkinny_Brown",
"ZmbM_PatrolNormal_Autumn",
"ZmbM_PatrolNormal_Flat",
"ZmbM_PatrolNormal_PautRev",
"ZmbM_PatrolNormal_Summer",
"ZmbM_PolicemanFat",
"ZmbM_PolicemanSpecForce",
"ZmbM_PrisonerSkinny",
"ZmbF_PoliceWomanNormal"
],
"m_lootAfterDie": [
{
"m_classType": "VitaminBottle",
"m_quantityMax": 1,
"m_chance": 0.45,
"m_attachments": [
]
},
{
"m_classType": "Morphine",
"m_quantityMax": 1,
"m_chance": 0.45,
"m_attachments": [
]
},
{
"m_classType": "Bear_Pink",
"m_quantityMax": 1,
"m_chance": 0.45,
"m_attachments": [
]
},
{
"m_classType": "Rag",
"m_quantityMax": 1,
"m_chance": 0.45,
"m_attachments": [
]
},
{
"m_classType": "Mag_Deagle_9rnd",
"m_quantityMax": 2,
"m_chance": 0.45,
"m_attachments": [
]
},
{
"m_classType": "Deagle",
"m_quantityMax": 1,
"m_chance": 0.5,
"m_attachments": [
"Mag_Deagle_9rnd",
"PistolOptic",
"PistolSuppressor"
]
}
]
}
],
"m_animalsToSpawn": [
{
"m_min": 0,
"m_max": 1,
"m_creatures": [
"Animal_CanisLupus_Grey"
]
}
],
"m_activitySchedule": {
"m_weekDay": "1 2 3 4 5 6 7",
"m_hourStart": 0.0,
"m_hourEnd": 24.0
}
}
]
}