Add AI 'hints' for weapons (ie, fake attributes)

Post ideas & suggestions you have pertaining to the game here.
Post Reply
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

Basically what I am asking for is I have a weapon does something weird (usually configuration or script related), the AI is liable to have no clue how to fire it. Thus I am asking for something like 'hintMissileSpeed' 'hintLifetime' and 'hintOmnidirectional' which - if present - would override the normal missileSpeed, lifetime and omnidirectional in only the AI calculations.
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

you can change those using the multipliers in <AISettings>

and for omnidirectional, just use an omnidirectional slot in the ship that has to use the weapon.

This is really good for boss ships, for example, where a ship can have double (or higher) firerate and/or lifetime using a weapon that will instead be balanced in the hands of the player.
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

the ai settings are ship based and affect the whole ship. i also could not get them nor fire tolerance to do what i wanted. i also do not always want an omni slot.
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
User avatar
Atarlost
Fleet Admiral
Fleet Admiral
Posts: 2391
Joined: Tue Aug 26, 2008 12:02 am

You cannot change missile speed in AI settings, nor can you change lifetime. All you can do is change the firerate, change how far out the ship will seek targets, and its AI style. Omnidirectionality can be indicated in a configuration tag, but if a weapon is fragment dominated like the TM7 and the fragments aren't seekers, which make the AI largely irrelevant, it needs some way to tell the AI how to use the weapon. If it also uses scripted fragmentation there is no way for the AI to determine correct behavior even if George writes heuristics for everything possible in XML.
Literally is the new Figuratively
Post Reply