Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Nemesis6 on November 19, 2010, 12:33:04 pm
-
I've noticed that whenever I set fighters to defend a friendly warship in a battle, they'll interpret this as "Fly over to that giant enemy ship and get torn up by flak and enemy fighters!". So here's my idea: When you select "defend target" in the orders menu, you will reach an additional prompt with these options:
"Defend"
"Defend, 1000 meters"
"Defend, 2000 meters"
"Defend, 3000 meters"
"Defend, prioritize bombers"
"Defend, ignore warships"
Anything beyond the distances above will be ignored, obviously. So what do you say?
-
This would need to be set up to be accessible via the SEXP ai goals system as well (since obviously they are shared.)
Also I believe the defend radius is currently based on the size of the ship being defended.
-
Well, using the command in, say, the first mission of Vassago's Dirge, telling the AIs to protect the Cretheus, that just has them flying straight into a Ravana with enemy ships picking them off all the whilst! :wtf:
-
Oh, you literally mean in-game.
-
Pretty sure we need to make it work via SEXP first, although it would be nice to be able to change the command menu at some point too.
-
I'd recommend you name them 'Defend Close' and 'Defend Far' instead of setting specific ranges. It's more intuitive and flexible.
-
And then what? Scale close and far based on the size of the ship?
-
Sure. Close would be appropriate for bomb intercept and point defense, within the ranges of the ship's own turrets. Far would order fighters to attack any enemy that's targeting the escorted ship, wherever they are.
-
The ranges could be set via ai or ai_profiles tables. Or via objecttypes.
-
The ranges could be set via ai or ai_profiles tables. Or via objecttypes.
Or as part of the SEXP if we do it as a SEXP, and as part of whatever table we invent for custom comm menus. :)
-
I think this is a great idea! one that I also thought of during game play, but forgot by the time I came back to the forums here.