convert 3tnk to have 1 weapon but a burst of 2
This commit is contained in:
@@ -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>();
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -175,7 +175,6 @@ V2RL:
|
||||
ROT: 5
|
||||
AttackTurreted:
|
||||
PrimaryWeapon: 105mm
|
||||
SecondaryWeapon: 105mm
|
||||
Recoil: 3
|
||||
RenderUnitTurreted:
|
||||
AutoTarget:
|
||||
|
||||
@@ -245,6 +245,8 @@ Grenade:
|
||||
ROF: 70
|
||||
Range: 4.75
|
||||
Report: CANNON1
|
||||
Burst: 2
|
||||
BurstDelay: 4
|
||||
Bullet:
|
||||
Speed: 40
|
||||
Image: 120MM
|
||||
|
||||
Reference in New Issue
Block a user