Skip to content

Commit

Permalink
china mig now voxelized
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwieth committed Jan 18, 2024
1 parent a09ae20 commit 2a7bbf3
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 36 deletions.
Binary file added mods/ca/bits/china/chmig.hva
Binary file not shown.
Binary file added mods/ca/bits/china/chmig.vxl
Binary file not shown.
Binary file added mods/ca/bits/misc/overlays/flameiconoverlay.shp
Binary file not shown.
33 changes: 24 additions & 9 deletions mods/ca/rules/china/aircraft.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
CHMIG:
Inherits: ^Plane
Inherits: ^TDAircraftSprite
Inherits: ^VoxelJet
RenderVoxels:
Scale: 1
Image: chmig
RenderSprites:
Image: chmig
Contrail@1:
Offset: -250,-450,50
Contrail@2:
Offset: -250,450,50
Inherits: ^FightingPlane
Inherits: ^BiologicalPilot
Inherits: ^PrioAntiHeavy
Inherits: ^AnnounceOnBuild
Inherits: ^RearmableAircraft
Buildable:
Queue: Aircraft
IconPalette: chrometd
BuildPaletteOrder: 50
Prerequisites: ~aircraft.china, techcenter, ~!filler.chinamig
Description: Bomber armed with guided air-to-surface missiles.
Expand Down Expand Up @@ -50,10 +60,6 @@ CHMIG:
AmmoPool:
Ammo: 8
SelectionDecorations:
Contrail@1:
Offset: -598,-683,0
Contrail@2:
Offset: -598,683,0
SpawnActorOnDeath:
Actor: chmig.husk
LeavesTrails:
Expand All @@ -78,6 +84,8 @@ CHMIG:
CHMIG.AA:
Inherits: CHMIG
Inherits: ^PrioAntiHeavyAA
WithProductionIconOverlay@Air:
Types: Air
Buildable:
Queue: Aircraft
BuildPaletteOrder: 50
Expand All @@ -98,7 +106,9 @@ CHMIG.AA:

CHMIG.Napalm:
Inherits: CHMIG
Inherits@AUTOTARGET2: ^PrioAntiLight
Inherits: ^PrioAntiLight
WithProductionIconOverlay@Flame:
Types: Flame
Buildable:
Prerequisites: ~aircraft.china, techcenter, ~commander_tree.chinamig.napalm
Description: Napalm bomber.
Expand Down Expand Up @@ -134,7 +144,9 @@ CHMIG.Napalm:

CHMIG.Nuke:
Inherits: CHMIG
Inherits@AUTOTARGET2: ^PrioAntiLight
Inherits: ^PrioAntiLight
WithProductionIconOverlay@Nuke:
Types: Nuke
Buildable:
Prerequisites: ~aircraft.china, techcenter, ~commander_tree.chinamig.nuke
Description: Nuclear bomber aircraft.
Expand All @@ -154,7 +166,10 @@ CHMIG.Nuke:
Weapon: AtomBomb.Paradrop

chmig.husk:
Inherits: ^PlaneHusk
Inherits: ^VoxelPlaneHusk
RenderVoxels:
Scale: 1
Image: chmig
Tooltip:
Name: MiG
Contrail@1:
Expand Down
5 changes: 5 additions & 0 deletions mods/ca/rules/misc/overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,8 @@ Player:
Image: iconoverlays
Palette: chrometd
Sequence: wrench
ProductionIconOverlayManager@Flame:
Type: Flame
Image: iconoverlays
Palette: chrome
Sequence: flame
5 changes: 2 additions & 3 deletions mods/ca/rules/scrin/commander-tree.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ hack.cameo_filler.405:
Inherits: ^default.cameo_filler
Buildable:
BuildPaletteOrder: 412
Prerequisites: prerequisite.has_points, ~filler.corrupter2, disabled
Prerequisites: prerequisite.has_points, ~vehicles.scrin, ~filler.corrupter2, disabled

commander_tree.Devourer.Acid:
Inherits: ^default.commander_tree_item
Expand Down Expand Up @@ -191,7 +191,7 @@ hack.cameo_filler.406:
Inherits: ^default.cameo_filler
Buildable:
BuildPaletteOrder: 415
Prerequisites: prerequisite.has_points, radar, ~vehicles.devo, disabled
Prerequisites: prerequisite.has_points, radar, ~vehicles.traveler, disabled

hack.cameo_filler.407:
Inherits: ^default.cameo_filler
Expand Down Expand Up @@ -280,7 +280,6 @@ hack.cameo_filler.409:
Prerequisites: prerequisite.has_points, ~vehicles.harvester, ~filler.channeler2, disabled



commander_tree.Seeker.PLD:
Inherits: ^default.commander_tree_item
RenderSprites:
Expand Down
6 changes: 4 additions & 2 deletions mods/ca/rules/soviet/aircraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ FROG:
RenderVoxels:
Scale: 0.6
Image: frog
RenderSprites:
Image: frog
Inherits: ^BomberPlane
Inherits: ^BiologicalPilot
Inherits: ^PrioAntiLight
Expand All @@ -12,7 +14,6 @@ FROG:
Queue: Aircraft
BuildAtProductionType: Plane
BuildPaletteOrder: 51
IconPalette: chrome
Prerequisites: ~afld, ~aircraft.soviet, ~commander_tree.frogfoot,
Description: Bomber armed with explosive bombs.\n Strong vs Light Vehicles, Infantry\n Weak vs Aircraft
Valued:
Expand All @@ -33,8 +34,9 @@ FROG:

SU25.dirty:
Inherits: FROG
WithProductionIconOverlay@Hazard:
Types: Hazard
Buildable:
IconPalette: chrometd
Prerequisites: ~afld, ~commander_tree.dirty_frogfoot
Description: Bomber armed with dirty bombs.\n Strong vs Light Vehicles, Infantry\n Weak vs Aircraft, Buildings
Valued:
Expand Down
5 changes: 0 additions & 5 deletions mods/ca/sequences/aircraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,6 @@ frog:
Facings: 8
icon: frogicon

su25.dirty:
Inherits: frog
icon: frogdirtyicon

suk:
Inherits: ^VehicleOverlays
idle: invisibleitem
Expand Down Expand Up @@ -431,7 +427,6 @@ scrn:
idle: invisibleitem
icon: scrinicnh


scrn.bomber:
Inherits: scrn
icon: bansheebombericon
Expand Down
18 changes: 1 addition & 17 deletions mods/ca/sequences/china.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -520,25 +520,9 @@ chbattle:

chmig:
Inherits: ^VehicleOverlays
Inherits: ^LowRes
idle: chmig
Scale: 1.6
Facings: 32
UseClassicFacings: True
idle: invisibleitem
icon: chmigicon

chmig.nuke:
Inherits: chmig
icon: chmignukeicon

chmig.aa:
Inherits: chmig
icon: chmigaaicon

chmig.napalm:
Inherits: chmig
icon: chmignapalmicon

charty:
Inherits: ^VehicleOverlays
Inherits: ^LowRes
Expand Down
2 changes: 2 additions & 0 deletions mods/ca/sequences/misc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,8 @@ iconoverlays:
Offset: -2, -2
wrench: wrenchiconoverlay
Offset: 1, 1
flame: flameiconoverlay
Offset: 1, 1

atomic:
up: atomicup
Expand Down
3 changes: 3 additions & 0 deletions mods/ca/sequences/voxels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ huey.husk:
chbattle:
idle: battlemaster
turret: battlemastertur

chmig:
idle: chmig

0 comments on commit 2a7bbf3

Please sign in to comment.