-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AI] A way to make AI using called shots when appropriate #540
Comments
min_to_hit in ai.txt is used for several different things, not good:
|
Possible approaches to this: (Existing) hook scriptstry to use PROs:
CONs:
Minimalistic hacksMetarule to change intelligence requirements for all 3 difficulty levels. Combined with some hack for ignoring "torso" and "uncalled" from the random body part selection... Not perfect, because you'd want AI to use some kind of intelligence to choose the body part. Maybe it sees you are a melee threat and will shoot your legs, or shoot your hands if you're holding a high-dmg weapon, etc. PROs:
CONs:
C++ rewriteJust replace the function with a custom one with all the considerations for "smart" behavior. Basically another built-in mod similar to how "ammo mods" started back in the day. PROs:
CONs:
New hook scriptsAdd multiple hook scripts to control key aspects of AI behavior. Complement with a bunch of metarules for certain non-opinionated/lower-level functions to keep SSL implementation of necessary logic possible and manageable. PROs:
CONs:
|
Figured out how to do this using a combination of HOOK_COMBATTURN and HOOK_TOHIT with no extra hacks. Seems to work so far, so maybe no changes will be needed after all. |
Conditions for aimed shot:
The text was updated successfully, but these errors were encountered: