Cut 6b: Brokkr drop_pod.glb, petal blow-off, retro VFX/audio/juice, drop HUD/camera, and GL3 Sion captures
This commit is contained in:
parent
c2f1e5bf90
commit
5af5d87e06
15 changed files with 1847 additions and 94 deletions
|
|
@ -142,6 +142,29 @@ public partial class PomDecalPool : Node3D
|
|||
case HitImpactEvent hit:
|
||||
StampHit(in hit, state, getVisual);
|
||||
break;
|
||||
case DropPodEvent dpe:
|
||||
if ((DropPodEventKind)dpe.Kind == DropPodEventKind.PodTouchdownBlowPetals)
|
||||
{
|
||||
bool isContender = dpe.PodKind == (byte)OrbitalPodKind.Contender;
|
||||
Vector3 pos = new(dpe.X, dpe.Y, dpe.Z);
|
||||
Vector3 nrm = new(dpe.NormalX, dpe.NormalY, dpe.NormalZ);
|
||||
if (nrm.LengthSquared() < 1e-4f) nrm = Vector3.Up;
|
||||
nrm = nrm.Normalized();
|
||||
Transform3D xf = BuildSurfaceTransform(pos + nrm * 0.05f, nrm, isContender ? 6.2f : 3.8f, dpe.PodId * 1.13f);
|
||||
AllocateSlot(new DecalSlot
|
||||
{
|
||||
Active = true,
|
||||
Age = 0f,
|
||||
Lifetime = isContender ? 34f : 24f,
|
||||
TileIndex = 15f,
|
||||
InitialHeat = 1.0f,
|
||||
BaseOpacity = 0.98f,
|
||||
DepthScale = 0.095f,
|
||||
WorldXform = xf,
|
||||
DetachedFadeRemaining = -1f
|
||||
});
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue