Skip to content

Commit 72d906a

Browse files
committed
Setup most of the nuclear missile silo animations.
1 parent 0665dfd commit 72d906a

File tree

3 files changed

+33
-7
lines changed

3 files changed

+33
-7
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,6 @@ namisl:
911911
LaunchSpeechNotification: AtomBombLaunchDetected
912912
MissileWeapon: atomic
913913
MissilePalette: player
914-
MissileDelay: 35
915914
SpawnOffset: 0,0,-1c0
916915
IsPlayerPalette: true
917916
DisplayTimerRelationships: Ally, Neutral, Enemy
@@ -930,6 +929,10 @@ namisl:
930929
SelectTargetSpeechNotification: SelectTarget
931930
MissileImage: atomic
932931
WithSupportPowerActivationAnimation:
932+
WithSupportPowerChargedOverlay:
933+
WithSupportPowerActivationOverlay:
934+
Sequence: smoke
935+
Palette: effect50alpha
933936
SpawnSurvivors:
934937
DeathTypes: ExplosionDeath, BulletDeath
935938
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)