Not exactly what I had in mind, I'll try elaborating
My original offsets were to of been
"turretOffsets":[10, -4.5, 5, 11.5, 10, 4.5, 5,-11.5],
Starting from the middle left barrel to far right barrel, then to middle right barrel and then to far left, and repeat, it didn't work out, as it'll recoil in a right to left fashion while the projectiles were spawned in the method I wanted.
Firing Offset Pattern (projectile spawn)
xOxx
xxxO
xxOx
Oxxx
Ingame Recoil pattern (Sprite Recoil)
xxxO
xxOx
xOxx
Oxxx
Another firing pattern I tried was firing both outer barrels at the same time and then firing the middle 2.
Also unable,
OxxO
xOOx
In the end I had to settle for the only offset that matched the recoil
"turretOffsets":[5,-11.5, 10, -4.5, 10, 4.5, 5, 11.5],
If I used the reverse,
"turretOffsets":[5,11.5, 10, 4.5, 10, -4.5, 5, -11.5],
The projectiles wouldn't match up to the recoil,
Firing Offset Pattern (projectile spawn)
Oxxx
xOxx
xxOx
xxxO
Ingame Recoil pattern (Sprite Recoil)
xxxO
xxOx
xOxx
Oxxx
My only question about the barrel recoil is there any way to have it not always shoot from right to left? Ice if you had a 4 barrel weapon in alternating with only 2 shot burst firing the outer 2 then inner 2, I've tried setting the offsets in the order of how I'd want them to to fire but the recoil does its own thing and decides right to left.
Looking at the heavyac.wpn file, you have:
"hardpointOffsets":[25, -5, 27, 0, 25, 5],
And it fires from right to left.
If you change it to:
"hardpointOffsets":[25, 5, 27, 0, 25, -5],
It will fire from left to right. Just verified it.
I'm not sure if I'm doing this correctly But I just tried it on my own version and the recoil doesn't fire in the correct direction,
"turretOffsets":[20, 5, 22, 0, 20, -5],
"turretAngleOffsets":[0, 0, 0],
"hardpointOffsets":[25, 5, 27, 0, 25, -5],
"hardpointAngleOffsets":[0, 0, 0],
In the screenshots I took (by the way I was getting an OOM*? error every 5-6 screenshots consistently, with and without mods, )
The first barrel to recoil with the new offset doesn't match up,
The right most barrel recoils, but the offset is set to the leftmost barrel,
Spoiler
Firing Offset Pattern (projectile spawn)
Oxx
xOx
xxO
Ingame Recoil pattern (Sprite Recoil)
xxO
xOx
Oxx
Spoiler
Firing Offset Pattern (projectile spawn)
Oxx
xOx
xxO
Ingame Recoil pattern (Sprite Recoil)
xxO
xOx
Oxx
Kudos to the barrel recoil sprite splitting system on my mod weapon, I actually didn't believe it'll split the barrels seeing as there was no spacing between them, Not to bash or anything even with the above, The recoil system is more than I'd of hoped for
Not sure if I got the point across, but this was my best try