Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: IronBeer on January 12, 2010, 08:38:35 pm

Title: Turning off support ships in-mission
Post by: IronBeer on January 12, 2010, 08:38:35 pm
I'll get right to the point:
Is there any way to either disable the use of support ships once a mission is underway, or prevent the re-loading of a specific secondary weapon via support ship?
Title: Re: Turning off support ships in-mission
Post by: Nuclear1 on January 12, 2010, 09:15:11 pm
As far as I know, you can't.

This actually would be something worth suggesting to the SCP team though.  I can see the uses.
Title: Re: Turning off support ships in-mission
Post by: ShadowGorrath on January 12, 2010, 10:32:12 pm
Isn't turning off support ships possible in the Mission Specs menu?
Title: Re: Turning off support ships in-mission
Post by: General Battuta on January 12, 2010, 10:32:54 pm
First post specified disabling them mid-mission or disabling specific secondary reloads.
Title: Re: Turning off support ships in-mission
Post by: IronBeer on January 12, 2010, 10:51:34 pm
So, turning off support after the fact may not be possible, but I did find a SEXP that serves my needs, the Set-Secondary-Weapon expression. Comes standard with three arguments, but the first additional one sets how much ammo you get, and the second extra argument sets how much ammo support ships can reload for that particular weapon.
Title: Re: Turning off support ships in-mission
Post by: General Battuta on January 12, 2010, 11:01:04 pm
Very nice.
Title: Re: Turning off support ships in-mission
Post by: karajorma on January 12, 2010, 11:05:59 pm
You could just use set-support-ship from Change->Special.

But using that SEXP is also an option.
Title: Re: Turning off support ships in-mission
Post by: Aardwolf on January 12, 2010, 11:14:38 pm
You could just use set-support-ship from Change->Special.

Looking at the options for that SEXP... it is AWESOME!

Not only can you set what support ship a mission uses, but you can even tell it to arrive in and/or depart to a specific docking bay! And apparently you can set a maximum number in-mission... I don't know what that would do exactly, but I'm guessing it's probably a limit on how many you can call in, not how many at once... it says -1 for unlimited.
Title: Re: Turning off support ships in-mission
Post by: karajorma on January 12, 2010, 11:32:45 pm
Yep, it sets the maximum number of support ships a mission can have. If you set it to 1 then you'd have to protect it during the mission or go without rearming.
Title: Re: Turning off support ships in-mission
Post by: IronBeer on January 12, 2010, 11:42:36 pm
You could just use set-support-ship from Change->Special.
Kara, what version of FRED are you using? Because I don't have that. Just checked.
Title: Re: Turning off support ships in-mission
Post by: karajorma on January 12, 2010, 11:44:11 pm
It should definitely be in 3.6.10.
Title: Re: Turning off support ships in-mission
Post by: IronBeer on January 12, 2010, 11:48:07 pm
It should definitely be in 3.6.10.

Nurrr. Indeed it is. And 3.6.11 too. Oh, well. Thanks for the help anyways.
Title: Re: Turning off support ships in-mission
Post by: VPR on January 15, 2010, 08:23:19 pm
Seems to be a slight bug with this sexp. I'm using the latest windows SSE2 build 5816 (also present in SSE2 build 5641) and noticed if you set max number of support ships to 1 it will only reload one craft then it is no longer available to the AI or player via the comms menu even though it is still active in the area. You have to have the value set to at least 2 or above for the support ship to perform more than one ship reload during it's lifetime within the area.

Just wondering if anyone else has noticed this?
Title: Re: Turning off support ships in-mission
Post by: karajorma on January 15, 2010, 09:36:29 pm
Stick that in Mantis and it will probably get fixed fairly quickly.