Lower aircraft altitude

In order to work around a problem where the game does not take aircrafts' altitude into account when deciding whether a unit should be rendered or not, leading to aircrafts seemingly (dis)appearing a couple of cells into the map instead of right at the lower edge of the map.

Planes will now fly at the default altitude of 1280, helicopters slightly below at 1024.
This commit is contained in:
Oliver Brakmann
2015-04-03 16:15:07 +02:00
parent cedfe5c0b5
commit d53cfafde9

View File

@@ -7,11 +7,9 @@ BADR:
Armor: Armor:
Type: Light Type: Light
Plane: Plane:
CruiseAltitude: 2560
ROT: 5 ROT: 5
Speed: 149 Speed: 149
Repulsable: False Repulsable: False
MaximumPitch: 56
RenderUnit: RenderUnit:
Cargo: Cargo:
MaxWeight: 10 MaxWeight: 10
@@ -46,11 +44,9 @@ BADR.Bomber:
Armor: Armor:
Type: Light Type: Light
Plane: Plane:
CruiseAltitude: 2560
ROT: 5 ROT: 5
Speed: 149 Speed: 149
Repulsable: False Repulsable: False
MaximumPitch: 56
AmmoPool: AmmoPool:
Ammo: 7 Ammo: 7
RenderUnit: RenderUnit:
@@ -100,13 +96,11 @@ MIG:
AttackPlane: AttackPlane:
FacingTolerance: 20 FacingTolerance: 20
Plane: Plane:
CruiseAltitude: 2560
InitialFacing: 192 InitialFacing: 192
ROT: 4 ROT: 4
Speed: 223 Speed: 223
RearmBuildings: afld RearmBuildings: afld
RepulsionSpeed: 40 RepulsionSpeed: 40
MaximumPitch: 56
AutoTarget: AutoTarget:
TargetWhenIdle: false TargetWhenIdle: false
TargetWhenDamaged: false TargetWhenDamaged: false
@@ -158,13 +152,11 @@ YAK:
AttackPlane: AttackPlane:
FacingTolerance: 20 FacingTolerance: 20
Plane: Plane:
CruiseAltitude: 2560
RearmBuildings: afld RearmBuildings: afld
InitialFacing: 192 InitialFacing: 192
ROT: 4 ROT: 4
Speed: 178 Speed: 178
RepulsionSpeed: 40 RepulsionSpeed: 40
MaximumPitch: 56
AutoTarget: AutoTarget:
TargetWhenIdle: false TargetWhenIdle: false
TargetWhenDamaged: false TargetWhenDamaged: false
@@ -206,6 +198,7 @@ TRAN:
RevealsShroud: RevealsShroud:
Range: 12c0 Range: 12c0
Helicopter: Helicopter:
CruiseAltitude: 1024
RearmBuildings: hpad RearmBuildings: hpad
InitialFacing: 0 InitialFacing: 0
ROT: 5 ROT: 5
@@ -254,6 +247,7 @@ HELI:
AttackHeli: AttackHeli:
FacingTolerance: 20 FacingTolerance: 20
Helicopter: Helicopter:
CruiseAltitude: 1024
RearmBuildings: hpad RearmBuildings: hpad
LandWhenIdle: false LandWhenIdle: false
InitialFacing: 20 InitialFacing: 20
@@ -303,6 +297,7 @@ HIND:
AttackHeli: AttackHeli:
FacingTolerance: 20 FacingTolerance: 20
Helicopter: Helicopter:
CruiseAltitude: 1024
RearmBuildings: hpad RearmBuildings: hpad
LandWhenIdle: false LandWhenIdle: false
InitialFacing: 20 InitialFacing: 20
@@ -331,7 +326,6 @@ U2:
Armor: Armor:
Type: Heavy Type: Heavy
Plane: Plane:
CruiseAltitude: 2560
ROT: 7 ROT: 7
Speed: 373 Speed: 373
Repulsable: False Repulsable: False