Modding, Mission Design, and Coding > FS2 Open Coding - The Source Code Project (SCP)

AI class behavior location

(1/2) > >>

Zarax:
Hello everyone and happy 2022 for those who will read it in the new year!
Is AI action behaviour hardcoded or is there a table file for it?

For example, is there any place where I can find the actions available to a destroyer VS a fighter?

Thanks!

0rph3u5:
AI behavior is subject to a number of tables:

- ai_profiles.tbl - https://wiki.hard-light.net/index.php/Ai_profiles.tbl
... which contains global AI settings which can be set on a per-mission basis.

- ai.tbl - https://wiki.hard-light.net/index.php/Ai.tbl
... which creates the AI classes you can set a ship to in FRED. It can also set class specific overrides for flags set in AI_profiles.tbl.

- objecttypes.tbl - https://wiki.hard-light.net/index.php/Objecttypes.tbl#.24AI:
... sets basic rules for the AI to be used with the object type flag (e.g. "cruiser" ) which a ship has. Among other things, if a ship will maneuver to broadside.

- game_settings.tbl - https://wiki.hard-light.net/index.php/Game_settings.tbl#.24AI_use_framerate_independent_turning:
... under "#OTHER SETTINGS" has as one or two settings which can impact AI behavior, but unlike the previous tables doesn't set rules per se.

Zarax:
Thank you for the info.
Interesting, I seem to have only AI.tbl, guess it's time to update my FSO...

Asteroth:
Many of those tables are optional, so it's no surprise.

EatThePath:
To elaborate, FSO versions don't come with any tables at all. The values that those tables would set have internal defaults that generally maintain the retail behavior, and a mod can add the tables to change them.

Navigation

[0] Message Index

[#] Next page

Go to full version