Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: fightermedic on January 12, 2012, 01:42:02 pm
-
hi there
yesterday i tried to give the "add-goal" - "ai-dock" order to a fighter in fred, but to my dismay found it grayed out for fighters, so i had to make that fighter a transport for that mission as a work around (resulting in a broken ai for that fighter of course)
would it be possible to enable ai-dock for fighters? (why is it disabled anyway?)
starting the mission with two fighters already docked worked well...
the only problem i can see with this is, if there isn't any docking code in the fighter-ai
if one of you coders has a minute, please consider adding this, i think it could be usefull to more people than me :)
thank you
-
+1 for this. I did something similar: tried to use this to make support ship give disabled player a tow, but it grayed out as well.
-
have you made the changes to Objecttypes.tbl / xxx-obt.tbm to enable the order for fighter type craft
-
i didn't even know a file such as this does exist, what changes would be necessary?
but still i think this should be enabled by default
-
The reason it's grayed out is pretty simple. The AI doesn't know how to dock a fighter. In Freespace2 support ships would dock with a fighter, not the other way round.
-
Once a long time ago, I was working on making my own mod, and somehow I forgot to add a support ship into my tables. When I called for a rearm, it sent me the default fighter, which docked with me and rearmed me, and then it returned to it's fighter role and wouldn't accept any more rearm requests. It wouldn't work nowadays as SCP would give you a warning about that.
-
The reason it's grayed out is pretty simple. The AI doesn't know how to dock a fighter. In Freespace2 support ships would dock with a fighter, not the other way round.
yes, but adding the docking ai for fighters would be a straight copy-paste-job from e.g. the transports ai wouldn't it?
if this is done as easy as i think it is, then why don't do it?
i certainly think it's worth it, having fighters dock somewhere really should be possible
-
yes, but adding the docking ai for fighters would be a straight copy-paste-job from e.g. the transports ai wouldn't it?
I do not like copy paste, it might be ok for a quick hack, but it is not a solution one should aim for.
-
The reason it's grayed out is pretty simple. The AI doesn't know how to dock a fighter. In Freespace2 support ships would dock with a fighter, not the other way round.
Sure about that,
I've been able to do the contrary for the player ship, it would be great if we could have an option to reverse that behavior (having fighter to dock with a support ship to rearm)
Well not now, too many things coders has to do, but one day , it would be great
-
i wouldn't mind giving fighters the ability to dock and undock from external dockpoints. thats something i could use.
-
A long time ago I tried changing the AI to get a fighter to dock, and I kept running into mysterious bugs. So I moved on to something else. It would probably be worth making another attempt.
-
A long time ago I tried changing the AI to get a fighter to dock, and I kept running into mysterious bugs. So I moved on to something else. It would probably be worth making another attempt.
ah well, why can't anything ever be easy :(