Fai-Pet_Protection_New 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.

Last updated a month ago
Total downloads 12
Total rating 0 
Categories Mods Tweaks NPCs
Dependency string Fai-Pet_Protection_New-1.0.1
Dependants 0 other packages depend on this package

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.