General > Discussion
AI is exploiting reaction fire buggyness
anonymissimus:
Sometimes an alien is standing in such a position at the beginning of its turn, that it could shout right away. This does however generally not happen. Instead it previously moves onto such a position that it's slightly behind a corner or similar, aims apparently slightly onto a "wrong" position and kills. There is no reason why my soldier shouldn't reaction shoot (only obstacles in the way - no friendly units) but doesn't. All such cases should be considered bugs. While I am also aiming onto "wrong" fields frequently, I almost never do it to exploit this bug as I cannot risk that it doesn't work. The AI appears to perfectly know whether it will work however. In all the cases it exploits the bug my RF didn't work, while I sometimes got reaction shot in cases where there was a red line from my soldier to the alien, both on the same height. The RF indeed hits the obstacle then, but only most of the time.
DarkRain:
I think you just have bad luck
--- Quote from: anonymissimus on February 25, 2016, 01:22:49 pm ---<snip>only obstacles in the way<snip>
--- End quote ---
Actually this is your problem then, you must remember that, when RF triggers, the game checks not only for friendly fire, but also checks the percentage of the shots fired that actually hit the enemy (using a sample of ~100 mock shots), if it is too low RF won't trigger, and yes the same check is applied when the AI uses RF, so if the AI uses RF but your soldiers don't, you either have bad luck or your soldiers aren't accurate enough to put enough shots through that corner.
And no, the AI cannot aim at "wrong" positions, it can only aim directly at a game entity (currently limited to characters only, shooting breakables is disabled) you will notice, for example, that they never bounce grenades, always throwing them right at your feet.
anonymissimus:
--- Quote from: DarkRain on February 26, 2016, 11:31:01 pm ---when RF triggers, the game checks not only for friendly fire, but also checks the percentage of the shots fired that actually hit the enemy (using a sample of ~100 mock shots), if it is too low RF won't trigger, and yes the same check is applied when the AI uses RF, so if the AI uses RF but your soldiers don't
--- End quote ---
Well sorry, but that seems a bad logic to me. If there are no friendly units in danger of being hit, reaction fire should just always trigger, independently from such a calculation. The soldier is almost guaranteed to die (especially otherwise, meaning he doesn't reaction shoot).
I'm pretty sure I also have seen it happen that the alien trick fails though, the alien fires 3 shots or even full auto, but all of them hit the obstacle(s). It's just that if even a single one slips through, that means instadeath due to the difficulty scaled damage.
And it of course happens that my soldiers actually reaction shoot, but generally only if there are no obstacles in the way, which means that being partly covered to make being hit less likely is not allowed.
EDIT
--- Quote from: DarkRain on February 26, 2016, 11:31:01 pm ---your soldiers aren't accurate enough to put enough shots through that corner.
--- End quote ---
In the depicted situation, assuming perfect accuracy of my soldier, *all* of the reaction shots would hit the obstacle. As I said, the alien moves onto a position slightly behind a corner or obstacle before shooting. The shot line from my soldier to the alien is (would be) red, and in the other direction it's got to be as well, logically. So, given the reaction fire check with the 100 shot tests, it of course doesn't trigger then.
EDIT2
To not be misunderstood here...it is perfectly fine with me that the AI is exploiting things, and also that the soldier dies. The problem is that reaction fire is so buggy...
EDIT3
This check with 100 sample shots might also be why reaction fire seems to never work on long range then (but not so long that the weapon's range is exceeded).
DarkRain:
--- Quote from: anonymissimus on February 27, 2016, 01:07:44 am ---Well sorry, but that seems a bad logic to me.
--- End quote ---
I'm fairly sure that check pre-dates my involvement with the project, so I cannot speak for the rationale that led to its inclusion, something about ammo conservation I'm sure.
--- Quote ---And it of course happens that my soldiers actually reaction shoot, but generally only if there are no obstacles in the way, which means that being partly covered to make being hit less likely is not allowed.
--- End quote ---
Yes, I see how that would be... let's say "problematic" for a tactical game.
--- Quote ---In the depicted situation, assuming perfect accuracy of my soldier, *all* of the reaction shots would hit the obstacle. As I said, the alien moves onto a position slightly behind a corner or obstacle before shooting. The shot line from my soldier to the alien is (would be) red, and in the other direction it's got to be as well, logically. So, given the reaction fire check with the 100 shot tests, it of course doesn't trigger then.
--- End quote ---
Ok, I think I'm getting a better picture of what you mean, so I guess more accuracy would indeed be counter-productive to RF in this situation...
--- Quote ---This check with 100 sample shots might also be why reaction fire seems to never work on long range then (but not so long that the weapon's range is exceeded).
--- End quote ---
Most likely
anonymissimus:
An example screenshot showing a typical case of the depicted situation. Bot the alien (after its shot) and my soldier did not move (yet). Plasma rifle snap shot from the alien, which hit the obstacle, so the soldier survived, in this case. Reaction fire (assault rifle snap shot) was active but did not trigger.
Navigation
[0] Message Index
[#] Next page
Go to full version