SWATEliteForce
SWATEliteForce copied to clipboard
[BUG] AI Officers Have Trouble Shooting Someone With The Taser
Reposting from discord.
Basically if an Officer is in front of something blocking them from the target then it's very likely not to work. Maybe needs a check specifically for the taser to see if they can hit the target? I suppose you could try pushing an Officer in front of something to test it out.
An example can be seen in this video at 5:35.
https://youtu.be/soj-1lgPVFo?t=335
Thanks!
that happens also with pepperspray.
related to what is blocking their view to target I've seen officers shooting arrested suspect and hostages just because they were in line with a threat.
It is odd on why the aiming line (yellow) passes the pillar and couch. I wonder if this happens only for objects/walls that is next/close to the officer?
iirc the perfect aim is enabled... maybe try disabling it?
Hello again. I tried setting the perfect aim state to false, but I see no difference in behavior unfortunately (shots do land now sometimes, but extremely rare to the point where ammo is completed depleted).
Also, I found that this bug doesn't just affect both taser and pepper spray, but basically every non-lethal weapon available through deploy action. However, in combative mode (i.e, during room clearing or falling in), the officers tend to move around a lot and non-lethal shots tend to land correctly most of the time.
I noticed an occurring pattern that might cause this bug via deploy action.
- The officer does not move at all during shooting.
- The officer fails to recognize rigid objects (furniture/decorative items) that will stop the projectiles in the direct line of fire.
- When target is close enough, the officer probably won't even move from their original position and start shooting at the direction of the target despite of having a wooden frame in between them.
Potential strategies to fix this are probably
- To make the officer move towards the target as they shoot.
- Make the officer recognize the barrier between them and the target. Afterwards, move around it to actually attack correctly once in satisfactory position.