[V3.0] Changes to buffs.xml — Bandit Support, Sandbox Branching, and CVar Conversion

buffs.xml is a large change with a diff of roughly 772 lines. Most of it consists of added attributes and value changes, but several id renames and new additions affect xpath.

Key Changes

New buffs

  • buffCheckScreenEffects (hidden): Reapplies temperature-related screen effects on every respawn
  • sandbox_bighead / sandbox_tiny / sandbox_blackandwhite: For sandbox options (new actions such as SetBigHead/SetScale)

id renames (watch for xpath misses)

  • twitch_blastresisttwitch_blastResist (capital R)
  • buffRadiatedRegenBlock (single, duration90) → split into 6 buffRadiatedRegenBlock15/30/45/60/75/90. The old single id no longer exists

Behavior changes to vanilla buffs

  • Mass addition of bandit tags: In many triggered_effects, target_tags="zombie,animal""zombie,animal,bandit", and tags="walker""walker,bandit" (crippled/stun/knockdown/morale effects)
  • Infection (buffInfectionMain family): Fixed values changed to reference the CVars @_InfectionRate/@_InfectionCureRate. When _InfectionRate==0, all infection buffs are removed at once
  • Bleeding/electrocution: The 6-tier table dependent on difficulty (_difficulty) was removed and consolidated into a single value / CVar calculation
  • Leg/arm fracture handlers: Individual RemoveBuff calls consolidated into a comma-separated list of buffLegSprained,buffLegSplinted,buffLegBroken
  • New action AnimatorSetWalkType (formerly AnimatorSetInt property="WalkType")
  • The CVar _difficulty was removed from the documentation

Impact on MODs

  • If you reference buffRadiatedRegenBlock (the single version) or twitch_blastresist via xpath, the id renames will cause misses.
  • If you piggyback on vanilla’s buffStatusCheck01 to Add/Remove, note that new logic (such as church bell integration) has been added, so watch for append position and duplicate elements of the same name.
  • If you reference the old buffDysenteryMain, it may miss because it has been reorganized into buffDysentery01Untreated in the related files.

Reference: Example Diffs

- <buff name="twitch_blastresist" hidden="true" ...>
+ <buff name="twitch_blastResist" hidden="true" ...>

- <buff name="buffRadiatedRegenBlock" ...><duration value="90"/>
+ <buff name="buffRadiatedRegenBlock15" ...><duration value="15"/></buff>
+ ... 30/45/60/75/90 ...

- <triggered_effect ... action="AnimatorSetInt" property="WalkType" value="5">
+ <triggered_effect ... action="AnimatorSetWalkType" value="5">

* Based on investigation immediately after applying the experimental version (equivalent to B252).


Related: List of MOD Creation Articles

コメントする

お名前(ニックネーム)だけで投稿できます。ログイン・メール登録は不要です。お気軽にどうぞ。

※ AIの回答は管理者の確認後に表示されます。内容は不正確な場合があります。