RacesOfValheim/JotunnModStub/Skadi
kanym 5532842ebc fix(skadi): keep the dragon breath and its VFX pointing the same way
The ice breath and the model's own breath VFX could end up aimed in
completely different directions, most visibly on Fader where the VFX
is green poison and the divergence is obvious.

Two causes, both fixed here:

- Every one of the 60 projectiles re-read GetLookDir() inside the
  spawn loop, so over the ~3 s a breath lasts the ice tracked the
  crosshair live while the VFX - baked into the animation, always
  leaving the muzzle - stayed with the body.

- Character.UpdateRotation only steers the body by m_lookYaw when
  AlwaysRotateCamera() is true or the player is standing still;
  otherwise it faces m_moveDir. Running or strafing mid-breath turned
  the model towards the run while the projectiles kept going where the
  player aimed.

The breath now holds the body on the aim for its duration (a deadline
rather than a flag, so an interrupted coroutine cannot leave the body
pinned) and the projectiles come out along the body's forward, so the
two cannot separate: the mouse steers the head and the whole breath
follows it. Applied to Moder's ground breath as well, which had the
same shape.

Also replaces anim.SetTrigger with SetAttackTrigger, which warns when
a trigger name is not on the animator - Unity ignores those silently,
so a wrong name was indistinguishable from an animation not playing.
2026-08-09 12:33:54 +02:00
..
DrakeFormBehavior.cs fix(skadi): keep the dragon breath and its VFX pointing the same way 2026-08-09 12:33:54 +02:00
dummy.txt Initial commit 2026-07-30 19:00:13 +02:00
SkadiConfig.cs feat(races): Skadi hollow chain, plus the pending Dvergar and Fenrir ones 2026-08-08 14:58:43 +02:00
SkadiFrostHeart.cs feat(races): Skadi hollow chain, plus the pending Dvergar and Fenrir ones 2026-08-08 14:58:43 +02:00
SkadiHollow.cs feat(races): Skadi hollow chain, plus the pending Dvergar and Fenrir ones 2026-08-08 14:58:43 +02:00
SkadiHollowPortal.cs feat(races): Skadi hollow chain, plus the pending Dvergar and Fenrir ones 2026-08-08 14:58:43 +02:00
SkadiNokkel.cs feat(races): Skadi hollow chain, plus the pending Dvergar and Fenrir ones 2026-08-08 14:58:43 +02:00
SkadiPatches.cs fix(skadi): keep the dragon breath and its VFX pointing the same way 2026-08-09 12:33:54 +02:00
SkadiProgression.cs Move Freezing-to-Cold to Bonemass and eitr regen to Yagluth 2026-08-01 18:02:24 +02:00
SkadiRace.cs fix(input): abilities no longer die while a movement key is held 2026-08-09 12:33:41 +02:00
SkadiStatusEffects.cs Rework Skadi combat costs, fix dead melee, add cooldown icons 2026-08-01 18:02:24 +02:00