eezstreet / SWATEliteForce

A modification for SWAT 4: The Stetchkov Syndicate
GNU General Public License v2.0
212 stars 35 forks source link

[BUG] SWAT officers walking slowly, backwards #378

Open semodo opened 6 years ago

semodo commented 6 years ago

There is a bug which makes SWAT officers to walk slowly and backwards. There is no strict way to reproduce it, it happens from time to time. This bug seems to not be present in a vanila game, so it is caused by SEF's ai changes I believe.

Theory 1: When SWAT officer cuffs someone, he aims at the npc he wants to cuff. After the cuffing process is finished his target should reset, but it is not. So he keeps constantly look at the npc he cuffed, even though walls, which makes him to walk backwards or to side.

Theory 2: SWAT officers are watching after the uncuffed npc's, aiming at them. Aim of one of the officers might stuck here too.

Theory 3: After SWAT officers clear the room, one of the officers drops luminophore at the doorway. It might be bugged too.

eezstreet commented 6 years ago

On theory 3: They no longer drop it at the door and instead the closest one drops it on the floor. The next time you encounter this, if you use DebugTyrion in the console, you can see which resources are in use and which actions and goals are running. That should give you a few clues.


From: semodo notifications@github.com Sent: Thursday, March 22, 2018 5:55:02 AM To: eezstreet/SWATEliteForce Cc: Subscribed Subject: [eezstreet/SWATEliteForce] [BUG] SWAT officers walking slowly, backwards (#378)

There is a bug which makes SWAT officers to walk slowly and backwards. There is no strict way to reproduce it, it happens from time to time. This bug seems to not be present in a vanila game, so it is caused by SEF's ai changes I believe.

Theory 1: When SWAT officer cuffs someone, he aims at the npc he wants to cuff. After the cuffing process is finished his target should reset, but it is not. So he keeps constantly look at the npc he cuffed, even though walls, which makes him to walk backwards or to side.

Theory 2: SWAT officers are watching after the uncuffed npc's, aiming at them. Aim of one of the officers might stuck here too.

Theory 3: After SWAT officers clear the room, one of the officers drops luminophore at the doorway. It might be bugged too.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/eezstreet/SWATEliteForce/issues/378, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABvmRfTze-nJHP9h_DM4DmsB6I9TO5boks5tg3T2gaJpZM4S2v2Q.

eezstreet commented 6 years ago

Either way, this needs a reproducible set of conditions to trigger it.

semodo commented 6 years ago

bug This is a Tyrion debug info. Bugged officer is Reynolds (first from left). As you can see he is looking in an opposite direction from the door he is stacked to. (There are restrained suspects in the direction he is watching.)

I didn't do anything irregular to trigger it:

Also, after bugged officer spotted a new uncomplained target, his bugged state fixed.

sandman332 commented 6 years ago

I feel like this happened in vanilla swat as well, though I can't exactly remember that. I do know I have seen it quite a bit in SEF.

semodo commented 6 years ago

untitled Another Tyrion debug screenshot. Reynolds was bugged again. (First from left) At this time he definitely didn't watch at any npc. He was constantly faced towards an empty point in the room. There was no npc, nor items. Bug happened after I ordered to gas and clear the room. Using "Cover" order after, resolved his bug.

Update: untitled Bugged officer was looking here, at the end of the gambling table. Since there was nothing in game, I thought there are might be invisible entities, visible in SWATEd.

Map SP-Casino

semodo commented 6 years ago

In v7, when an officer in a bugged state throws a grenade into the room, it is being thrown in the opposite direction from the door's frame. Which means, grenade doesn't get into the room. Also, in v7 this bug is more frequent. In previous versions of SEF, this bug didn't affect the grenade throw. Despite the bugged officer was looking in the wrong direction, grenade was still flying into the room.

semodo commented 6 years ago

Another idea: SWAT AI doesn't lock on anything, it forgets how to turn. In v7 this bug happens when you order to give an item to yourself: -When officer receives this order, he turns in the direction of player, approaching him and giving an item. -After, the player may walk away and the officer will still look in the direction where the player was standing. -The player tells swat to go forward, bugged officer will walk backwards, still looking in the same direction.

Something makes them to forget that they have to look towards their goal. So they think there is no need to turn around and don't change their angle.

semodo commented 6 years ago

Btw, this bug is constant when you request gear from teammates. After the officer gives item, he always looks in the same direction.