From 6212b82f6d473f624d6aafcfc1ae4970196901d2 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Sat, 17 Jun 2017 16:33:01 +0200 Subject: [PATCH] Use strafing for RA Yak This is done by modifying the target offset by a value matching the Yak's speed * BurstDelay, to sync the offsets with the actor speed. --- mods/ra/rules/aircraft.yaml | 4 ++-- mods/ra/weapons/smallcaliber.yaml | 16 ++++++++++++---- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/mods/ra/rules/aircraft.yaml b/mods/ra/rules/aircraft.yaml index fa23c7add8..3b0447f463 100644 --- a/mods/ra/rules/aircraft.yaml +++ b/mods/ra/rules/aircraft.yaml @@ -164,12 +164,12 @@ YAK: Range: 9c0 Type: GroundPosition Armament@PRIMARY: - Weapon: ChainGun.Yak + Weapon: ChainGun.Yak.Left LocalOffset: 256,-213,0 MuzzleSequence: muzzle Armament@SECONDARY: Name: secondary - Weapon: ChainGun.Yak + Weapon: ChainGun.Yak.Right LocalOffset: 256,213,0 MuzzleSequence: muzzle AttackPlane: diff --git a/mods/ra/weapons/smallcaliber.yaml b/mods/ra/weapons/smallcaliber.yaml index 7aae0fd21c..73af355121 100644 --- a/mods/ra/weapons/smallcaliber.yaml +++ b/mods/ra/weapons/smallcaliber.yaml @@ -201,16 +201,24 @@ ChainGun: Versus: None: 120 -ChainGun.Yak: +ChainGun.Yak.Right: Inherits: ^HeavyMG - ReloadDelay: 3 - Range: 5c0 - MinRange: 3c0 + Burst: 5 + FirstBurstTargetOffset: -684,213,0 + FollowingBurstTargetOffset: 342,0,0 + BurstDelay: 2 + ReloadDelay: 10 + Range: 5c6 + MinRange: 3c420 Projectile: Bullet Blockable: false Warhead@1Dam: SpreadDamage Damage: 40 +ChainGun.Yak.Left: + Inherits: ChainGun.Yak.Right + FirstBurstTargetOffset: -684,-213,0 + Pistol: Inherits: ^LightMG ReloadDelay: 7