Skip to content

Commit

Permalink
TESTCASE: Yak strafing.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote committed Dec 31, 2019
1 parent 6affe03 commit 212a5ce
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
11 changes: 6 additions & 5 deletions mods/ra/rules/aircraft.yaml
Expand Up @@ -169,19 +169,20 @@ YAK:
Range: 9c0
Type: GroundPosition
Armament@PRIMARY:
Weapon: ChainGun.Yak
Weapon: ChainGun.Yak.Left
LocalOffset: 256,-213,0
MuzzleSequence: muzzle
PauseOnCondition: !ammo
Armament@SECONDARY:
Name: secondary
Weapon: ChainGun.Yak
Weapon: ChainGun.Yak.Right
LocalOffset: 256,213,0
MuzzleSequence: muzzle
PauseOnCondition: !ammo
AttackAircraft:
FacingTolerance: 20
PersistentTargeting: false
AttackType: Strafe
Aircraft:
CruiseAltitude: 2560
InitialFacing: 192
Expand All @@ -193,9 +194,9 @@ YAK:
InitialStance: HoldFire
InitialStanceAI: HoldFire
AmmoPool:
Ammo: 18
PipCount: 6
ReloadDelay: 11
Ammo: 30
PipCount: 5
ReloadDelay: 10
AmmoCondition: ammo
SelectionDecorations:
WithMuzzleOverlay:
Expand Down
14 changes: 11 additions & 3 deletions mods/ra/weapons/smallcaliber.yaml
Expand Up @@ -217,11 +217,15 @@ ChainGun:
Versus:
None: 144

ChainGun.Yak:
ChainGun.Yak.Left:
Inherits: ^HeavyMG
ReloadDelay: 3
Burst: 5
FirstBurstTargetOffset: -1068,-213,0
FollowingBurstTargetOffset: 534,0,0
TargetActorCenter: true
BurstDelays: 3
ReloadDelay: 20
Range: 5c0
MinRange: 3c0
Projectile: Bullet
Blockable: false
Warhead@1Dam: SpreadDamage
Expand All @@ -233,6 +237,10 @@ ChainGun.Yak:
Heavy: 25
Concrete: 25

ChainGun.Yak.Right:
Inherits: ChainGun.Yak.Left
FirstBurstTargetOffset: -1068,213,0

Pistol:
Inherits: ^LightMG
ReloadDelay: 7
Expand Down

0 comments on commit 212a5ce

Please sign in to comment.