Skip to content

Commit d9b365f

Browse files
committed
Setup most of the nuclear missile silo animations.
1 parent 99f3d56 commit d9b365f

3 files changed

Lines changed: 33 additions & 9 deletions

File tree

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.Activate(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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,6 @@ namisl:
874874
LaunchSound: snuklaun.wav
875875
MissileWeapon: atomic
876876
MissilePalette: player
877-
MissileDelay: 35
878877
SpawnOffset: 0,0,-1c0
879878
IsPlayerPalette: true
880879
DisplayTimerStances: Ally, Neutral, Enemy
@@ -885,8 +884,10 @@ namisl:
885884
ArrowSequence: arrow
886885
CameraRange: 10
887886
PauseOnCondition: lowpower
888-
WithNukeLaunchAnimation:
889-
RequiresCondition: !build-incomplete
887+
WithSupportPowerChargedOverlay:
888+
WithNukeLaunchOverlay:
889+
Sequence: smoke
890+
Palette: effect50alpha
890891
SpawnSurvivors:
891892
DeathTypes: ExplosionDeath, BulletDeath
892893
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
@@ -341,16 +341,38 @@ namisl:
341341
critical-idle: ngmisl_e
342342
Start: 1
343343
ShadowStart: 3
344-
# TODO: ngmisl_f is actually the open sequence
345-
active: ngmisl_f
344+
charged: ngmisl_f
346345
Length: 16
347346
ShadowStart: 32
347+
Tick: 150
348+
damaged-charged: ngmisl_f
349+
Start: 16
350+
Length: 16
351+
ShadowStart: 48
348352
Tick: 120
349-
damaged-active: ngmisl_f
350-
Start: 17
353+
loop: ngmisl_g
354+
ShadowStart: 2
355+
Tick: 120
356+
damaged-loop: ngmisl_g
357+
Start: 1
358+
ShadowStart: 3
359+
Tick: 120
360+
end: ngmisl_h
361+
Length: 16
362+
ShadowStart: 32
363+
Tick: 150
364+
damaged-end: ngmisl_h
365+
Start: 16
351366
Length: 16
352367
ShadowStart: 48
353368
Tick: 120
369+
smoke: nuketo
370+
Length: *
371+
Tick: 120
372+
Offset: 0, 0
373+
steam: nukestm # TODO: unused
374+
Length: *
375+
Tick: 120
354376
make: ntmislmk
355377
UseTilesetCode: true
356378
Length: 26

0 commit comments

Comments
 (0)