Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Marcov on September 30, 2010, 08:34:36 am
-
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)
-
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 (http://www.hard-light.net/wiki/index.php/Weapons.tbl#.24Burst_Shots:).
-
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.
-
---------------------------
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?
-
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.
-
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" (http://www.hard-light.net/wiki/index.php/Subsystem#.24Flags:). Then it will fire a single shot per firepoint on the turret, exactly like a fighter.
Firing like Hornets is governed by Burst values (http://www.hard-light.net/wiki/index.php/Weapons.tbl#.24Burst_Shots:), 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 (http://www.hard-light.net/wiki/index.php/Weapons.tbl), 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)
-
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!
-
Well I guess it is the quick and easy way :P
-
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.
-
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" (http://www.hard-light.net/wiki/index.php/Subsystem#.24Flags:). Then it will fire a single shot per firepoint on the turret, exactly like a fighter.
Firing like Hornets is governed by Burst values (http://www.hard-light.net/wiki/index.php/Weapons.tbl#.24Burst_Shots:), 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 (http://www.hard-light.net/wiki/index.php/Weapons.tbl), 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: (http://www.hard-light.net/wiki/index.php/Weapons.tbl#.24Shots:)