You are viewing a potentially older version of this package. View all versions.
Fai-Pet_Protection_New-1.0.1 icon

Pet Protection New

Pet Protection New: recovery-safe selective pet protection for Valheim 1.0. Recovering stun-protected pets ignore incoming RPC damage; changing protection mode wakes a recovering pet.

Date uploaded 2 months ago
Version 1.0.1
Download link Fai-Pet_Protection_New-1.0.1.zip
Downloads 21
Dependency string Fai-Pet_Protection_New-1.0.1

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2350 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2350

README

Pet Protection New

A Valheim 1.0 replacement build based on Selective Pet Protection 0.2.2 / the working 0.2.3 compatibility repack.

Changes in 1.0.1

  • While a tamed pet is in blue-shield stun recovery (isRecoveringFromStun), incoming Character.RPC_Damage is ignored at the target-side damage handler before normal damage/AI processing runs.
  • Replaces the previous 1.0.0 Character.Damage interception; only one damage interception point is used.
  • The original recovery timer and original MonsterAI.UpdateSleep wake sequence remain in control.
  • If the protection mode is changed away from the blue stun shield while the pet is recovering (including Shift+T), the same original recovery-finish/wake sequence is used immediately as a manual escape/reset.
  • No patches to MonsterAI.Wakeup, MonsterAI.OnDamaged, follow/target/movement AI, and no extra recovery timers or ZDO keys.

Existing controls

  • Shift+T: cycle protection on the hovered tamed creature.
  • !stun: blue shield / stun recovery protection.
  • !god: immortal protection.
  • !none: remove protection.

Important

This is intended to replace, not run alongside, the old Selective Pet Protection package or Pet Protection New 1.0.0. Disable/remove the previous package before enabling this one.

Install through r2modman: Import local mod and select the ZIP.

CHANGELOG

Changelog

1.0.1

  • Moved the recovery damage block from Character.Damage to Character.RPC_Damage for a narrower target-side multiplayer interception.
  • Only tamed pets with isRecoveringFromStun == true are blocked.
  • No simultaneous Character.Damage interception is retained.
  • Preserved the original recovery timer and the existing Shift+T/protection-change wake failsafe.

1.0.0

  • Renamed package/plugin to Pet Protection New.
  • Blocked damage at Character.Damage only while a tamed pet was actively recovering from blue-shield stun.
  • Protection-state change away from blue shield finishes recovery through the original wake path.