convert 3tnk to have 1 weapon but a burst of 2

This commit is contained in:
Chris Forbes
2010-04-23 21:18:12 +12:00
parent 3dd343f594
commit c0a851d4be
4 changed files with 4 additions and 3 deletions

View File

@@ -83,6 +83,7 @@ namespace OpenRA.GameRules
public readonly bool Charges = false;
public readonly bool Underwater = false;
public readonly string[] ValidTargets = { "Ground" };
public readonly int BurstDelay = 5;
public IProjectileInfo Projectile;
public List<WarheadInfo> Warheads = new List<WarheadInfo>();

View File

@@ -120,7 +120,6 @@ namespace OpenRA.Traits
if (info.PrimaryWeapon != null && CheckFire(self, unit, info.PrimaryWeapon, ref primaryFireDelay,
info.PrimaryOffset, ref primaryBurst, info.PrimaryLocalOffset))
{
secondaryFireDelay = Math.Max(4, secondaryFireDelay);
primaryRecoil = 1;
return;
}
@@ -159,7 +158,7 @@ namespace OpenRA.Traits
offset.ElementAtOrDefault(3) };
if (--burst > 0)
fireDelay = 5;
fireDelay = weapon.BurstDelay;
else
{
fireDelay = weapon.ROF;

View File

@@ -175,7 +175,6 @@ V2RL:
ROT: 5
AttackTurreted:
PrimaryWeapon: 105mm
SecondaryWeapon: 105mm
Recoil: 3
RenderUnitTurreted:
AutoTarget:

View File

@@ -245,6 +245,8 @@ Grenade:
ROF: 70
Range: 4.75
Report: CANNON1
Burst: 2
BurstDelay: 4
Bullet:
Speed: 40
Image: 120MM