Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: zookeeper on September 11, 2011, 04:46:06 am

Title: Quad turret firing in pairs [solved]
Post by: zookeeper on September 11, 2011, 04:46:06 am
For the Falcon (http://www.hard-light.net/forums/index.php?topic=76044.0), I'm trying to make a turret with 4 firepoints which would fire in pairs. That is, firepoints 1 and 2 would fire at the same time, followed by 3 and 4 at the same time, then 1 and 2 again, and so on. So far, I've been unable to find a way to do this, here's what I've tried:

When I use $Shots: 2, that doesn't make two shots be fired at the same time; the firing delay still occurs between them.

When I use $Burst Shots: 2, the shots will not be fired during the same frame; the second shot of the burst will always be delayed at least to the next frame no matter how small a $Burst Delay is used, which means that the shots will only seem to fire in pairs when the fps stays high enough.

Has anyone successfully done a similar turret before? I realize it's possible to script this, but I really really don't want to do something that hacky unless there's no other alternative.

P.S. Please don't suggest putting two shots on one bitmap.

EDIT: Solved. Fixing a $Shots-related bug allowed this to be done by simply using $Shots: 2 on a simple quad-firepointed turret. (http://www.hard-light.net/forums/index.php?topic=78832.0)
Title: Re: Quad turret firing in pairs
Post by: Dragon on September 11, 2011, 05:22:41 am
Try $Swarm: 2 with some absurdly small delay.
Title: Re: Quad turret firing in pairs
Post by: zookeeper on September 11, 2011, 07:13:19 am
Try $Swarm: 2 with some absurdly small delay.

Unsurprisingly, that has the same problem as $Burst Shots does, that is the shots fire on consecutive frames. Also, it seems to vary the firepoints in some fashion, looks like the pattern is 1+2 -> 2+3 -> 3+4 -> 4+1 -> 1+2 -> etc.
Title: Re: Quad turret firing in pairs
Post by: MetalDestroyer on September 11, 2011, 07:27:22 am
I didn't try it. But what happen if you name firepoint 1 and 2, firepoint 1 and the 2 last firepoint firepoint 2. And then make a weapon with the cycle flag ?

Title: Re: Quad turret firing in pairs
Post by: Trivial Psychic on September 11, 2011, 07:31:57 am
Can't you set the delay to 0?
Title: Re: Quad turret firing in pairs
Post by: zookeeper on September 11, 2011, 07:35:03 am
I didn't try it. But what happen if you name firepoint 1 and 2, firepoint 1 and the 2 last firepoint firepoint 2. And then make a weapon with the cycle flag ?

Well, you simply can't do that.
Title: Re: Quad turret firing in pairs
Post by: zookeeper on September 11, 2011, 07:40:21 am
Can't you set the delay to 0?

No.
Title: Re: Quad turret firing in pairs
Post by: Qent on September 11, 2011, 10:48:30 am
Maybe something with "use multiple guns"?
Title: Re: Quad turret firing in pairs
Post by: Dragon on September 11, 2011, 10:52:48 am
That'd lock it in quad mode.
Title: Re: Quad turret firing in pairs
Post by: Qent on September 11, 2011, 11:34:16 am
Isn't that "salvo mode"?
Title: Re: Quad turret firing in pairs
Post by: Dragon on September 11, 2011, 11:42:50 am
Maybe. But I still don't think that "Use Multiple Guns" would help.
Title: Re: Quad turret firing in pairs
Post by: T-Man on September 17, 2011, 01:03:02 am
Would making the turret have two banks, each with 2 guns, help in any way? No idea if it would but came to mind when i read. Might be a way to have it cycle the weapons, so its firing one bank then the next, then back again.
Title: Re: Quad turret firing in pairs
Post by: Aardwolf on September 17, 2011, 08:49:14 pm
Yeah, what T-Man said. Two banks, two guns each, cycle flag... if that doesn't work, I'd consider it a bug / ground for a feature request.
Title: Re: Quad turret firing in pairs
Post by: zookeeper on September 18, 2011, 07:30:09 am
I don't see how that could work, as you can't assign a firepoint to a specific bank.

All in all, I'm pretty convinced that it just can't be done currently.