Align RA base building hitshapes with their sprites

This commit is contained in:
reaperrr
2015-12-31 16:15:58 +01:00
committed by Paul Chote
parent 7ba276c0c1
commit 07e6708b88
4 changed files with 177 additions and 0 deletions

View File

@@ -519,6 +519,7 @@
Inherits@1: ^ExistsInWorld Inherits@1: ^ExistsInWorld
Inherits@2: ^IronCurtainable Inherits@2: ^IronCurtainable
Inherits@3: ^SpriteActor Inherits@3: ^SpriteActor
Inherits@shape: ^1x1Shape
SelectionDecorations: SelectionDecorations:
WithSpriteControlGroupDecoration: WithSpriteControlGroupDecoration:
Selectable: Selectable:

View File

@@ -1,6 +1,10 @@
FPWR: FPWR:
Inherits: ^FakeBuilding Inherits: ^FakeBuilding
Inherits@infiltrate: ^InfiltratableFake Inherits@infiltrate: ^InfiltratableFake
Inherits@shape: ^2x2Shape
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 640,-384,0, 640,512,0, -710,-512,0, -710,512,0
Buildable: Buildable:
BuildPaletteOrder: 870 BuildPaletteOrder: 870
Queue: Defense Queue: Defense
@@ -56,6 +60,18 @@ SYRF:
Type: Light Type: Light
EditorTilesetFilter: EditorTilesetFilter:
ExcludeTilesets: INTERIOR ExcludeTilesets: INTERIOR
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 0,-1024,0, 0,1024,0, 768,0,0, 768,-1024,0, 768,1024,0
Type: Rectangle
TopLeft: -1536, -1152
BottomRight: 1536, 598
HitShape@BOTTOM:
UseOccupiedCellsOffsets: false
TargetableOffsets: -768,0,0
Type: Rectangle
TopLeft: -512, 598
BottomRight: 512, 1110
SPEF: SPEF:
Inherits: ^FakeBuilding Inherits: ^FakeBuilding
@@ -88,10 +104,23 @@ SPEF:
Type: Light Type: Light
EditorTilesetFilter: EditorTilesetFilter:
ExcludeTilesets: INTERIOR ExcludeTilesets: INTERIOR
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 0,-1024,0, 0,1024,0
Type: Rectangle
TopLeft: -1536, -598
BottomRight: 1536, 598
HitShape@TOPANDBOTTOM:
UseOccupiedCellsOffsets: false
TargetableOffsets: 811,0,0, -811,0,0
Type: Rectangle
TopLeft: -555, -1110
BottomRight: 555, 1110
WEAF: WEAF:
Inherits: ^FakeBuilding Inherits: ^FakeBuilding
Inherits@infiltrate: ^InfiltratableFake Inherits@infiltrate: ^InfiltratableFake
Inherits@shape: ^3x2Shape
Buildable: Buildable:
BuildPaletteOrder: 920 BuildPaletteOrder: 920
Prerequisites: ~structures.france, ~techlevel.medium Prerequisites: ~structures.france, ~techlevel.medium
@@ -122,6 +151,10 @@ DOMF:
Inherits: ^FakeBuilding Inherits: ^FakeBuilding
Inherits@IDISABLE: ^DisabledOverlay Inherits@IDISABLE: ^DisabledOverlay
Inherits@infiltrate: ^InfiltratableFake Inherits@infiltrate: ^InfiltratableFake
Inherits@shape: ^2x2Shape
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 630,-384,0, 630,384,0, -700,-512,0, -700,512,0
Tooltip: Tooltip:
Name: Fake Radar Dome Name: Fake Radar Dome
GenericName: Radar Dome GenericName: Radar Dome
@@ -173,10 +206,26 @@ FIXF:
Image: FIX Image: FIX
Valued: Valued:
Cost: 120 Cost: 120
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 0,-1024,0, 0,1024,0
Type: Rectangle
TopLeft: -1536, -683
BottomRight: 1536, 853
HitShape@TOPANDBOTTOM:
UseOccupiedCellsOffsets: false
TargetableOffsets: 840,0,0, -1060,0,0
Type: Rectangle
TopLeft: -640, -768
BottomRight: 640, 1024
FAPW: FAPW:
Inherits: ^FakeBuilding Inherits: ^FakeBuilding
Inherits@infiltrate: ^InfiltratableFake Inherits@infiltrate: ^InfiltratableFake
Inherits@shape: ^3x2Shape
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 840,0,0, 840,-1024,0, 840,1024,0, -840,0,0, -355,-1024,0, -840,1024,0
Buildable: Buildable:
BuildPaletteOrder: 950 BuildPaletteOrder: 950
Queue: Defense Queue: Defense
@@ -208,6 +257,7 @@ FAPW:
ATEF: ATEF:
Inherits: ^FakeBuilding Inherits: ^FakeBuilding
Inherits@IDISABLE: ^DisabledOverlay Inherits@IDISABLE: ^DisabledOverlay
Inherits@shape: ^2x2Shape
Tooltip: Tooltip:
Name: Fake Allied Tech Center Name: Fake Allied Tech Center
GenericName: Allied Tech Center GenericName: Allied Tech Center
@@ -236,6 +286,7 @@ ATEF:
PDOF: PDOF:
Inherits: ^FakeBuilding Inherits: ^FakeBuilding
Inherits@IDISABLE: ^DisabledOverlay Inherits@IDISABLE: ^DisabledOverlay
Inherits@shape: ^2x2Shape
Tooltip: Tooltip:
Name: Fake Chronosphere Name: Fake Chronosphere
GenericName: Chronosphere GenericName: Chronosphere
@@ -268,6 +319,7 @@ PDOF:
MSLF: MSLF:
Inherits: ^FakeBuilding Inherits: ^FakeBuilding
Inherits@IDISABLE: ^DisabledOverlay Inherits@IDISABLE: ^DisabledOverlay
Inherits@shape: ^2x1Shape
Tooltip: Tooltip:
Name: Fake Missile Silo Name: Fake Missile Silo
GenericName: Missile Silo GenericName: Missile Silo
@@ -320,3 +372,9 @@ FACF:
HP: 1500 HP: 1500
Armor: Armor:
Type: Wood Type: Wood
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 0,-1024,0, 0,1024,0, 1483,0,0, 1483,-1024,0, 1273,939,0, -1483,0,0, -980,-640,0, -980,640,0
Type: Rectangle
TopLeft: -1536, -1536
BottomRight: 1536, 1536

View File

@@ -1,6 +1,7 @@
MSLO: MSLO:
Inherits: ^ScienceBuilding Inherits: ^ScienceBuilding
Inherits@IDISABLE: ^DisabledOverlay Inherits@IDISABLE: ^DisabledOverlay
Inherits@shape: ^2x1Shape
Valued: Valued:
Cost: 2500 Cost: 2500
Tooltip: Tooltip:
@@ -96,6 +97,10 @@ GAP:
Explodes: Explodes:
Weapon: SmallBuildingExplode Weapon: SmallBuildingExplode
EmptyWeapon: SmallBuildingExplode EmptyWeapon: SmallBuildingExplode
HitShape:
Type: Rectangle
TopLeft: -512, -512
BottomRight: 512, 512
SPEN: SPEN:
Inherits: ^Building Inherits: ^Building
@@ -186,6 +191,18 @@ SPEN:
ReferencePoint: Top ReferencePoint: Top
ZOffset: 256 ZOffset: 256
RequiresCondition: primary RequiresCondition: primary
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 0,-1024,0, 0,1024,0
Type: Rectangle
TopLeft: -1536, -598
BottomRight: 1536, 598
HitShape@TOPANDBOTTOM:
UseOccupiedCellsOffsets: false
TargetableOffsets: 811,0,0, -811,0,0
Type: Rectangle
TopLeft: -555, -1110
BottomRight: 555, 1110
SYRD: SYRD:
Inherits: ^Building Inherits: ^Building
@@ -282,10 +299,23 @@ SYRD:
ReferencePoint: Top ReferencePoint: Top
ZOffset: 256 ZOffset: 256
RequiresCondition: primary RequiresCondition: primary
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 0,-1024,0, 0,1024,0, 768,0,0, 768,-1024,0, 768,1024,0
Type: Rectangle
TopLeft: -1536, -1152
BottomRight: 1536, 598
HitShape@BOTTOM:
UseOccupiedCellsOffsets: false
TargetableOffsets: -768,0,0
Type: Rectangle
TopLeft: -512, 598
BottomRight: 512, 1110
IRON: IRON:
Inherits: ^ScienceBuilding Inherits: ^ScienceBuilding
Inherits@IDISABLE: ^DisabledOverlay Inherits@IDISABLE: ^DisabledOverlay
Inherits@shape: ^2x1Shape
Buildable: Buildable:
Queue: Defense Queue: Defense
BuildPaletteOrder: 130 BuildPaletteOrder: 130
@@ -341,6 +371,7 @@ IRON:
PDOX: PDOX:
Inherits: ^ScienceBuilding Inherits: ^ScienceBuilding
Inherits@IDISABLE: ^DisabledOverlay Inherits@IDISABLE: ^DisabledOverlay
Inherits@shape: ^2x2Shape
Buildable: Buildable:
Queue: Defense Queue: Defense
BuildPaletteOrder: 120 BuildPaletteOrder: 120
@@ -513,6 +544,10 @@ AGUN:
DOME: DOME:
Inherits: ^Building Inherits: ^Building
Inherits@IDISABLE: ^DisabledOverlay Inherits@IDISABLE: ^DisabledOverlay
Inherits@shape: ^2x2Shape
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 630,-384,0, 630,384,0, -700,-512,0, -700,512,0
Buildable: Buildable:
Queue: Building Queue: Building
BuildPaletteOrder: 90 BuildPaletteOrder: 90
@@ -744,6 +779,7 @@ FTUR:
SAM: SAM:
Inherits: ^Defense Inherits: ^Defense
Inherits@IDISABLE: ^DisabledOverlay Inherits@IDISABLE: ^DisabledOverlay
Inherits@shape: ^2x1Shape
Buildable: Buildable:
Queue: Defense Queue: Defense
BuildPaletteOrder: 100 BuildPaletteOrder: 100
@@ -790,6 +826,7 @@ SAM:
ATEK: ATEK:
Inherits: ^ScienceBuilding Inherits: ^ScienceBuilding
Inherits@IDISABLE: ^DisabledOverlay Inherits@IDISABLE: ^DisabledOverlay
Inherits@shape: ^2x2Shape
Buildable: Buildable:
Queue: Building Queue: Building
BuildPaletteOrder: 140 BuildPaletteOrder: 140
@@ -832,6 +869,7 @@ ATEK:
WEAP: WEAP:
Inherits: ^Building Inherits: ^Building
Inherits@shape: ^3x2Shape
Buildable: Buildable:
Queue: Building Queue: Building
BuildPaletteOrder: 80 BuildPaletteOrder: 80
@@ -1007,6 +1045,12 @@ FACT:
DeathSequence: dead DeathSequence: dead
UseDeathTypeSuffix: false UseDeathTypeSuffix: false
ProvidesPrerequisite@buildingname: ProvidesPrerequisite@buildingname:
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 0,-1024,0, 0,1024,0, 1483,0,0, 1483,-1024,0, 1273,939,0, -1483,0,0, -980,-640,0, -980,640,0
Type: Rectangle
TopLeft: -1536, -1536
BottomRight: 1536, 1536
PROC: PROC:
Inherits: ^Building Inherits: ^Building
@@ -1062,6 +1106,24 @@ PROC:
DeathSequence: dead DeathSequence: dead
UseDeathTypeSuffix: false UseDeathTypeSuffix: false
ProvidesPrerequisite@buildingname: ProvidesPrerequisite@buildingname:
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 0,-1024,0, 0,1024,0
Type: Rectangle
TopLeft: -1536, -512
BottomRight: 1536, 598
HitShape@TOP:
UseOccupiedCellsOffsets: false
TargetableOffsets: 1680,0,0
Type: Rectangle
TopLeft: -512, -1536
BottomRight: 512, -512
HitShape@BOTTOMLEFT:
UseOccupiedCellsOffsets: false
TargetableOffsets: -1260,-1024,0
Type: Rectangle
TopLeft: -1536, 598
BottomRight: -512, 1280
SILO: SILO:
Inherits: ^Building Inherits: ^Building
@@ -1097,6 +1159,10 @@ SILO:
HPAD: HPAD:
Inherits: ^Building Inherits: ^Building
Inherits@shape: ^2x2Shape
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 768,-512,0, 768,512,0, -281,-512,0, -630,512,0
Buildable: Buildable:
Queue: Building Queue: Building
BuildPaletteOrder: 120 BuildPaletteOrder: 120
@@ -1179,6 +1245,10 @@ HPAD:
AFLD: AFLD:
Inherits: ^Building Inherits: ^Building
Inherits@shape: ^3x2Shape
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 420,0,0, 420,-1024,0, 420,1024,0, -777,0,0, -777,-1024,0, -777,1024,0
Buildable: Buildable:
Queue: Building Queue: Building
BuildPaletteOrder: 130 BuildPaletteOrder: 130
@@ -1310,6 +1380,10 @@ POWR:
Inherits: ^Building Inherits: ^Building
Inherits@IDISABLE: ^DisabledOverlay Inherits@IDISABLE: ^DisabledOverlay
Inherits@POWER_OUTAGE: ^DisabledByPowerOutage Inherits@POWER_OUTAGE: ^DisabledByPowerOutage
Inherits@shape: ^2x2Shape
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 640,-384,0, 640,512,0, -710,-512,0, -710,512,0
Buildable: Buildable:
Queue: Building Queue: Building
BuildPaletteOrder: 10 BuildPaletteOrder: 10
@@ -1344,6 +1418,10 @@ APWR:
Inherits: ^Building Inherits: ^Building
Inherits@IDISABLE: ^DisabledOverlay Inherits@IDISABLE: ^DisabledOverlay
Inherits@POWER_OUTAGE: ^DisabledByPowerOutage Inherits@POWER_OUTAGE: ^DisabledByPowerOutage
Inherits@shape: ^3x2Shape
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 840,0,0, 840,-1024,0, 840,1024,0, -840,0,0, -355,-1024,0, -840,1024,0
Buildable: Buildable:
Queue: Building Queue: Building
BuildPaletteOrder: 110 BuildPaletteOrder: 110
@@ -1380,6 +1458,10 @@ APWR:
STEK: STEK:
Inherits: ^ScienceBuilding Inherits: ^ScienceBuilding
Inherits@shape: ^3x2Shape
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 840,0,0, -840,0,0, 420,-768,0, 420,768,0, -770,-768,0, -770,768,0
Buildable: Buildable:
Queue: Building Queue: Building
BuildPaletteOrder: 150 BuildPaletteOrder: 150
@@ -1407,6 +1489,10 @@ STEK:
BARR: BARR:
Inherits: ^Building Inherits: ^Building
Inherits@shape: ^2x2Shape
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 490,-470,0, 355,512,0, -355,-512,0, -630,512,0
Buildable: Buildable:
Queue: Building Queue: Building
BuildPaletteOrder: 30 BuildPaletteOrder: 30
@@ -1530,6 +1616,10 @@ KENN:
TENT: TENT:
Inherits: ^Building Inherits: ^Building
Inherits@shape: ^2x2Shape
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 630,-512,0, 355,512,0, -281,-512,0, -630,512,0
Buildable: Buildable:
Queue: Building Queue: Building
BuildPaletteOrder: 20 BuildPaletteOrder: 20
@@ -1651,6 +1741,18 @@ FIX:
Power: Power:
Amount: -30 Amount: -30
ProvidesPrerequisite@buildingname: ProvidesPrerequisite@buildingname:
HitShape:
UseOccupiedCellsOffsets: false
TargetableOffsets: 0,0,0, 0,-1024,0, 0,1024,0
Type: Rectangle
TopLeft: -1536, -683
BottomRight: 1536, 853
HitShape@TOPANDBOTTOM:
UseOccupiedCellsOffsets: false
TargetableOffsets: 840,0,0, -1060,0,0
Type: Rectangle
TopLeft: -640, -768
BottomRight: 640, 1024
SBAG: SBAG:
Inherits: ^Wall Inherits: ^Wall
@@ -1735,6 +1837,11 @@ BRIK:
VGATE: VGATE:
Inherits: ^Gate Inherits: ^Gate
HitShape:
UseOccupiedCellsOffsets: true
Type: Rectangle
TopLeft: -512, -1536
BottomRight: 512, 1536
Gate: Gate:
Footprint: x x x Footprint: x x x
Dimensions: 1,3 Dimensions: 1,3
@@ -1747,6 +1854,11 @@ VGATE:
HGATE: HGATE:
Inherits: ^Gate Inherits: ^Gate
HitShape:
UseOccupiedCellsOffsets: true
Type: Rectangle
TopLeft: -1536, -512
BottomRight: 1536, 512
Gate: Gate:
Footprint: xxx Footprint: xxx
Dimensions: 3,1 Dimensions: 3,1

View File

@@ -197,10 +197,13 @@ kenn:
dome: dome:
idle: idle:
Offset: 0,-4
damaged-idle: damaged-idle:
Start: 1 Start: 1
Offset: 0,-4
make: domemake make: domemake
Length: * Length: *
Offset: 0,-4
bib: bib3 bib: bib3
Length: * Length: *
UseTilesetExtension: true UseTilesetExtension: true
@@ -311,10 +314,13 @@ afld:
spen: spen:
idle: idle:
Offset: 0,2
damaged-idle: damaged-idle:
Start: 1 Start: 1
Offset: 0,2
make: spenmake make: spenmake
Length: * Length: *
Offset: 0,2
icon: spenicon icon: spenicon
fake-icon: speficon fake-icon: speficon