Merge pull request #7487 from abcdefg30/changealtitude

Change the plane altitude in ra
This commit is contained in:
Oliver Brakmann
2015-02-28 19:49:39 +01:00
6 changed files with 17 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ namespace OpenRA.Mods.Common.Traits
return WVec.Zero; return WVec.Zero;
return self.World.FindActorsInCircle(self.CenterPosition, info.IdealSeparation) return self.World.FindActorsInCircle(self.CenterPosition, info.IdealSeparation)
.Where(a => !a.IsDead && a.HasTrait<Aircraft>()) .Where(a => !a.IsDead && a.HasTrait<Aircraft>() && a.Info.Traits.Get<AircraftInfo>().CruiseAltitude == info.CruiseAltitude)
.Select(GetRepulsionForce) .Select(GetRepulsionForce)
.Aggregate(WVec.Zero, (a, b) => a + b); .Aggregate(WVec.Zero, (a, b) => a + b);
} }

View File

@@ -168,7 +168,7 @@ namespace OpenRA.Mods.Common.Traits
beacon = new Beacon( beacon = new Beacon(
self.Owner, self.Owner,
target, target - new WVec(0, 0, altitude),
Info.BeaconPalettePrefix, Info.BeaconPalettePrefix,
Info.BeaconPoster, Info.BeaconPoster,
Info.BeaconPosterPalette, Info.BeaconPosterPalette,

View File

@@ -198,7 +198,7 @@ namespace OpenRA.Mods.RA.Traits
beacon = new Beacon( beacon = new Beacon(
self.Owner, self.Owner,
target, target - new WVec(0, 0, altitude),
Info.BeaconPalettePrefix, Info.BeaconPalettePrefix,
Info.BeaconPoster, Info.BeaconPoster,
Info.BeaconPosterPalette, Info.BeaconPosterPalette,

View File

@@ -7,9 +7,11 @@ 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
@@ -43,9 +45,11 @@ 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
LimitedAmmo: LimitedAmmo:
Ammo: 7 Ammo: 7
RenderUnit: RenderUnit:
@@ -95,11 +99,13 @@ 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
@@ -151,11 +157,13 @@ 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
@@ -322,9 +330,11 @@ U2:
Armor: Armor:
Type: Heavy Type: Heavy
Plane: Plane:
CruiseAltitude: 2560
ROT: 7 ROT: 7
Speed: 373 Speed: 373
Repulsable: False Repulsable: False
MaximumPitch: 56
RenderUnit: RenderUnit:
AttackBomber: AttackBomber:
-Selectable: -Selectable:

View File

@@ -148,6 +148,7 @@
Upgrade: invulnerability Upgrade: invulnerability
MustBeDestroyed: MustBeDestroyed:
Parachutable: Parachutable:
FallRate: 26
ParachuteOffset: 0,0,200 ParachuteOffset: 0,0,200
KilledOnImpassableTerrain: true KilledOnImpassableTerrain: true
ParachuteSequence: parach ParachuteSequence: parach
@@ -227,6 +228,7 @@
DeathSound: Zapped DeathSound: Zapped
DeathTypes: 6 DeathTypes: 6
Parachutable: Parachutable:
FallRate: 26
ParachuteOffset: 0,0,427 ParachuteOffset: 0,0,427
KilledOnImpassableTerrain: true KilledOnImpassableTerrain: true
ParachuteSequence: parach ParachuteSequence: parach
@@ -705,6 +707,7 @@
Types: Crate Types: Crate
BodyOrientation: BodyOrientation:
Parachutable: Parachutable:
FallRate: 26
KilledOnImpassableTerrain: false KilledOnImpassableTerrain: false
ParachuteSequence: parach ParachuteSequence: parach
Passenger: Passenger:

View File

@@ -1093,7 +1093,7 @@ ParaBomb:
Report: CHUTE1.AUD Report: CHUTE1.AUD
Projectile: GravityBomb Projectile: GravityBomb
Image: PARABOMB Image: PARABOMB
Velocity: 43 Velocity: 86
Acceleration: 0 Acceleration: 0
Warhead@1Dam: SpreadDamage Warhead@1Dam: SpreadDamage
Spread: 768 Spread: 768