Update TS LocalOffsets for new coordinate system.
This commit is contained in:
@@ -636,9 +636,21 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (engineVersion < 20170507)
|
if (engineVersion < 20170507)
|
||||||
|
{
|
||||||
if (node.Key == "Offset" && parent.Key.StartsWith("WithHarvestOverlay", StringComparison.Ordinal))
|
if (node.Key == "Offset" && parent.Key.StartsWith("WithHarvestOverlay", StringComparison.Ordinal))
|
||||||
RenameNodeKey(node, "LocalOffset");
|
RenameNodeKey(node, "LocalOffset");
|
||||||
|
|
||||||
|
if (node.Key == "LocalOffset")
|
||||||
|
{
|
||||||
|
var orig = FieldLoader.GetValue<WVec[]>(node.Key, node.Value.Value);
|
||||||
|
var scaled = orig.Select(o => FieldSaver.FormatValue(new WVec(
|
||||||
|
(int)Math.Round(Math.Sqrt(2) * o.X),
|
||||||
|
(int)Math.Round(Math.Sqrt(2) * o.Y),
|
||||||
|
(int)Math.Round(Math.Sqrt(2) * o.Z))));
|
||||||
|
node.Value.Value = scaled.JoinWith(", ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
UpgradeActorRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
|
UpgradeActorRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ TRNSPORT:
|
|||||||
MoveIntoShroud: false
|
MoveIntoShroud: false
|
||||||
Carryall:
|
Carryall:
|
||||||
Voice: Move
|
Voice: Move
|
||||||
LocalOffset: 0, 0, -224
|
LocalOffset: 0,0,-317
|
||||||
Health:
|
Health:
|
||||||
HP: 175
|
HP: 175
|
||||||
Armor:
|
Armor:
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ WEEDGUY:
|
|||||||
CrushSound: squishy2.aud
|
CrushSound: squishy2.aud
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: FireballLauncher
|
Weapon: FireballLauncher
|
||||||
LocalOffset: 224,0,320
|
LocalOffset: 317,0,453
|
||||||
TakeCover:
|
TakeCover:
|
||||||
ProneOffset: 128,0,-320
|
ProneOffset: 128,0,-320
|
||||||
AttackFrontal:
|
AttackFrontal:
|
||||||
|
|||||||
@@ -22,12 +22,12 @@
|
|||||||
TurnSpeed: 3
|
TurnSpeed: 3
|
||||||
Armament@PRIMARY:
|
Armament@PRIMARY:
|
||||||
Weapon: 120mmx
|
Weapon: 120mmx
|
||||||
LocalOffset: 500,60,360, 500,-85,360
|
LocalOffset: 707,85,509, 707,-120,509
|
||||||
MuzzleSequence: muzzle
|
MuzzleSequence: muzzle
|
||||||
MuzzlePalette: effect-ignore-lighting
|
MuzzlePalette: effect-ignore-lighting
|
||||||
Armament@SECONDARY:
|
Armament@SECONDARY:
|
||||||
Weapon: MammothTusk
|
Weapon: MammothTusk
|
||||||
LocalOffset: 0,200,410, 0,-200,410
|
LocalOffset: 0,283,580, 0,-283,580
|
||||||
AttackTurreted:
|
AttackTurreted:
|
||||||
Voice: Attack
|
Voice: Attack
|
||||||
AutoTarget:
|
AutoTarget:
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ E2:
|
|||||||
Speed: 56
|
Speed: 56
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: Grenade
|
Weapon: Grenade
|
||||||
LocalOffset: 0,0,555
|
LocalOffset: 0,0,785
|
||||||
FireDelay: 5
|
FireDelay: 5
|
||||||
TakeCover:
|
TakeCover:
|
||||||
ProneOffset: 160,128,-555
|
ProneOffset: 160,128,-555
|
||||||
@@ -204,7 +204,7 @@ GHOST:
|
|||||||
Range: 6c0
|
Range: 6c0
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: LtRail
|
Weapon: LtRail
|
||||||
LocalOffset: 85,0,384
|
LocalOffset: 120,0,543
|
||||||
TakeCover:
|
TakeCover:
|
||||||
ProneOffset: 256,32,-384
|
ProneOffset: 256,32,-384
|
||||||
Crushable:
|
Crushable:
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ GACTWR:
|
|||||||
Armament@VULCPRIMARY:
|
Armament@VULCPRIMARY:
|
||||||
RequiresCondition: tower.vulcan
|
RequiresCondition: tower.vulcan
|
||||||
Weapon: VulcanTower
|
Weapon: VulcanTower
|
||||||
LocalOffset: 416,85,960
|
LocalOffset: 588,120,1358
|
||||||
MuzzleSequence: muzzle
|
MuzzleSequence: muzzle
|
||||||
MuzzlePalette: effect-ignore-lighting
|
MuzzlePalette: effect-ignore-lighting
|
||||||
MuzzleSplitFacings: 8
|
MuzzleSplitFacings: 8
|
||||||
@@ -101,18 +101,18 @@ GACTWR:
|
|||||||
RequiresCondition: tower.vulcan
|
RequiresCondition: tower.vulcan
|
||||||
Name: secondary
|
Name: secondary
|
||||||
Weapon: VulcanTower
|
Weapon: VulcanTower
|
||||||
LocalOffset: 416,-85,960
|
LocalOffset: 588,-120,1358
|
||||||
MuzzleSequence: muzzle
|
MuzzleSequence: muzzle
|
||||||
MuzzlePalette: effect-ignore-lighting
|
MuzzlePalette: effect-ignore-lighting
|
||||||
MuzzleSplitFacings: 8
|
MuzzleSplitFacings: 8
|
||||||
Armament@ROCKET:
|
Armament@ROCKET:
|
||||||
RequiresCondition: tower.rocket
|
RequiresCondition: tower.rocket
|
||||||
Weapon: RPGTower
|
Weapon: RPGTower
|
||||||
LocalOffset: 192,-65,1056
|
LocalOffset: 272,-92,1493
|
||||||
Armament@SAM:
|
Armament@SAM:
|
||||||
RequiresCondition: tower.sam
|
RequiresCondition: tower.sam
|
||||||
Weapon: RedEye2
|
Weapon: RedEye2
|
||||||
LocalOffset: 384,0,1200
|
LocalOffset: 543,0,1697
|
||||||
WithMuzzleOverlay:
|
WithMuzzleOverlay:
|
||||||
RequiresCondition: tower.vulcan
|
RequiresCondition: tower.vulcan
|
||||||
WithIdleOverlay@LIGHTS:
|
WithIdleOverlay@LIGHTS:
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ HVR:
|
|||||||
MaxHeightDelta: 3
|
MaxHeightDelta: 3
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: HoverMissile
|
Weapon: HoverMissile
|
||||||
LocalOffset: 0,171,384, 0,-171,384
|
LocalOffset: 0,242,543, 0,-242,543
|
||||||
Turreted:
|
Turreted:
|
||||||
TurnSpeed: 7
|
TurnSpeed: 7
|
||||||
Offset: -128,0,85
|
Offset: -128,0,85
|
||||||
@@ -188,16 +188,16 @@ MMCH:
|
|||||||
MuzzlePalette: effect-ignore-lighting
|
MuzzlePalette: effect-ignore-lighting
|
||||||
Recoil: 128
|
Recoil: 128
|
||||||
RecoilRecovery: 32
|
RecoilRecovery: 32
|
||||||
LocalOffset: 640, 192, 832
|
LocalOffset: 905,272,1177
|
||||||
WithMuzzleOverlay:
|
WithMuzzleOverlay:
|
||||||
RenderVoxels:
|
RenderVoxels:
|
||||||
WithVoxelBarrel:
|
WithVoxelBarrel:
|
||||||
LocalOffset: -64, 64, 256
|
LocalOffset: -91,91,362
|
||||||
AutoTarget:
|
AutoTarget:
|
||||||
Selectable:
|
Selectable:
|
||||||
Bounds: 30, 42, 0, -8
|
Bounds: 30, 42, 0, -8
|
||||||
Carryable:
|
Carryable:
|
||||||
LocalOffset: 0, 0, 408
|
LocalOffset: 0,0,577
|
||||||
|
|
||||||
HMEC:
|
HMEC:
|
||||||
Inherits: ^Tank
|
Inherits: ^Tank
|
||||||
@@ -231,17 +231,17 @@ HMEC:
|
|||||||
AutoTarget:
|
AutoTarget:
|
||||||
Armament@MISSILES:
|
Armament@MISSILES:
|
||||||
Weapon: MammothTusk
|
Weapon: MammothTusk
|
||||||
LocalOffset: -172,-260,854, -172,260,854
|
LocalOffset: -243,-368,1208, -243,368,1208
|
||||||
Armament@RAILGUN:
|
Armament@RAILGUN:
|
||||||
Weapon: MechRailgun
|
Weapon: MechRailgun
|
||||||
LocalOffset: 260,-220,728, 260,220,728
|
LocalOffset: 368,-311,1030, 368,311,1030
|
||||||
-WithVoxelBody:
|
-WithVoxelBody:
|
||||||
WithVoxelWalkerBody:
|
WithVoxelWalkerBody:
|
||||||
TickRate: 1
|
TickRate: 1
|
||||||
Selectable:
|
Selectable:
|
||||||
Bounds: 40, 40, 0, -8
|
Bounds: 40, 40, 0, -8
|
||||||
Carryable:
|
Carryable:
|
||||||
LocalOffset: 0, 0, 360
|
LocalOffset: 0,0,509
|
||||||
|
|
||||||
SONIC:
|
SONIC:
|
||||||
Inherits: ^Tank
|
Inherits: ^Tank
|
||||||
@@ -272,7 +272,7 @@ SONIC:
|
|||||||
MaxHeightDelta: 3
|
MaxHeightDelta: 3
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: SonicZap
|
Weapon: SonicZap
|
||||||
LocalOffset: -50,0,410
|
LocalOffset: -71,0,580
|
||||||
AttackTurreted:
|
AttackTurreted:
|
||||||
Voice: Attack
|
Voice: Attack
|
||||||
Turreted:
|
Turreted:
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ E3:
|
|||||||
Speed: 42
|
Speed: 42
|
||||||
Armament@PRIMARY:
|
Armament@PRIMARY:
|
||||||
Weapon: Bazooka
|
Weapon: Bazooka
|
||||||
LocalOffset: 252,0,684
|
LocalOffset: 356,0,967
|
||||||
TakeCover:
|
TakeCover:
|
||||||
ProneOffset: 52,64,-652
|
ProneOffset: 52,64,-652
|
||||||
AttackFrontal:
|
AttackFrontal:
|
||||||
@@ -90,7 +90,7 @@ CYC2:
|
|||||||
Range: 7c0
|
Range: 7c0
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: CyCannon
|
Weapon: CyCannon
|
||||||
LocalOffset: 170,85,683
|
LocalOffset: 240,120,966
|
||||||
AttackFrontal:
|
AttackFrontal:
|
||||||
Voice: Attack
|
Voice: Attack
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ NALASR:
|
|||||||
AttackTurreted:
|
AttackTurreted:
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: TurretLaserFire
|
Weapon: TurretLaserFire
|
||||||
LocalOffset: 352, 0, 224
|
LocalOffset: 498,0,317
|
||||||
RenderVoxels:
|
RenderVoxels:
|
||||||
WithVoxelTurret:
|
WithVoxelTurret:
|
||||||
Power:
|
Power:
|
||||||
@@ -211,7 +211,7 @@ NAOBEL:
|
|||||||
Range: 8c0
|
Range: 8c0
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: ObeliskLaserFire
|
Weapon: ObeliskLaserFire
|
||||||
LocalOffset: 1400,210,800
|
LocalOffset: 1980,297,1131
|
||||||
AttackCharges:
|
AttackCharges:
|
||||||
ChargeLevel: 65
|
ChargeLevel: 65
|
||||||
ChargingCondition: charging
|
ChargingCondition: charging
|
||||||
@@ -261,7 +261,7 @@ NASAM:
|
|||||||
Recoils: false
|
Recoils: false
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: RedEye2
|
Weapon: RedEye2
|
||||||
LocalOffset: 384,0,576
|
LocalOffset: 543,0,815
|
||||||
Power:
|
Power:
|
||||||
Amount: -30
|
Amount: -30
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ BGGY:
|
|||||||
MaxHeightDelta: 3
|
MaxHeightDelta: 3
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: RaiderCannon
|
Weapon: RaiderCannon
|
||||||
LocalOffset: 0,-43,384, 0,43,384
|
LocalOffset: 0,-61,543, 0,61,543
|
||||||
MuzzleSequence: muzzle
|
MuzzleSequence: muzzle
|
||||||
MuzzlePalette: effect-ignore-lighting
|
MuzzlePalette: effect-ignore-lighting
|
||||||
MuzzleSplitFacings: 8
|
MuzzleSplitFacings: 8
|
||||||
@@ -62,11 +62,11 @@ BIKE:
|
|||||||
Armament@PRIMARY:
|
Armament@PRIMARY:
|
||||||
Weapon: BikeMissile
|
Weapon: BikeMissile
|
||||||
RequiresCondition: !rank-elite
|
RequiresCondition: !rank-elite
|
||||||
LocalOffset: -108,-144,360, -108,144,360
|
LocalOffset: -153,-204,509, -153,204,509
|
||||||
Armament@ELITE:
|
Armament@ELITE:
|
||||||
Weapon: HoverMissile
|
Weapon: HoverMissile
|
||||||
RequiresCondition: rank-elite
|
RequiresCondition: rank-elite
|
||||||
LocalOffset: -108,-144,360, -108,144,360
|
LocalOffset: -153,-204,509, -153,204,509
|
||||||
AttackFrontal:
|
AttackFrontal:
|
||||||
Voice: Attack
|
Voice: Attack
|
||||||
AutoTarget:
|
AutoTarget:
|
||||||
@@ -100,13 +100,13 @@ TTNK:
|
|||||||
RequiresCondition: undeployed
|
RequiresCondition: undeployed
|
||||||
Armament@PRIMARY:
|
Armament@PRIMARY:
|
||||||
Weapon: 90mm
|
Weapon: 90mm
|
||||||
LocalOffset: 288,0,256
|
LocalOffset: 407,0,362
|
||||||
RequiresCondition: !rank-elite
|
RequiresCondition: !rank-elite
|
||||||
MuzzleSequence: muzzle
|
MuzzleSequence: muzzle
|
||||||
MuzzlePalette: effect-ignore-lighting
|
MuzzlePalette: effect-ignore-lighting
|
||||||
Armament@ELITE:
|
Armament@ELITE:
|
||||||
Weapon: 120mmx
|
Weapon: 120mmx
|
||||||
LocalOffset: 288,0,256
|
LocalOffset: 407,0,362
|
||||||
RequiresCondition: rank-elite
|
RequiresCondition: rank-elite
|
||||||
MuzzleSequence: muzzle
|
MuzzleSequence: muzzle
|
||||||
MuzzlePalette: effect-ignore-lighting
|
MuzzlePalette: effect-ignore-lighting
|
||||||
@@ -142,7 +142,7 @@ TTNK:
|
|||||||
RealignDelay: -1
|
RealignDelay: -1
|
||||||
WithVoxelBarrel:
|
WithVoxelBarrel:
|
||||||
Armament: deployed
|
Armament: deployed
|
||||||
LocalOffset: 128, 0, 256
|
LocalOffset: 181,0,362
|
||||||
RequiresCondition: deployed
|
RequiresCondition: deployed
|
||||||
WithVoxelTurret@deployed:
|
WithVoxelTurret@deployed:
|
||||||
Turret: deployed
|
Turret: deployed
|
||||||
@@ -155,7 +155,7 @@ TTNK:
|
|||||||
Name: deployed
|
Name: deployed
|
||||||
Turret: deployed
|
Turret: deployed
|
||||||
Weapon: 90mm
|
Weapon: 90mm
|
||||||
LocalOffset: 384,0,256
|
LocalOffset: 543,0,362
|
||||||
RequiresCondition: !rank-elite
|
RequiresCondition: !rank-elite
|
||||||
MuzzleSequence: muzzle
|
MuzzleSequence: muzzle
|
||||||
MuzzlePalette: effect-ignore-lighting
|
MuzzlePalette: effect-ignore-lighting
|
||||||
@@ -163,7 +163,7 @@ TTNK:
|
|||||||
Name: deployed
|
Name: deployed
|
||||||
Turret: deployed
|
Turret: deployed
|
||||||
Weapon: 120mmx
|
Weapon: 120mmx
|
||||||
LocalOffset: 384,0,256
|
LocalOffset: 543,0,362
|
||||||
RequiresCondition: rank-elite
|
RequiresCondition: rank-elite
|
||||||
MuzzleSequence: muzzle
|
MuzzleSequence: muzzle
|
||||||
MuzzlePalette: effect-ignore-lighting
|
MuzzlePalette: effect-ignore-lighting
|
||||||
@@ -233,7 +233,7 @@ ART2:
|
|||||||
RealignDelay: -1
|
RealignDelay: -1
|
||||||
WithVoxelBarrel:
|
WithVoxelBarrel:
|
||||||
Armament: deployed
|
Armament: deployed
|
||||||
LocalOffset: 0,0,-256
|
LocalOffset: 0,0,-362
|
||||||
RequiresCondition: deployed
|
RequiresCondition: deployed
|
||||||
WithVoxelTurret@deployed:
|
WithVoxelTurret@deployed:
|
||||||
Turret: deployed
|
Turret: deployed
|
||||||
@@ -246,7 +246,7 @@ ART2:
|
|||||||
Name: deployed
|
Name: deployed
|
||||||
Turret: deployed
|
Turret: deployed
|
||||||
Weapon: 155mm
|
Weapon: 155mm
|
||||||
LocalOffset: 811,0,0
|
LocalOffset: 1147,0,0
|
||||||
RequiresCondition: deployed
|
RequiresCondition: deployed
|
||||||
MuzzleSequence: muzzle
|
MuzzleSequence: muzzle
|
||||||
MuzzlePalette: effect-ignore-lighting
|
MuzzlePalette: effect-ignore-lighting
|
||||||
@@ -456,7 +456,7 @@ STNK:
|
|||||||
ValidDamageStates: Critical
|
ValidDamageStates: Critical
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: Dragon
|
Weapon: Dragon
|
||||||
LocalOffset: 213,43,298, 213,-43,298
|
LocalOffset: 301,61,421, 301,-61,421
|
||||||
AttackFrontal:
|
AttackFrontal:
|
||||||
Voice: Attack
|
Voice: Attack
|
||||||
AutoTarget:
|
AutoTarget:
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ NAPULS:
|
|||||||
AttackTurreted:
|
AttackTurreted:
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: EMPulseCannon
|
Weapon: EMPulseCannon
|
||||||
LocalOffset: 150,0,1250
|
LocalOffset: 212,0,1768
|
||||||
LocalYaw: 0,100
|
LocalYaw: 0,100
|
||||||
WithSpriteTurret:
|
WithSpriteTurret:
|
||||||
Sequence: turret
|
Sequence: turret
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ HARV:
|
|||||||
Explodes:
|
Explodes:
|
||||||
Weapon: TiberiumExplosion
|
Weapon: TiberiumExplosion
|
||||||
WithHarvestOverlay:
|
WithHarvestOverlay:
|
||||||
LocalOffset: 384,0,0
|
LocalOffset: 543,0,0
|
||||||
Palette: effect
|
Palette: effect
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
VisualBounds: 36,36
|
VisualBounds: 36,36
|
||||||
|
|||||||
Reference in New Issue
Block a user