ForcedConsumableSpawns

版本 v1.1.0·更新於 2025-07-20

Allows rundown developers to guarantee specific consumable spawns or mix big pickup spawns.

模組介紹 作者原文

Allows rundown developers to guarantee specific consumable spawns by adding the "ForceSpawnData" field to ConsumableDistributionDataBlock and BigPickupDistributionDataBlock. These spawns do not detract from "SpawnsPerZone" and consumables always appear in containers.

ForceSpawnData

The "ForceSpawnData" field takes a list of objects that each contain the fields:

  • "ItemID": The ID to spawn.
  • "Count": The number of items to spawn.
  • "PlacementWeights": Start/Middle/End weights on which area the item spawns in, same as other placement weights.

Consumable Example

This spawns 4 consumables that are either Lock Melters or Fog Repellers (50/50 chance), and guarantees that a C-Foam Tripmine spawns as well as 2 Explosive Tripmines in the last area.

// ConsumableDistributionDataBlock entry

{

"SpawnsPerZone": 4,

"ChanceToSpawnInResourceContainer": 1.0,

"SpawnData": [ // Standard logic, random chance of fog repeller or lock melter (SpawnsPerZone count).

{

"ItemID": 116, // Lock melter

"Weight": 1.0

},

{

"ItemID": 116, // Fog repeller

"Weight": 1.0

}

],

"ForceSpawnData": [ // The new field! Each of these always spawns (and always in containers).

{

"ItemID": 139, // Explosive Tripmine

"Count": 2, // Spawn 2

"PlacementWeights": { // Spawn towards the end

"Start": 0.0,

"Middle": 0.0,

"End": 1.0

}

},

{

"ItemID": 144 // C-Foam Tripmine. Uses default Count (1) and PlacementWeights (0/0/0).

}

],

"name": "A Custom Entry",

"internalEnabled": true,

"persistentID": 100

},

Big Pickup Example

This spawns a cell and 2 fog repellers. The cell is spawned using vanilla SpawnData while the fog repellers use ForceSpawnData.

{

"SpawnsPerZone": 1,

"SpawnData": [ // Standard logic. Since only one type spawns, it could alternatively be placed in ForceSpawnData.

{

"ItemID": 131, // Cell

"Weight": 1.0

}

],

"ForceSpawnData": [ // The new field! Each of these always spawns.

{

"ItemID": 133, // Fog Repeller

"Count": 2 // Spawn 2

}

],

"name": "A Custom Entry",

"internalEnabled": true,

"persistentID": 100

},

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPack_GTFOGTFOModding-InjectLib

檔案與校驗

檔案名稱
ForcedConsumableSpawns-1.1.0.zip
檔案大小
137.2 KiB