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. |
||
|---|---|---|
| .. | ||
| DrakeFormBehavior.cs | ||
| dummy.txt | ||
| SkadiConfig.cs | ||
| SkadiFrostHeart.cs | ||
| SkadiHollow.cs | ||
| SkadiHollowPortal.cs | ||
| SkadiNokkel.cs | ||
| SkadiPatches.cs | ||
| SkadiProgression.cs | ||
| SkadiRace.cs | ||
| SkadiStatusEffects.cs | ||