Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: terran_emperor on January 16, 2008, 12:45:03 pm

Title: Bomber/Fighter Docking?
Post by: terran_emperor on January 16, 2008, 12:45:03 pm
Sorry if this has been asked before, but is it possible to impliment AI Docking/Undocking for fighters and Bombers?

Title: Re: Bomber/Fighter Docking?
Post by: karajorma on January 16, 2008, 01:20:54 pm
I'm sure Goober just went from hating us all to just hating you. :p
Title: Re: Bomber/Fighter Docking?
Post by: terran_emperor on January 16, 2008, 01:38:24 pm
 :lol:

Hey. I was only wondering. If it can't be done, i do know how to work around it for the missions im planning.

I'm sure Goober just went from hating us all to just hating you. :p

Well, it may not be Goober's domain, but i have been making a bit of a pain in the ASCII of myself on TBP section.
Title: Re: Bomber/Fighter Docking?
Post by: Goober5000 on January 16, 2008, 03:00:37 pm
You mean, making fighters dock to support ships, as oppose to support ships docking to fighters?
Title: Re: Bomber/Fighter Docking?
Post by: terran_emperor on January 16, 2008, 03:33:09 pm
I mean, getting fighters/bombers to dock with a mothership (transports/freighters/Capitals...)

Some carriers in TBP have the fighters docked externally.
like below:[
img]http://www.frostjedi.com/vex/assets/images/boshut01.jpg[/img]

See - the fighters are carried on the out side

Note: This carrier isnt actually in TBP yet. (I really need it made...but i'm not going to moan that here). 

However, the Raider Carrier also utilises, in theory, External Docking for fighters.
Therefore, fighters/bombers would need to be able to AI Dock/Undock to use the Dock points
Title: Re: Bomber/Fighter Docking?
Post by: Nuke on January 16, 2008, 06:10:07 pm
You mean, making fighters dock to support ships, as oppose to support ships docking to fighters?

i always wanted a system where the player has to manually dock with a capship to rearm/reload/repair. if the player's dockpoint is withing an x radius of the capship dockpoint, and the difference in orientation between the dockpoints is within a couple degrees, and if velocity is matched, and it stays that way for a second or two, then some imaginary clamps reach out and docks you with the capship. 

thing is i think this can be done without coder assistance. a script can determine whether the criteria for a dock are met, and display a dock gauge and/or dock camera. ships can be equipped with a 6dof flight. when the criteria are met, a bit can be passed to fred in some obscure way, telling it to let ai takes over and you dock. the trick is having the ai only take care of the last meter and the last degree, so that it looks like you did all the work yourself. the path would have to be very short on both ends. since ive already done the idiot checks in script before the dock is even attempted , i can avoid the usual crashes that occur when your dock path is too short. this however seems like an over elaborate way to do this. im sure theres a simpler way.