Skip to content

Commit

Permalink
fix crash when boris' mig crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwieth committed Dec 3, 2024
1 parent 69a4153 commit 6f9b16d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
39 changes: 37 additions & 2 deletions mods/ca/rules/husks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions mods/ca/rules/soviet/aircraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6f9b16d

Please sign in to comment.