Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Liberator on December 04, 2003, 10:32:47 pm

Title: Epiphany
Post by: Liberator on December 04, 2003, 10:32:47 pm
I was just reading a thread in General FS when it came to me.

Right now to make a convoy you have to give each ship their own waypoint system and set their speeds individually.

My idea is a "formation" command that basically tells all the ships in a list to maintain formation with each other and travel only as fast as the slowest ship.

Well, what do you think?
Title: Epiphany
Post by: Singh on December 04, 2003, 10:35:04 pm
hell yeah this would make FREDding large convoys a hell of a lot easier.
Title: Epiphany
Post by: Knight Templar on December 04, 2003, 10:40:37 pm
Aye. :nod:
Title: Epiphany
Post by: redmenace on December 05, 2003, 12:17:41 am
i suggested this a LONG TIME AGO. But I was told that is what form wing is for.
Title: Epiphany
Post by: Goober5000 on December 05, 2003, 02:02:32 am
To control speeds, use the cap-waypoint-speed sexp.  But for individual ships you'll still have to use separate waypoints.  If you need a formation, make a wing of ships like redmenace says.

EDIT: See also this thread
http://www.hard-light.net/forums/index.php/topic,19370.0.html
Title: Epiphany
Post by: Liberator on December 05, 2003, 02:30:34 pm
If you do assign them to a wing, don't they form up like fighters though?
Title: Epiphany
Post by: SadisticSid on December 05, 2003, 03:20:26 pm
You can't do that with destroyers and corvettes Goober. Could you (collectively) make a capship wing function to group big vessels together but preserve their individual names and exclude orders from the wings menu?
Title: Epiphany
Post by: Drew on December 05, 2003, 04:50:40 pm
*cough convoy AI cough*  :D :p :rolleyes:
Title: Epiphany
Post by: Goober5000 on December 05, 2003, 04:55:23 pm
Sid: Yes you can.  FRED will complain but it works if you modify it in a text editor.
Title: Epiphany
Post by: SadisticSid on December 05, 2003, 06:36:09 pm
Can you preserve the original names though? I don't want to have to call a GTD Lambda 1 or some such. :)
Title: Epiphany
Post by: adwight on December 05, 2003, 07:00:04 pm
I don't think so, that's why you need to use the indiv. waypoints...
Title: Epiphany
Post by: Goober5000 on December 05, 2003, 11:34:14 pm
Quote
Originally posted by SadisticSid
Can you preserve the original names though? I don't want to have to call a GTD Lambda 1 or some such. :)


I'm not sure, but I *think* you might be able to.  However, you'd have to do all the requisite modifications in a text editor.
Title: Epiphany
Post by: Nico on December 06, 2003, 04:20:07 am
Quote
Originally posted by Goober5000
Sid: Yes you can.  FRED will complain but it works if you modify it in a text editor.


:yes:

who needs fred then, when we have wordpad™?
Sheesh...
Title: Epiphany
Post by: Singh on December 06, 2003, 04:34:16 am
/me points to the AI-Chase command....
not exactly working, but if the SCP guys could fix it into something like this, at least you won't have to start with all new coding...
Title: Epiphany
Post by: Krom on December 06, 2003, 12:25:08 pm
Theres code in there to get the AI to form on your wing, use it.
Title: Epiphany
Post by: karajorma on December 06, 2003, 12:32:39 pm
Posted this on the Campaign Forum topic

Quote
Originally posted by karajorma
I haven't tried this but there is another method using less waypoints that I can think of. Set one waypoint where ever you want the fleet to go. Set a second one 30,000m away in a straight line between the fleet and the first waypoint.
 Tell the fleet to go to the second waypoint and use distance from the first waypoint to check when they get where you want them to go.

Because the second waypoint is so far away the convergence of the ships should be minimal.
Title: Epiphany
Post by: CP5670 on December 06, 2003, 12:51:57 pm
That is exactly how I usually do it. :D :yes: