Zombiemod
Zombiemod
模組介紹 作者原文
Zombiemod / 殭屍派系
A TABS zombie faction mod rebuilt on the SLMACore framework, originally transplanted from fern's zombie mod.
基於 fern 原版移植, 在 SLMACore 框架上重做的 TABS 殭屍派系模組。
Faction Contents / 派系內容
The Zombie faction includes 6 units / 派系 Zombie 包含 6 個兵種:
| Unit / 兵種 | Cost / 價格 | Trait / 特性 |
|-------------|-------------|--------------|
| 殭屍 / Zombie | 100 | Basic zombie, bite infects enemies / 基礎殭屍, 撕咬感染敵人 |
| 疾行殭屍 / Fast Zombie | 150 | High speed, low health / 高移速, 低血量 |
| 飛行殭屍 / Fly Zombie | 200 | Can fly, with zombie wings / 可飛行, 帶殭屍之翼 |
| 巨型殭屍 / Giant Zombie | 1000 | 2x size, smash causes infection ice explosion / 2 倍體型, 重拳範圍感染冰爆 |
| 殭屍母體 / Zombie Mother | 7000 | Summons a normal zombie every 5s in combat (8 max alive) / 戰鬥中每 5 秒召喚一隻普通殭屍 (上限 8 只存活) |
| 飛行殭屍母體 / Fly Zombie Mother | 7000 | Mother + flight / 母體 + 飛行能力 |
3 weapons, 2 abilities, and 1 faction icon are all registered in the Unit Editor, grouped under a standalone Zombie category branch in the weapon/ability lists.
3 種武器、2 種技能、1 個派系圖標均註冊進兵種編輯器, 在武器/技能列表中歸入獨立的 Zombie 分類分支。
Core Mechanics / 核心機制
- Bite Infection / 撕咬感染: A zombie bites when close to an enemy's head, applying infection with 100% chance; the enemy turns into a same-team zombie 2~5s after death.
殭屍靠近敵人頭部時撕咬, 100% 附加感染效果; 敵人死亡後 2~5 秒轉化爲同隊殭屍。
- Mother Summon / 母體召喚: The mother summons a normal zombie every 5s while an enemy is within 30m (8 max alive), no longer relying on the unstable vanilla RangeWeapon.unitToSpawn chain.
母體檢測到 30 米內有敵方單位時, 每 5 秒召喚一隻普通殭屍, 存活上限 8 只, 不再依賴原版 RangeWeapon.unitToSpawn 的不穩定鏈路。
- Multilingual / 多國語言: Faction/unit/weapon/ability names support 8 languages (Chinese / English / Japanese / German / French / Russian / Spanish / Italian), injected via reflection into Localizer.m_localization.
派系/兵種/武器/技能名稱支持 8 種語言 (中/英/日/德/法/俄/西/意), 通過反射注入 Localizer.m_localization。
- Self-contained / 自包含: Icons are embedded in the DLL via EmbeddedResource, read at runtime from GetManifestResourceStream; no external asset files needed.
圖標通過 EmbeddedResource 嵌入 DLL, 運行時從 GetManifestResourceStream 讀取, 無需額外資源文件。
Dependencies / 依賴
- BepInEx (TABS) >= 5.4.16
- SLMACore >= 1.1.2
Installation / 安裝
Place this folder into BepInEx/plugins.
將本文件夾放入 BepInEx/plugins/ 即可。
Changelog / 更新日誌
v1.2.0
- Fixed infection / 修復感染機制: Fixed ZombieBite.targetData never being assigned; bites now trigger infection 100% of the time and dead enemies always convert.
修復 ZombieBite.targetData 從未賦值的 bug, 撕咬現在 100% 觸發感染, 敵人死亡 100% 轉化爲殭屍。
- Fixed mother summon / 修復母體召喚: Switched to a code-driven MotherSummon component (5s interval, 8 max alive), replacing the unstable RangeWeapon.unitToSpawn chain.
改用代碼驅動的 MotherSummon 組件, 母體戰鬥中每 5 秒召喚一隻殭屍 (上限 8 只), 不再依賴原版 RangeWeapon.unitToSpawn 的不穩定鏈路。
- Fixed lag (log spam) / 修復性能卡頓 (日誌刷屏): Stripped CollisionWeapon / MoveCollisionWeapon / CollisionSound inherited from Vampirebite (vanilla logged Vampire_Damage_Head on every hit; dozens of zombies × 60fps flooded the log).
銷燬撕咬技能繼承自 Vampirebite 的 CollisionWeapon/MoveCollisionWeapon/CollisionSound 子組件 (原版每次命中刷日誌 Vampire_Damage_Head, 同場幾十只殭屍 × 60fps 導致日誌爆炸卡頓)。
- Fixed lag (GetComponent) / 修復性能卡頓 (組件查找): Zombification.Update no longer calls GetComponentInParent every frame; unit reference is cached.
Zombification.Update 不再每幀調用 GetComponentInParent, 改爲緩存 unit 引用。
- Fixed lag (physics) / 修復性能卡頓 (物理查詢): MotherSummon enemy detection throttled from every-frame OverlapSphere to once per 0.5s.
MotherSummon 敵方檢測從每幀物理查詢節流到 0.5 秒一次。
- Renamed assets / 資產重命名: Weapons/abilities/units now use proper names (was "2"/"3"/"4"/"zombiebite" etc.).
武器/技能/兵種全部使用正式中文名 (原 "2"/"3"/"4"/"zombiebite" 等內部代號)。
- Unit Editor registration / 兵種編輯器註冊: All weapons & abilities registered in the Unit Editor, grouped under a standalone Zombie category via CharacterItem.Tag(Faction, "Zombie").
所有武器、技能註冊進兵種編輯器, 通過 CharacterItem.Tag(Faction, "Zombie") 歸入獨立分類分支。
- Embedded icons / 圖標嵌入 DLL: 12 icons embedded via EmbeddedResource, read from GetManifestResourceStream; mod is ful
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: