Author Topic: How to make a turret fire a number of projectiles at once.  (Read 2647 times)

0 Members and 1 Guest are viewing this topic.

Offline Marcov

  • Chicken Little
  • 29
  • My Sig Is Spam
How to make a turret fire a number of projectiles at once.
Is there any way that a laser turret can fire multiple projectiles per shot? (like the hornet, however in primary armament). Why is it that a fighter shoots a PAIR of subachs at once while a turret fires only one?

Help would be much appreciated.

(This is because I'm experimenting on giving capships turrets to fire VOLLEYS AND VOLLEYS of blobs. It's simply nice to watch  :D)
With the rapid increase of FS fan-made campaigns, we're giving the GTVA a harder time with more violence and genocide.

~FreeSpace: The Battle of Endor (voice dub)~
Part 1/4 - http://www.youtube.com/watch?v=Q9K9-Y1JBTE
Part 2/4 - http://www.youtube.com/watch?v=dtQanXDRAXM
Part 3/4 - http://www.youtube.com/watch?v=yoBLKYt_oG0

Old (original) videos:
Part 1/4 - http://www.youtube.com/watch?v=C1ygskaoUtE
Part 2/4 - http://www.youtube.com/watch?v=f0uoPTksBlI

 

Offline ReeNoiP

  • 27
  • I FRED
Re: How to make a turret fire a number of projectiles at once.
Fighters have multiple gun points tied to a weapons bank. I think this is defined in the model .pof, and that you can do the same thing for turrets, but it would result in simultaneous shots rather than volleys.

I think what you are looking for can be done by making a new weapon through tables. Have a look at burst shots in the wiki.
Uncharted Territory is released. But I still need voice actors

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: How to make a turret fire a number of projectiles at once.
Is there any way that a laser turret can fire multiple projectiles per shot? (like the hornet, however in primary armament). Why is it that a fighter shoots a PAIR of subachs at once while a turret fires only one?

Help would be much appreciated.

(This is because I'm experimenting on giving capships turrets to fire VOLLEYS AND VOLLEYS of blobs. It's simply nice to watch  :D)

Open up the War in Heaven weapons tables (bp2-wep.tbm). Look at the 'Point Defense Turret'. That's what you want (burst flag).

I'm guessing the problem you're actually hitting is that you're using FreeSpace 2 retail AI, in which turrets have a random refire delay between every shot (which is why they don't fire as fast as fighters). Select 'BP2' as the mission's AI profile in FRED, then assign a Fury AI class to the warship to increase its fire rate.

 

Offline Marcov

  • Chicken Little
  • 29
  • My Sig Is Spam
Re: How to make a turret fire a number of projectiles at once.
---------------------------
Error!
---------------------------
Error: weapons.tbl(line 1206:
Error: Required token = [#End] or [$Name:], found [$Burst Shots: 3]
in weapon: @Terran Turret Battery
.


File: PARSELO.CPP

Line: 670





Call stack:

------------------------------------------------------------------

------------------------------------------------------------------



[ This info is in the clipboard so you can paste it somewhere now ]





Use Ok to break into Debugger, Cancel exits.


---------------------------
OK   Cancel   
---------------------------

 :wtf:

How to solve this, please?
With the rapid increase of FS fan-made campaigns, we're giving the GTVA a harder time with more violence and genocide.

~FreeSpace: The Battle of Endor (voice dub)~
Part 1/4 - http://www.youtube.com/watch?v=Q9K9-Y1JBTE
Part 2/4 - http://www.youtube.com/watch?v=dtQanXDRAXM
Part 3/4 - http://www.youtube.com/watch?v=yoBLKYt_oG0

Old (original) videos:
Part 1/4 - http://www.youtube.com/watch?v=C1ygskaoUtE
Part 2/4 - http://www.youtube.com/watch?v=f0uoPTksBlI

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: How to make a turret fire a number of projectiles at once.
Post a debug log, make sure you're using 3.6.12 final, and go to line 1206 in your table (disabling word wrap) via the Go To command and look for problems.

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: How to make a turret fire a number of projectiles at once.
Burst might not be exactly what you want...

If you want it the same as a fighter, you want "salvo mode" or "use multiple guns". Then it will fire a single shot per firepoint on the turret, exactly like a fighter.

Firing like Hornets is governed by Burst values, as Battuta stated...but seriously, suggest looking at the wiki instead of just copying from existing weapons please, since doing that doesn't actually teach them what other cool things could be done with it, nor what all those numbers mean!

Or, you could use both in unison, which makes a pretty cool effect in itself.

Also, the line must be in the correct order, which is what I believe is wrong here. Go to the to here, and the "Core Table" section will tell you exactly what position it needs to be in in relation to everything else. Something that copying out of an existing table won't tell you if you have entries that the one you're copying from doesn't.

So please, don't just say "Oh just copy it from BP, ezpz", please, cause it might just make things worse!  :( (as possibly evidenced here)
« Last Edit: September 30, 2010, 09:53:40 pm by Droid803 »
(´・ω・`)
=============================================================

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: How to make a turret fire a number of projectiles at once.
So please, don't just say "Oh just copy it from BP, ezpz", please, cause it might just make things worse!  :( (as possibly evidenced here)

It's how I'd do it, and I'm Superman!

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: How to make a turret fire a number of projectiles at once.
Well I guess it is the quick and easy way :P
(´・ω・`)
=============================================================

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: How to make a turret fire a number of projectiles at once.
Well I guess it is the quick and easy way :P

I usually do things the roundabout and hard way that everybody has declared impossible, but in this case I think having a template to work from is really valuable in learning how to set things up properly.

 

Offline Fury

  • The Curmudgeon
  • 213
Re: How to make a turret fire a number of projectiles at once.
Burst might not be exactly what you want...

If you want it the same as a fighter, you want "salvo mode" or "use multiple guns". Then it will fire a single shot per firepoint on the turret, exactly like a fighter.

Firing like Hornets is governed by Burst values, as Battuta stated...but seriously, suggest looking at the wiki instead of just copying from existing weapons please, since doing that doesn't actually teach them what other cool things could be done with it, nor what all those numbers mean!

Or, you could use both in unison, which makes a pretty cool effect in itself.

Also, the line must be in the correct order, which is what I believe is wrong here. Go to the to here, and the "Core Table" section will tell you exactly what position it needs to be in in relation to everything else. Something that copying out of an existing table won't tell you if you have entries that the one you're copying from doesn't.

So please, don't just say "Oh just copy it from BP, ezpz", please, cause it might just make things worse!  :( (as possibly evidenced here)

Don't forget $Shots:
http://www.hard-light.net/wiki/index.php/Weapons.tbl#.24Shots: