From 1b28cb9f60ab7c3a7d46c78e5cc4b839fa8b1ced Mon Sep 17 00:00:00 2001 From: reaperrr Date: Sun, 4 Jun 2017 22:56:55 +0200 Subject: [PATCH] Add TS default hit-shapes --- mods/ts/rules/defaults.yaml | 133 +++++++++++++++++++++++++++++++++--- 1 file changed, 123 insertions(+), 10 deletions(-) diff --git a/mods/ts/rules/defaults.yaml b/mods/ts/rules/defaults.yaml index e5f89c9f32..6ee828bee7 100644 --- a/mods/ts/rules/defaults.yaml +++ b/mods/ts/rules/defaults.yaml @@ -11,6 +11,7 @@ ^SpriteActor: BodyOrientation: UseClassicPerspectiveFudge: False + CameraPitch: 85 QuantizeFacingsFromSequence: AutoSelectionSize: RenderSprites: @@ -153,6 +154,120 @@ ValidTargets: Infantry, Vehicle, Creep, Water, Air, Structure, Defense InvalidTargets: NoAutoTarget +^2x1Shape: + HitShape: + Type: Rectangle + TopLeft: -1024, -512 + BottomRight: 1024, 512 + +^1x2Shape: + HitShape: + Type: Rectangle + TopLeft: -512, -1024 + BottomRight: 512, 1024 + +^2x2Shape: + HitShape: + Type: Rectangle + TopLeft: -1024, -1024 + BottomRight: 1024, 1024 + +^1x3Shape: + HitShape: + Type: Rectangle + TopLeft: -512, -1536 + BottomRight: 512, 1536 + +^3x1Shape: + HitShape: + Type: Rectangle + TopLeft: -1536, -512 + BottomRight: 1536, 512 + +^3x2Shape: + HitShape: + Type: Rectangle + TopLeft: -1536, -1024 + BottomRight: 1536, 1024 + +^2x3Shape: + HitShape: + Type: Rectangle + TopLeft: -1024, -1536 + BottomRight: 1024, 1536 + +^3x3Shape: + HitShape: + Type: Rectangle + TopLeft: -1536, -1536 + BottomRight: 1536, 1536 + +^2x4Shape: + HitShape: + Type: Rectangle + TopLeft: -1024, -2048 + BottomRight: 1024, 2048 + +^4x2Shape: + HitShape: + Type: Rectangle + TopLeft: -2048, -1024 + BottomRight: 2048, 1024 + +^3x4Shape: + HitShape: + Type: Rectangle + TopLeft: -1536, -2048 + BottomRight: 1536, 2048 + +^4x3FactoryWithBibShape: + HitShape: + Type: Rectangle + TopLeft: -2048, -1536 + BottomRight: 1024, 1536 + +^4x3Shape: + HitShape: + Type: Rectangle + TopLeft: -2048, -1536 + BottomRight: 2048, 1536 + +^4x4Shape: + HitShape: + Type: Rectangle + TopLeft: -2048, -2048 + BottomRight: 2048, 2048 + +^3x5Shape: + HitShape: + Type: Rectangle + TopLeft: -1536, -2560 + BottomRight: 1536, 2560 + +^5x3Shape: + HitShape: + Type: Rectangle + TopLeft: -2560, -1536 + BottomRight: 2560, 1536 + +^2x5Shape: + HitShape: + Type: Rectangle + TopLeft: -1024, -2560 + BottomRight: 1024, 2560 + +^2x6Shape: + HitShape: + Type: Rectangle + TopLeft: -1024, -3072 + BottomRight: 1024, 3072 + +^6x4Shape: + HitShape: + Type: Rectangle + TopLeft: -3072, -2048 + BottomRight: 3072, 2048 + ^BasicBuilding: Inherits@1: ^ExistsInWorld Inherits@2: ^SpriteActor @@ -166,7 +281,11 @@ Targetable: TargetTypes: Ground, Building, C4 HitShape: - UseOccupiedCellsOffsets: true + UseTargetableCellsOffsets: true + Type: Rectangle + LocalYaw: -128 + TopLeft: -512, -512 + BottomRight: 512, 512 Building: Dimensions: 1,1 Footprint: x @@ -994,7 +1113,7 @@ Description: Automated barrier that opens for allied units. HitShape: Type: Rectangle - LocalYaw: 128 + LocalYaw: -128 TopLeft: -512, -512 BottomRight: 512, 512 VerticalTopOffset: 768 @@ -1003,6 +1122,7 @@ ^Gate_A: Inherits: ^Gate + Inherits@shape: ^3x1Shape Health: Gate: Dimensions: 3,1 @@ -1011,13 +1131,10 @@ WallConnections: -1,0, 3,0 LineBuildNode: Connections: -1,0, 1,0 - HitShape: - Type: Rectangle - TopLeft: -512, -1536 - BottomRight: 512, 1536 ^Gate_B: Inherits: ^Gate + Inherits@shape: ^1x3Shape Health: Gate: Dimensions: 1,3 @@ -1026,10 +1143,6 @@ WallConnections: 0,-1, 0,3 LineBuildNode: Connections: 0,-1, 0,1 - HitShape: - Type: Rectangle - TopLeft: -1536, -512 - BottomRight: 1536, 512 ^HealsOnTiberium: DamagedByTerrain: