From 6f9b16d230e1ecd1e85799f08045be34974f97ec Mon Sep 17 00:00:00 2001 From: Patrick Wieth Date: Tue, 3 Dec 2024 14:55:46 +0100 Subject: [PATCH] fix crash when boris' mig crashes --- mods/ca/rules/husks.yaml | 39 ++++++++++++++++++++++++++++-- mods/ca/rules/soviet/aircraft.yaml | 4 +-- 2 files changed, 39 insertions(+), 4 deletions(-) diff --git a/mods/ca/rules/husks.yaml b/mods/ca/rules/husks.yaml index 667174b3..45d8f3e3 100644 --- a/mods/ca/rules/husks.yaml +++ b/mods/ca/rules/husks.yaml @@ -312,7 +312,13 @@ YAK.Volatile.Husk.EMP: Inherits: ^EmpVisualEffect U2.Husk: - Inherits: ^PlaneHusk + Inherits: ^VoxelPlaneHusk + RenderVoxels: + Scale: 0.8 + Image: spyplane + RenderVoxels: + Scale: 0.8 + Image: borismig Tooltip: Name: Husk (Spy Plane) Aircraft: @@ -331,12 +337,41 @@ U2.Husk: TrailWhileStationary: True Type: CenterPosition RenderSprites: - Image: u2 + Image: spyplane U2.Husk.EMP: Inherits: U2.Husk Inherits: ^EmpVisualEffect +BorisMig.Husk: + Inherits: ^VoxelJetHusk + RenderVoxels: + Scale: 0.8 + Image: borismig + Tooltip: + Name: Husk (Spy Plane) + Aircraft: + TurnSpeed: 28 + Speed: 373 + Contrail@1: + Offset: -725,683,0 + Contrail@2: + Offset: -725,-683,0 + LeavesTrails: + Offsets: -1c43,0,0 + MovingInterval: 2 + Image: smokey + StationaryInterval: 2 + SpawnAtLastPosition: False + TrailWhileStationary: True + Type: CenterPosition + RenderSprites: + Image: borismig + +BorisMig.Husk.EMP: + Inherits: BorisMig.Husk + Inherits: ^EmpVisualEffect + T01.Husk: Inherits: ^TreeHusk Building: diff --git a/mods/ca/rules/soviet/aircraft.yaml b/mods/ca/rules/soviet/aircraft.yaml index b7d53b4f..e0775362 100644 --- a/mods/ca/rules/soviet/aircraft.yaml +++ b/mods/ca/rules/soviet/aircraft.yaml @@ -523,10 +523,10 @@ BorisMig: AirstrikeSlave: LandingDistance: 1c0 SpawnActorOnDeath: - Actor: U2.Husk + Actor: BorisMig.Husk RequiresCondition: !empdisable && !being-warped SpawnActorOnDeath@EMP: - Actor: U2.Husk.EMP + Actor: BorisMig.Husk.EMP RequiresCondition: empdisable && !being-warped RejectsOrders: Rearmable: