Author Topic: Request: AI Orbit at distance, Minimun AI speed.  (Read 2838 times)

0 Members and 1 Guest are viewing this topic.

Request: AI Orbit at distance, Minimun AI speed.
Basically a function that can be added onto a ship AI profile, that will tell the ship that alike the strafing orbit, when it is attacking a ship all it should do is to keep orbiting it at certain distance while its turrets or alike do the damage.

and the second one, to force the ai TO never reduce its ship % speed below certain point when attacking someone, hopefully the table would be something like:

$Orbit Combat:         YES
       +Orbit distance:          XXXX ;XXXX= meters
       +Orbitmaxspeed:       XXXX ; XXXX = M/S
       +OrbitminSpeed:        XXXX ; XXXX = M/S


and the other would be:

$Combat min speed:   XXXX

 

Offline Sushi

  • Art Critic
  • 211
Re: Request: AI Orbit at distance, Minimun AI speed.
This scenario sounds specific enough I suspect you may be better off using SEXPs/scripts to accomplish it.

 
Re: Request: AI Orbit at distance, Minimun AI speed.
This scenario sounds specific enough I suspect you may be better off using SEXPs/scripts to accomplish it.

no actually not, i would be using this for about 40 ships, mostly capital ships, and to make sure the AI behaves on a consistent way on fights while using big "capital" ships that move more like fighters adn that are not supposed to stand still during combat, and this would be used in 2 mods, also not sure of other modders but i m pretty sure a lot of people could use this as well since it allows for much better broadside combat without having to rely on waypoints on fred, and also helps to deal with the clumsy AI constantly stopping to 0 to try shoot the player.

also this is behavior that would be expected on this mods, on any mission or campaign.
« Last Edit: December 15, 2011, 06:00:15 pm by assasing123 »

 

Offline Eli2

  • 26
Re: Request: AI Orbit at distance, Minimun AI speed.
Why should this not be possible with scripting ?

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Request: AI Orbit at distance, Minimun AI speed.
$Combat min speed will be used by atmospheric mods, that's beyond doubt.
Orbiting could be used for gunboat strafing, any ship that has more turrets than front guns could use that. This could also be used to make sure fighters execute their strafing runs correctly when using side thrusters. Also, $Orbit Distance: should have two values, min and max. I can clearly see this getting some use, allowing for a lot of new tactics AI could exploit.

 
Re: Request: AI Orbit at distance, Minimun AI speed.
I agree that this would be really useful. Is such a thing even possible, code-wise?

 

Offline Aardwolf

  • 211
  • Posts: 16,384
Re: Request: AI Orbit at distance, Minimun AI speed.
Seems like there's some overlap between this and the glide AI that Sushi did for the BSG mods...

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Request: AI Orbit at distance, Minimun AI speed.
Yes, that would be a great addition to glide-capable ships. I think that it could greatly reduce the number of times AI crashes into a ship when strafing it.
Of course, +Orbit Distance:should account for the target size, perhaps adding it's radius to it or somehow calculating distance to actual hull of a target (so a fighter would orbit a long and narrow capship in an eliptical pattern).

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: Request: AI Orbit at distance, Minimun AI speed.
Probably easier to use the bounding box to have the shape of the ship.
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Request: AI Orbit at distance, Minimun AI speed.
Sounds like a good idea.
So, it seems that being able to define orbiting parameters is just what we need.

I'd propose another thing for that, +Orbit Facing: This would be a vector which orbiting AI will try to turn towards it's target. For fighters, it should be 0, 0, 1 (and it should default to it), but for bigger craft, you could set it so a ship will try to face the target with it's best armed side. Perhaps you could even define multiple vectors, so the ship would try to turn to the nearest one.
This would pretty much make capship attack orders a viable option.

If we could also allow "Stand Still" command to be issued by the player, commanding capships would be surprisingly near Nexus, as commands like "run away", "move to" and "protect" ("keep safe distance" "stay near ship" and "guard" respectively) are already in FSO, they just need to be enabled.

 
Re: Request: AI Orbit at distance, Minimun AI speed.
Probably easier to use the bounding box to have the shape of the ship.
from the attention this topic got, i think i had a good idea? O_O

and why not use the shield mesh of the ship for distance calculations?

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: Request: AI Orbit at distance, Minimun AI speed.
...probably because most ships don't have a shield mesh ?

You don't want to base your code on something optional.

To boot, the bounding box is much simpler than the shield mesh for calculations (it's a freaking box)
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 
Re: Request: AI Orbit at distance, Minimun AI speed.
...probably because most ships don't have a shield mesh ?

You don't want to base your code on something optional.

To boot, the bounding box is much simpler than the shield mesh for calculations (it's a freaking box)

i had the impression a shield mesh was a requirement for any ship model, guess i still have a lot to learn, but then certainly the bounding box makes a lot of sense.
« Last Edit: December 17, 2011, 01:40:46 pm by assasing123 »

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: Request: AI Orbit at distance, Minimun AI speed.
Ships already orbit each other when you give them both ai-chase orders.