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
[Issue Report]: Possible ai bug with succubi #6693
Comments
Fairly well-known vanilla issue. I believe this is caused by the asymmetry in computing line of sight from A to B and B to A, so enemies "think" they should be able to hit you but the calculation for the hit is performed in reverse and the results are different. |
I think there is perhaps something a bit off in the AI's judgment regarding the path of their missiles, because sometimes they'll just stand still and stare and other times they'll shoot the wall. However, there's also the discrepancy between line of sight (vision) vs path of missiles (center-of-tile to center-of-tile). |
The difference between a Succubus standing and shooting versus standing and staring is the result of a call to the devilutionX/Source/monster.cpp Lines 1891 to 1899 in 7470862
If the monster is firing and hitting an obstruction, it's because The difference between a Succubus holding position versus repositioning to get a better angle has to do with Standing: devilutionX/Source/monster.cpp Line 1879 in 7470862
Repositioning: devilutionX/Source/monster.cpp Line 1904 in 7470862
devilutionX/Source/monster.cpp Lines 4011 to 4016 in 7470862
If the monster is not repositioning but still firing directly at an obstruction, it means the monster is visible around or through the obstruction. It's a discrepancy between vision and missile collision. |
The succubi AI will eventually ''figure out'' that it cannot hit you and will come in melee range if you stay enough. I'm pretty sure there is RNG aspect to it. In any case I don't think monsters being dumb is a bad thing, it's more of a game mechanic in most old games to abuse and exploit monster AI as it is not very complicated |
I don't think this is always the case. There are many situations (more often than not) that ranged attackers will never change their behavior and will become permanently stuck if you stay in the same positions. Otherwise I'd agree with the rest of your statement that this would be an interesting mechanic potentially. |
Operating System
Windows x64
DevilutionX version
1.5.1
Describe
Usually succubi make an effort to move when an obstacle blocks their projectile, but here it seems content to keep firing at it over and over.
dumbai.zip
dumbai.mp4
To Reproduce
load save
Expected Behavior
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: