Remove missile TurboBoost

This commit is contained in:
reaperrr
2015-03-10 22:58:05 +01:00
parent 2a4719b88b
commit c92b2298c3
3 changed files with 45 additions and 6 deletions

View File

@@ -42,8 +42,6 @@ namespace OpenRA.Mods.Common.Effects
[Desc("In n/256 per tick.")] [Desc("In n/256 per tick.")]
public readonly int RateOfTurn = 5; public readonly int RateOfTurn = 5;
public readonly int RangeLimit = 0; public readonly int RangeLimit = 0;
[Desc("If fired at aircraft, increase speed by 50%.")]
public readonly bool TurboBoost = false;
public readonly int TrailInterval = 2; public readonly int TrailInterval = 2;
public readonly int ContrailLength = 0; public readonly int ContrailLength = 0;
public readonly Color ContrailColor = Color.White; public readonly Color ContrailColor = Color.White;
@@ -150,8 +148,6 @@ namespace OpenRA.Mods.Common.Effects
facing = OpenRA.Traits.Util.TickFacing(facing, desiredFacing, info.RateOfTurn); facing = OpenRA.Traits.Util.TickFacing(facing, desiredFacing, info.RateOfTurn);
var move = new WVec(0, -1024, 0).Rotate(WRot.FromFacing(facing)) * info.Speed.Range / 1024; var move = new WVec(0, -1024, 0).Rotate(WRot.FromFacing(facing)) * info.Speed.Range / 1024;
if (targetPosition.Z > 0 && info.TurboBoost)
move = (move * 3) / 2;
if (pos.Z != desiredAltitude) if (pos.Z != desiredAltitude)
{ {

View File

@@ -134,6 +134,10 @@ DD:
Weapon: DepthCharge Weapon: DepthCharge
LocalOffset: 0,-100,0, 0,100,0 LocalOffset: 0,-100,0, 0,100,0
LocalYaw: 80, -80 LocalYaw: 80, -80
Armament@TERTIARY:
Weapon: StingerAA
LocalOffset: 0,-100,0, 0,100,0
LocalYaw: 64, -64
AttackTurreted: AttackTurreted:
Selectable: Selectable:
Bounds: 38,38 Bounds: 38,38

View File

@@ -285,7 +285,7 @@ Stinger:
Report: MISSILE6.AUD Report: MISSILE6.AUD
Burst: 2 Burst: 2
BurstDelay: 0 BurstDelay: 0
ValidTargets: Air, Ground, Water ValidTargets: Ground, Water
Projectile: Missile Projectile: Missile
Arm: 3 Arm: 3
Blockable: false Blockable: false
@@ -293,7 +293,6 @@ Stinger:
Image: DRAGON Image: DRAGON
RateOfTurn: 20 RateOfTurn: 20
RangeLimit: 50 RangeLimit: 50
TurboBoost: true
Speed: 170 Speed: 170
Warhead@1Dam: SpreadDamage Warhead@1Dam: SpreadDamage
Spread: 128 Spread: 128
@@ -320,6 +319,46 @@ Stinger:
ImpactSound: splash9.aud ImpactSound: splash9.aud
ValidImpactTypes: Water ValidImpactTypes: Water
StingerAA:
ReloadDelay: 60
Range: 9c0
Report: MISSILE6.AUD
Burst: 2
BurstDelay: 0
ValidTargets: Air
Projectile: Missile
Arm: 3
Blockable: false
ContrailLength: 10
Image: DRAGON
RateOfTurn: 20
RangeLimit: 50
Speed: 255
Warhead@1Dam: SpreadDamage
Spread: 128
Damage: 30
DeathType: 4
ValidTargets: Air, Ground, Water
Versus:
None: 30
Wood: 75
Light: 75
Concrete: 50
Warhead@2Smu: LeaveSmudge
SmudgeType: Crater
Warhead@3Eff: CreateEffect
Explosion: med_explosion
ImpactSound: kaboom25.aud
InvalidImpactTypes: Water, Air, AirHit
Warhead@5EffAir: CreateEffect
Explosion: med_explosion_air
ImpactSound: kaboom25.aud
ValidImpactTypes: Air, AirHit
Warhead@4EffWater: CreateEffect
Explosion: med_splash
ImpactSound: splash9.aud
ValidImpactTypes: Water
TorpTube: TorpTube:
ReloadDelay: 100 ReloadDelay: 100
Range: 9c0 Range: 9c0