SWATEliteForce icon indicating copy to clipboard operation
SWATEliteForce copied to clipboard

[BUG] AI Officers Have Trouble Shooting Someone With The Taser

Open sandman332 opened this issue 3 years ago • 4 comments

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!

sandman332 avatar Mar 08 '21 05:03 sandman332

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.

beppegoodoldrebel avatar Mar 09 '21 08:03 beppegoodoldrebel

Shot00006

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?

ghost avatar Dec 01 '21 17:12 ghost

iirc the perfect aim is enabled... maybe try disabling it?

beppegoodoldrebel avatar Dec 01 '21 17:12 beppegoodoldrebel

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.

  1. The officer does not move at all during shooting.
  2. The officer fails to recognize rigid objects (furniture/decorative items) that will stop the projectiles in the direct line of fire.
  3. 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. Shot00000 Shot00001

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.

ghost avatar Dec 01 '21 19:12 ghost