Skip to content

Commit 15d3522

Browse files
committed
Setup most of the nuclear missile silo animations.
1 parent 6d0d761 commit 15d3522

File tree

3 files changed

+33
-8
lines changed

3 files changed

+33
-8
lines changed

OpenRA.Mods.RA2/Traits/Render/WithSupportPowerChargedOverlay.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ void INotifySupportPower.Charged(Actor self)
7777

7878
void INotifySupportPower.Activated(Actor self)
7979
{
80-
overlay.PlayThen(info.EndSequence,
81-
() => visible = false);
80+
if (!string.IsNullOrEmpty(info.EndSequence))
81+
overlay.PlayThen(info.EndSequence,
82+
() => visible = false);
8283
}
8384
}
8485
}

mods/ra2/rules/soviet-structures.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,6 @@ namisl:
878878
LaunchSpeechNotification: AtomBombLaunchDetected
879879
MissileWeapon: atomic
880880
MissilePalette: player
881-
MissileDelay: 35
882881
SpawnOffset: 0,0,-1c0
883882
IsPlayerPalette: true
884883
DisplayTimerRelationships: Ally, Neutral, Enemy
@@ -895,7 +894,10 @@ namisl:
895894
FlightDelay: 200
896895
PauseOnCondition: lowpower
897896
SelectTargetSpeechNotification: SelectTarget
898-
WithSupportPowerActivationAnimation:
897+
WithSupportPowerChargedOverlay:
898+
WithSupportPowerActivationOverlay:
899+
Sequence: smoke
900+
Palette: effect50alpha
899901
SpawnSurvivors:
900902
DeathTypes: ExplosionDeath, BulletDeath
901903
Actors: e2, e2, e2, e2, e2, e2, e2

mods/ra2/sequences/soviet-structures.yaml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,16 +348,38 @@ namisl:
348348
critical-idle: ngmisl_e
349349
Start: 1
350350
ShadowStart: 3
351-
# TODO: ngmisl_f is actually the open sequence
352-
active: ngmisl_f
351+
charged: ngmisl_f
353352
Length: 16
354353
ShadowStart: 32
354+
Tick: 150
355+
damaged-charged: ngmisl_f
356+
Start: 16
357+
Length: 16
358+
ShadowStart: 48
355359
Tick: 120
356-
damaged-active: ngmisl_f
357-
Start: 17
360+
loop: ngmisl_g
361+
ShadowStart: 2
362+
Tick: 120
363+
damaged-loop: ngmisl_g
364+
Start: 1
365+
ShadowStart: 3
366+
Tick: 120
367+
end: ngmisl_h
368+
Length: 16
369+
ShadowStart: 32
370+
Tick: 150
371+
damaged-end: ngmisl_h
372+
Start: 16
358373
Length: 16
359374
ShadowStart: 48
360375
Tick: 120
376+
smoke: nuketo
377+
Length: *
378+
Tick: 120
379+
Offset: 0, 0
380+
steam: nukestm # TODO: unused
381+
Length: *
382+
Tick: 120
361383
make: ntmislmk
362384
UseTilesetCode: true
363385
Length: 26

0 commit comments

Comments
 (0)