Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Raptor on May 19, 2004, 04:08:50 pm

Title: Fighterbays and launch paths...
Post by: Raptor on May 19, 2004, 04:08:50 pm
Do any of the SCP magic-wielders think they could look into this?

Basic idea is that fighters (and shuttles, transports, etc) would land in one bay, but fighters would lauch from a completely seperate bay/region.

Baically, I'm talking about seperate launching and landing paths.

So if you only have landing/launching paths, they are used for both, but if you add a second set of paths, with a different name, craft are launched from there instead (or land):nod:

Thinking about a BSG mod, and how Vipers land at the rear of the bay, but launch out of tubes down theside;7

Is it possible? Is it fesible? Can the great SCP'er grance us usless plebs who-have-coding-skill and code it?:D

PS: Oh, is anyone looking at the turret based ideas I posted a while ago?  Those are the only things on my SCP wish list, and I'm sure a few others are wishing for them (or close) too...
Title: Fighterbays and launch paths...
Post by: Woolie Wool on May 19, 2004, 05:20:36 pm
Make a ship with two fighterbays, and set the fighters to take off from fighterbay 1 and land on fighterbay 2 in FRED.
Title: Fighterbays and launch paths...
Post by: jdjtcagle on May 19, 2004, 06:19:18 pm
Yes I'm afraid you waisted a entire post there :p
Title: Fighterbays and launch paths...
Post by: Kazan on May 19, 2004, 06:38:43 pm
IIRC that fighterbay method doesn't completely work right for some reason
Title: Fighterbays and launch paths...
Post by: Trivial Psychic on May 19, 2004, 10:40:59 pm
Ya, at this point, you can't specify which bay a ship launches or lands from.  I think that would be a good inclusion to FRED & the rest.  It would probably require an extra drop tab in the objects and wings editors.
Title: Fighterbays and launch paths...
Post by: Bobboau on May 19, 2004, 10:47:36 pm
I realy want to get seprate fighter bays to work, but I don't have a clue were to start
Title: Fighterbays and launch paths...
Post by: Trivial Psychic on May 19, 2004, 10:51:25 pm
How does the AI determine which bay a fighter should enter or leave from?
Title: Fighterbays and launch paths...
Post by: Raptor on May 20, 2004, 04:41:40 am
Well, the Galactica would need four bays, two for landing and two for launching.

Do fighters, when launched, fly the flight paths in the order they were set up? I mean, does the 1st fighter flies along the first path to be placed in PCS, the 2nd fighter the 2nd path and so on.
Title: Fighterbays and launch paths...
Post by: karajorma on May 20, 2004, 05:05:38 am
Yep. AFAIK they do. The only proviso to that is if you launch 6 ships down 4 paths etc. IIRC the 5th and 6th ships follow the 1st and 2nd path
Title: Fighterbays and launch paths...
Post by: Raptor on May 20, 2004, 07:35:57 am
Quote
Originally posted by karajorma
Yep. AFAIK they do. The only proviso to that is if you launch 6 ships down 4 paths etc. IIRC the 5th and 6th ships follow the 1st and 2nd path


If true, than thats good.  Therefore to have an entire wing launch from fisrt one side, and then a sceond wing launch from the other side, one would the first set of flight paths on one side, then the other.

Unless it restarts the count with every wing....:doubt:
Title: Fighterbays and launch paths...
Post by: Kazan on May 20, 2004, 10:49:50 am
it restarts the count with every wing
Title: Fighterbays and launch paths...
Post by: Starman01 on May 20, 2004, 10:58:28 am
Yes, we could really need such an upgrade (escpecially for the Wing
Commander Carriers. :) )

According to some tests, for Launch-Procedure, FS-AI starts with the
first flightpath in row (but not every time). For Landing, it takes the
nearest free fighterbay, but  also not everytime.

For example, in one mission I have a carrier moving with 20 kps, half
the wings launch from the front, others from the back. When the
carrier isn't moving, they launch all from the front.

Could be also a problem, where the enemy fighters are set according
to the launching wing.

Same goes for landing. Even when you first bring your fighters to the
back using some orders or waypoints, some are still moving to the
front, ignoring the nearby flightpath.

An addon in FRED would be perfect, so you can not only set the ship
they are launching from, but also which subsystem "fighterbayX".
Title: Fighterbays and launch paths...
Post by: Trivial Psychic on May 20, 2004, 07:40:50 pm
Perhaps, it could be sexp controlled, elminiating the need for additional drop tab menus.  Have force-arrive-path and force-depart-path sexps which would be used at the start of a mission, like linking it to an event which comes true imidiately upon mission start.  The sexps would need to be able to handle single ships or wings, but only one object/wing per sexp... you can't list multipe ships or wings in the same sexp.  Each sexp would require 3 arguments, the name of the ship or wing that is departing or arriving, the name of the ship that has the fighterbay(s) that that ship/wing is departing/arriving at, and the path that should be used.  This would require the mission designer to have more specific knowledge of the path names, but if possible, have FRED be able to at least retrieve the path names from the model, but have the user required to know which one is which.  When it comes to wings departing, the wing leader would take the path indicated, and then every other ship would take those paths that come after it.  If there are more fighters than paths above the one specified in the sexp, then the successive fighters would restart from that path and continue.

Example, a wing of 6 fighters is departing from a twin-bay Orion, with 4 paths per bay.  Paths 1 through 4 are on the right bay, while 5 through 8 are on the left bay.  You want Gamma wing to exit from the Orion's left bay.

Event:

Gamma Arrvial
-when
--true
--force-arrive-path
---Gamma
---Orion
---bay-05

When Gamma's arrival time comes, Gamma 1 will arrive from bay-05 path, Gamma 2 will arrive from bay-06 path, Gamma 3 will arrive from bay-07 path, Gamma 4 will arrive from bay-08 path, then Gamma 5 will arrive from bay-05 path just behind Gamma 1, and Gamma 6 will arrive from bay-06 path just behind Gamma 2.

Since I'm no coder, I can't begin to try to work out how to code this, but hopefully this description will give ideas to someone who is a skilled coder, and lead to a solution.

Later!