Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: PeterDön on December 22, 2009, 05:33:51 pm

Title: Capital ship weapon
Post by: PeterDön on December 22, 2009, 05:33:51 pm
Is there any way to make like "terran huge turret" to only fire at other capitalships/crusiers?
Title: Re: Capital ship weapon
Post by: esarai on December 22, 2009, 05:44:36 pm
In the weapon's table, add the flag "huge" to it.  This means it only targets ships designated as "huge."  I've had to use this to keep fighter wings from being blown to smithereens by some of the weapons I've created.
Title: Re: Capital ship weapon
Post by: Stormkeeper on December 22, 2009, 06:04:00 pm
So have I, though much lols are to be had when you see a BFG swing through space to splat Shivan and GTVA fighters alike, as well as accidentally swiping a Cain.
Title: Re: Capital ship weapon
Post by: PeterDön on December 22, 2009, 06:17:08 pm
Thanks guys, just one qustion, the turret I'm modding already has the flag "Big Ship". Should I remove this?
Title: Re: Capital ship weapon
Post by: Droid803 on December 22, 2009, 06:18:41 pm
The Big Ship flag means that fighters can't carry it IIRC. That's all.
Title: Re: Capital ship weapon
Post by: Stormkeeper on December 22, 2009, 06:26:30 pm
Your turret or your weapon has the Big Ship flag?
Title: Re: Capital ship weapon
Post by: PeterDön on December 22, 2009, 06:28:26 pm
Quote
Your turret or your weapon has the Big Ship flag?

Yes, its the "terran huge turret" I want it to shoot only at destroyers and crusiers/corvettes.
Title: Re: Capital ship weapon
Post by: Droid803 on December 22, 2009, 06:41:32 pm
You want the "Huge" flag.
Title: Re: Capital ship weapon
Post by: Stormkeeper on December 22, 2009, 06:44:23 pm
Your weapon should be the one with the "Huge" flag. The difference between the two is:

Huge basically limits your weapon from firing on anything other than capital ships.

Big Ship means only capital ships can mount it, and it won't appear in your weapon selection for your fighter by default.
Title: Re: Capital ship weapon
Post by: PeterDön on December 22, 2009, 07:33:30 pm
It worked! Thanks again guys!
Title: Re: Capital ship weapon
Post by: PeterDön on December 23, 2009, 06:24:49 am
Ok, boys and girls.... My turret is working fine but it still targets bombs. Is there any way to stop this?
Title: Re: Capital ship weapon
Post by: Dragon on December 23, 2009, 06:41:16 am
AI Profies have a function for this.
http://www.hard-light.net/wiki/index.php/Ai_profiles.tbl#.24huge_turret_weapons_ignore_bombs:
Title: Re: Capital ship weapon
Post by: PeterDön on December 23, 2009, 08:56:08 am
Got it. Thanks!
Title: Re: Capital ship weapon
Post by: PeterDön on December 23, 2009, 09:07:02 am
I get an error message when I try to load, saying: Error:Required token = [#End] or [$Name:], found [$huge turret weapons ignore bomb]

What does it mean?
Title: Re: Capital ship weapon
Post by: Dragon on December 23, 2009, 09:54:50 am
You're not supposed to put this flag into ship table, but into AI Profile.
Better read this: http://www.hard-light.net/wiki/index.php/Ai_profiles.tbl
Title: Re: Capital ship weapon
Post by: PeterDön on December 23, 2009, 11:34:43 am
Ok, so I put it in the ai_profiles.tbl, but still no luck.
Title: Re: Capital ship weapon
Post by: Droid803 on December 23, 2009, 12:34:35 pm
You have to set your Ai_Profile in FRED to the one you made.
Title: Re: Capital ship weapon
Post by: PeterDön on December 23, 2009, 12:40:36 pm
Ok, thanks. By the way, is there anyway to make this work in the retail version?
Title: Re: Capital ship weapon
Post by: Dragon on December 23, 2009, 04:20:22 pm
Unfortunatley, no.
Using AI_Profiles makes keeping retail compatiblity impossible.
Title: Re: Capital ship weapon
Post by: PeterDön on December 24, 2009, 05:43:28 am
Ok, sad. But if its in a mod, and you are playing the freespace 2 campaign?
Title: Re: Capital ship weapon
Post by: The E on December 24, 2009, 06:11:21 am
Can you clarify that statement?
Title: Re: Capital ship weapon
Post by: PeterDön on December 25, 2009, 03:18:11 pm
Nothing, I got it to work. Thanks!