Rework Skadi dragon flight, enforce form duration, surface timers in HUD

Flight ran on the debug-fly noclip, so it ignored aim entirely and needed
Space/Ctrl for height. It now uses Character's native flying-creature
movement with the camera's full look direction fed in each frame:

- Aim steers, including climb and dive; W powers forward, releasing it
  holds level briefly and then settles into a glide instead of coasting
  along the aim vector (which let you climb forever without input).
- The body actually turns now. m_flyTurnSpeed sat at Character's 12 deg/s
  default because the Player prefab was never set up to fly, so a quarter
  turn took over seven seconds and read as no rotation at all.
- Touching down no longer slides you forward forever. Zeroing the fly
  speeds stops the character without fighting the AddForce UpdateFlying
  queues, which had caused frame-to-frame jitter and TAA ghosting.

DurationMinutes was never wired to anything, so timed forms never expired
and their cooldown, which only starts on reversion, was unreachable in
practice. Timed forms now drop on their own, and both the remaining time
and the cooldown show up beside the minimap as a Moder trophy icon.

Attack capability was snapshotted when the form was entered, so reaching
the Bonemass tier while already transformed left the drake unarmed until
the player reverted and transformed again; it is re-read live now.
This commit is contained in:
kanym 2026-07-31 16:25:06 +02:00
commit cccabe16ef
5 changed files with 193 additions and 21 deletions

View file

@ -81,13 +81,18 @@ This mod currently introduces 6 custom races:
### Skadi Progression
- **Base (No Bosses)**: Immune to Cold, Bonus Frost Damage, 50% Frost Resistance.
- **Eikthyr**: +20% Eitr Regen, Freezing to Cold, Cold Spell.
- **The Elder**: Drake Form (Cannot attack).
- **Bonemass**: Drake Form (Can attack).
- **Moder**: Moder Form (1 min duration, 10 min cooldown).
- **Yagluth**: Improved Cold Spell. Moder Form (1 min duration, 5 min cooldown).
- **The Queen**: Moder Form (Unlimited duration, no cooldown).
- **Fader**: Skeleton Dragon Form.
- **Eikthyr**: +20% Eitr Regen, Freezing to Cold, Cold Spell (Middle Mouse).
- **The Elder**: Drake Form ('G' Key) (Cannot attack).
- **Bonemass**: Drake Form ('G' Key) (Can attack).
- **Moder**: Moder Form ('H' Key) (1 min duration, 10 min cooldown).
- **Yagluth**: Improved Cold Spell. Moder Form ('H' Key) (1 min duration, 5 min cooldown).
- **The Queen**: Moder Form ('H' Key) (Unlimited duration, no cooldown).
- **Fader**: Skeleton Dragon Form ('J' Key).
While transformed, Right Mouse toggles flight. You glide toward wherever you are aiming; hold W
to power forward and climb. Let go and the form holds level for a couple of seconds before
settling into a gentle descent. Timed forms show their remaining seconds, and their cooldown,
as a Moder trophy icon beside the minimap.
### Skeleton Progression
- **Base (No Bosses)**: +50 Max Health. Undead Diet (Cannot eat mortal food, no stamina bar).