feat(skeleton): dark aura while Summon on Kill is on, archaic toggle messages
Beside the Raise the Dead icon, a faint near-black smoke now rises off the whole body while Summon on Kill is on: the Draugr's looping smoke, borrowed like the Draugh aura, emitted from a body-sized box in world space. The owner writes the switch to the ZDO, so other players see it. "Raise the Dead Icon" and "Raise the Dead Aura" under Skeleton - Visuals let each player keep either or both, for a community vote. The toggle now says "Thy dead shall rise again." / "Raising... nevermore.", in English, Italian and Russian.
This commit is contained in:
parent
53f6fb71a2
commit
98b1a1b5f3
7 changed files with 143 additions and 8 deletions
|
|
@ -41,6 +41,7 @@ namespace RacesOfValheim
|
|||
private GameObject m_fireAuraVFX = null;
|
||||
private GameObject m_draughAuraVFX = null;
|
||||
private readonly SkeletonVisuals.HeadFlame m_skeletonHeadFlame = new SkeletonVisuals.HeadFlame();
|
||||
private readonly SkeletonVisuals.RaisingAura m_skeletonRaisingAura = new SkeletonVisuals.RaisingAura();
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
|
|
@ -169,6 +170,7 @@ namespace RacesOfValheim
|
|||
// The burning skull, grown locally for whoever we are looking at. The tier is on the
|
||||
// ZDO, so this client can work out for itself whether they should be alight.
|
||||
m_skeletonHeadFlame.Apply(m_player, SkeletonConfig.HeadFireVFXEnabled.Value && SkeletonConfig.BodyModelEnabled.Value && SkeletonVisuals.GetModel(m_player, state) == SkeletonProgression.FireModel);
|
||||
m_skeletonRaisingAura.Apply(m_player, SkeletonConfig.RaiseDeadAura.Value && nview.GetZDO().GetBool(SkeletonVisuals.RaisingZdoKey, false));
|
||||
|
||||
// Apply Scale
|
||||
Vector3 targetScale = rules.ScaleMultiplier;
|
||||
|
|
@ -273,6 +275,7 @@ namespace RacesOfValheim
|
|||
SkeletonVisuals.EnsureFireAura(m_player, false, ref m_fireAuraVFX);
|
||||
DraughVisuals.EnsureAura(m_player, false, ref m_draughAuraVFX);
|
||||
m_skeletonHeadFlame.Apply(m_player, false);
|
||||
m_skeletonRaisingAura.Apply(m_player, false);
|
||||
// Takes the crown off a Trenta who has died or changed race; a no-op for everyone else.
|
||||
TrentaVisuals.ApplyCrown(m_player);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue