From 3507ad2f8719d98aca56611ff5ad834c3b42955b Mon Sep 17 00:00:00 2001 From: reaperrr Date: Fri, 21 Apr 2017 14:08:42 +0200 Subject: [PATCH] Give D2k structures footprint hit-shapes --- mods/d2k/rules/defaults.yaml | 3 ++ mods/d2k/rules/structures.yaml | 98 ++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) diff --git a/mods/d2k/rules/defaults.yaml b/mods/d2k/rules/defaults.yaml index 15676c8a43..9522151542 100644 --- a/mods/d2k/rules/defaults.yaml +++ b/mods/d2k/rules/defaults.yaml @@ -338,6 +338,9 @@ TargetTypes: Ground, C4, Structure HitShape: UseOccupiedCellsOffsets: true + Type: Rectangle + TopLeft: -512, -512 + BottomRight: 512, 512 Building: Dimensions: 1,1 Footprint: x diff --git a/mods/d2k/rules/structures.yaml b/mods/d2k/rules/structures.yaml index 2f1f2b24b1..1e89f19044 100644 --- a/mods/d2k/rules/structures.yaml +++ b/mods/d2k/rules/structures.yaml @@ -64,6 +64,10 @@ construction_yard: Bounds: 96,64 Health: HP: 3000 + HitShape: + Type: Rectangle + TopLeft: -1536, -1024 + BottomRight: 1536, 1024 Armor: Type: cy RevealsShroud: @@ -134,6 +138,10 @@ wind_trap: Bib: Health: HP: 3000 + HitShape: + Type: Rectangle + TopLeft: -1024, -1024 + BottomRight: 1024, 1024 Armor: Type: building RevealsShroud: @@ -175,6 +183,10 @@ barracks: Bib: Health: HP: 3200 + HitShape: + Type: Rectangle + TopLeft: -1024, -1024 + BottomRight: 1024, 1024 Armor: Type: wood RevealsShroud: @@ -251,6 +263,15 @@ refinery: Bib: Health: HP: 3000 + HitShape: + Type: Rectangle + TopLeft: -512, -1024 + BottomRight: 1536, 0 + HitShape@BOTTOM: + UseOccupiedCellsOffsets: false + Type: Rectangle + TopLeft: -1536, 0 + BottomRight: 512, 1024 Armor: Type: building RevealsShroud: @@ -355,6 +376,11 @@ light_factory: Bib: Health: HP: 3300 + HitShape: + TargetableOffsets: -210,608,0 + Type: Rectangle + TopLeft: -1536, -1024 + BottomRight: 1536, 1024 Armor: Type: light RevealsShroud: @@ -433,6 +459,18 @@ heavy_factory: Bib: Health: HP: 3500 + HitShape: + UseOccupiedCellsOffsets: false + TargetableOffsets: 0,0,0, -1680,0,0, 0,1024,0, 0,-1024,0, -1155,-704,0, -1365,832,0 + Type: Rectangle + TopLeft: -1536, -512 + BottomRight: 1536, 1536 + HitShape@TOP: + UseOccupiedCellsOffsets: false + TargetableOffsets: 1680,0,0 + Type: Rectangle + TopLeft: -512, -1536 + BottomRight: 512, -512 Armor: Type: wood RevealsShroud: @@ -518,6 +556,10 @@ outpost: Bib: Health: HP: 3500 + HitShape: + Type: Rectangle + TopLeft: -1536, -1024 + BottomRight: 1536, 1024 Armor: Type: light RevealsShroud: @@ -563,6 +605,15 @@ starport: Bounds: 96,64 Health: HP: 3500 + HitShape: + Type: Rectangle + TopLeft: -1536, -1536 + BottomRight: 1536, 512 + HitShape@BOTTOM: + UseOccupiedCellsOffsets: false + Type: Rectangle + TopLeft: -512, 512 + BottomRight: 512, 1536 Armor: Type: building RevealsShroud: @@ -772,6 +823,15 @@ repair_pad: Dimensions: 3,3 Health: HP: 3000 + HitShape: + Type: Rectangle + TopLeft: -1536, -512 + BottomRight: 1536, 512 + HitShape@TOPANDBOTTOM: + UseOccupiedCellsOffsets: false + Type: Rectangle + TopLeft: -512, -1536 + BottomRight: 512, 1536 Armor: Type: building RevealsShroud: @@ -827,6 +887,18 @@ high_tech_factory: Bib: Health: HP: 3500 + HitShape: + UseOccupiedCellsOffsets: false + TargetableOffsets: 0,0,0, -1312,0,0, 0,-1024,0, -1312,-1024,0, 0,1024,0, -1312,1024,0 + Type: Rectangle + TopLeft: -1536, -512 + BottomRight: 1536, 1536 + HitShape@TOP: + UseOccupiedCellsOffsets: false + TargetableOffsets: 1280,0,0 + Type: Rectangle + TopLeft: -512, -1536 + BottomRight: 512, -512 Armor: Type: wood RevealsShroud: @@ -893,6 +965,18 @@ research_centre: Bib: Health: HP: 2500 + HitShape: + UseOccupiedCellsOffsets: false + TargetableOffsets: 0,0,0, -1574,-158,0, 0,-1024,0, -1050,-1024,0, 0,1024,0, -1155,960,0 + Type: Rectangle + TopLeft: -1536, -512 + BottomRight: 1536, 1536 + HitShape@TOP: + UseOccupiedCellsOffsets: false + TargetableOffsets: 1312,0,0 + Type: Rectangle + TopLeft: -512, -1536 + BottomRight: 512, -512 Armor: Type: wood RevealsShroud: @@ -935,6 +1019,20 @@ palace: HasMinibib: True Health: HP: 4000 + HitShape: + Type: Rectangle + TopLeft: -1536, -512 + BottomRight: 1536, 512 + HitShape@TOP: + UseOccupiedCellsOffsets: false + Type: Rectangle + TopLeft: -1536, -1536 + BottomRight: 512, -512 + HitShape@BOTTOM: + UseOccupiedCellsOffsets: false + Type: Rectangle + TopLeft: -512, 512 + BottomRight: 1536, 1536 Armor: Type: wood RevealsShroud: