Disable local -> world offset hack in TS.
This commit is contained in:
@@ -20,8 +20,15 @@ namespace OpenRA.Traits
|
|||||||
[Desc("Camera pitch for rotation calculations")]
|
[Desc("Camera pitch for rotation calculations")]
|
||||||
public readonly WAngle CameraPitch = WAngle.FromDegrees(40);
|
public readonly WAngle CameraPitch = WAngle.FromDegrees(40);
|
||||||
|
|
||||||
|
[Desc("Fudge the coordinate system angles like the early games.")]
|
||||||
|
public readonly bool UseClassicPerspectiveFudge = true;
|
||||||
|
|
||||||
public WVec LocalToWorld(WVec vec)
|
public WVec LocalToWorld(WVec vec)
|
||||||
{
|
{
|
||||||
|
// Rotate by 90 degrees
|
||||||
|
if (!UseClassicPerspectiveFudge)
|
||||||
|
return new WVec(vec.Y, -vec.X, vec.Z);
|
||||||
|
|
||||||
// RA's 2d perspective doesn't correspond to an orthonormal 3D
|
// RA's 2d perspective doesn't correspond to an orthonormal 3D
|
||||||
// coordinate system, so fudge the y axis to make things look good
|
// coordinate system, so fudge the y axis to make things look good
|
||||||
return new WVec(vec.Y, -CameraPitch.Sin() * vec.X / 1024, vec.Z);
|
return new WVec(vec.Y, -CameraPitch.Sin() * vec.X / 1024, vec.Z);
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
CombatDebugOverlay:
|
CombatDebugOverlay:
|
||||||
GivesExperience:
|
GivesExperience:
|
||||||
BodyOrientation:
|
BodyOrientation:
|
||||||
|
UseClassicPerspectiveFudge: False
|
||||||
ScriptTriggers:
|
ScriptTriggers:
|
||||||
UpgradeManager:
|
UpgradeManager:
|
||||||
Huntable:
|
Huntable:
|
||||||
@@ -172,6 +173,7 @@
|
|||||||
SellSounds: cashturn.aud
|
SellSounds: cashturn.aud
|
||||||
UpdatesPlayerStatistics:
|
UpdatesPlayerStatistics:
|
||||||
BodyOrientation:
|
BodyOrientation:
|
||||||
|
UseClassicPerspectiveFudge: False
|
||||||
Demolishable:
|
Demolishable:
|
||||||
ScriptTriggers:
|
ScriptTriggers:
|
||||||
UpgradeManager:
|
UpgradeManager:
|
||||||
@@ -519,6 +521,7 @@
|
|||||||
RadarColorFromTerrain:
|
RadarColorFromTerrain:
|
||||||
Terrain: Tiberium
|
Terrain: Tiberium
|
||||||
BodyOrientation:
|
BodyOrientation:
|
||||||
|
UseClassicPerspectiveFudge: False
|
||||||
FrozenUnderFog:
|
FrozenUnderFog:
|
||||||
StartsRevealed: true
|
StartsRevealed: true
|
||||||
SeedsResource:
|
SeedsResource:
|
||||||
@@ -537,6 +540,7 @@
|
|||||||
Dimensions: 1, 1
|
Dimensions: 1, 1
|
||||||
AppearsOnRadar:
|
AppearsOnRadar:
|
||||||
BodyOrientation:
|
BodyOrientation:
|
||||||
|
UseClassicPerspectiveFudge: False
|
||||||
Tooltip:
|
Tooltip:
|
||||||
Name: Tree
|
Name: Tree
|
||||||
|
|
||||||
@@ -551,6 +555,7 @@
|
|||||||
Dimensions: 1, 1
|
Dimensions: 1, 1
|
||||||
AppearsOnRadar:
|
AppearsOnRadar:
|
||||||
BodyOrientation:
|
BodyOrientation:
|
||||||
|
UseClassicPerspectiveFudge: False
|
||||||
Tooltip:
|
Tooltip:
|
||||||
Name: Rock
|
Name: Rock
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user