Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Hellbender on May 14, 2008, 05:01:36 am

Title: Turret Questions
Post by: Hellbender on May 14, 2008, 05:01:36 am
I can't find the specific information I'm looking for...

Can a turret have more than one weapon bank? If so, what are the table entries needed to do so?

I'm looking for say a gun turret and missile turret combo...

$Subsystem: Turret01a, 1.0, 3.0
 $Default PBanks: ( "Terran Turret" "Terran Turret" )
 $Default SBanks: ( "Fighter Killer" "Fighter Killer" )

Also, can a turret have more than three firing points that you could specify the loadout of? Like so:

$Subsystem: Turret01a, 1.0, 3.0
 $Default PBanks: ( "Terran Huge Turret" "Heavy Flak" "Terran Huge Turret" "Terran Turret" "Terran Turret" "Terran Turret" )

Answers would be for a current SCP build.
Title: Re: Turret Questions
Post by: Nuke on May 14, 2008, 05:04:22 am
it can and i think theres stuff in fred to toggle banks. ive seen stuff relating to this in scripting and would assume its already been implemented or they're working on it.

ive successfully made turrets with 4 points, i used to have problems with 5 point turrets a couple years ago (i solved it by switching it to 4 points). also i dont think you can assign firing points to separate banks.
Title: Re: Turret Questions
Post by: Titan on May 14, 2008, 06:59:37 am
look at Trashman's GTSG Hydra, it's exactly what your first question asks
Title: Re: Turret Questions
Post by: Wanderer on May 14, 2008, 09:33:04 am
Code: [Select]
#define MAX_TFP 10 // maximum number of turret firing pointsSo ten (10 - or 1010 if you prefer binary) is the maximum number of firepoints a turret can have.


Turrets can have more than 1 weapon defined but... it should fire only single weapon at a time regardless - unless the proper turret flag ("use multiple guns") is used as well. And even then turrets will fire at more or less irregular intervals (due to random factor added to turret fire wait times) as well as alternating the firepoints where the weapons fire from. So a weapon defined 1st to the list may fire from any of the firepoints you never really know which.
Title: Re: Turret Questions
Post by: Hellbender on May 14, 2008, 10:17:50 am
Perhaps it's just my perception, but when I've defined a weapon for each fire point the turret weapons fire much closer together, giving almost a salvo effect as opposed to cycling through each gun. I will have to try the "use multiple guns" flag for comparison.

Edit: Tested, when weapons are defined for each point the turret fires each weapon in rapid succession. When only one is defined for multiple points, the gun fires once only then waits. I was looking for salvos but this is as close as it currently gets I guess.
Title: Re: Turret Questions
Post by: Titan on May 14, 2008, 11:33:35 am
someone had that thing... remember, he had a picture of a bunch of ursas, and they were firing bursts of 3 of these red-colored lasers from their turrets... hmmm, i thing he like used some obscure clause realated to flak guns to make it do that...
Title: Re: Turret Questions
Post by: Wanderer on May 14, 2008, 12:57:22 pm
AFAIK you can get salvos...

There are couple of ways of doing that (though i haven't tested lately either of them). First one is to edit ai_profiles.tbl - or aip.tbm - and prevent the random delay from being added. Or using just single weapon with swarm setting equal to the number of barrels and then setting swarmwait to minimum.
Title: Re: Turret Questions
Post by: BS403 on May 14, 2008, 03:24:05 pm
there is a tag you can add to the turret subsystem that sets it to salvo fire IIRC
Title: Re: Turret Questions
Post by: blowfish on May 14, 2008, 04:55:08 pm
The tag you are talking about is "use multiple guns", which doesn't really do anything useful ATM.
Title: Re: Turret Questions
Post by: Wanderer on May 15, 2008, 06:26:05 am
Just tested... that flag works just as it should.
Title: Re: Turret Questions
Post by: Titan on May 15, 2008, 06:53:11 am
Ya, that was it, swarm flag... and the number you entered changed the number of shots in a burst...
Title: Re: Turret Questions
Post by: Hellbender on May 15, 2008, 07:19:38 am
How exactly should "use multiple guns" be set up? I ask because I haven't yet seen it in a table.
Title: Re: Turret Questions
Post by: Wanderer on May 15, 2008, 07:47:40 am
http://www.hard-light.net/wiki/index.php/Ships.tbl

http://www.hard-light.net/wiki/index.php/Subsystems

And to actually use that option you need to define more than a single weapon per turret.

Ya, that was it, swarm flag... and the number you entered changed the number of shots in a burst...
er.. ummh??
Title: Re: Turret Questions
Post by: Hellbender on May 15, 2008, 09:52:37 am
Ok, I'm still not quite clear on the usage. Is it a flag set in the general ship flags or does each turret require a seperate: $Flags( "use multiple guns") ?
Title: Re: Turret Questions
Post by: Droid803 on May 15, 2008, 04:20:11 pm
Mutliple weapon entries on a turret will salvo fire. Look at the Retail GTD Orion. The triple banks of THTs fire three blobs, one after the other.
I've found "use multiple guns" to be quite redundant. Just fitting it with X banks of what you want gets a close enough effect (unless you want all three barrels to rapid fire, for example).
Title: Re: Turret Questions
Post by: blowfish on May 15, 2008, 05:10:40 pm
It is not guaranteed that they will fire in sequence though.  The random turret fire delay does weird things.
Title: Re: Turret Questions
Post by: Titan on May 15, 2008, 05:23:19 pm
Ya, that was it, swarm flag... and the number you entered changed the number of shots in a burst...
er.. ummh??

nevermind...