thebigsleepjoe / TTT-Bots-2

Player bots for Garry's Mod TTT
Creative Commons Attribution Share Alike 4.0 International
10 stars 2 forks source link

[BUG] Custom roles do not target each other #8

Closed Pawel99UK closed 7 months ago

Pawel99UK commented 7 months ago

Describe the bug Add on roles which are not part of the innocent and traitor team will co-operate with the traitors and will not fight each-other stopping the round from progressing as its a never ending stalemate. This also affects the ai by having neutral killers follow traitor plans like gather.d

Stack trace/error There does not seem to be a error for this issue when it occurs.

To Reproduce Steps to reproduce the behavior:

  1. Go on and start a normal match
  2. Play a couple of matches until traitors and neutral killer/s are also only alive e.g Jackal or Serial killer
  3. See as the ai walk past each other and refuse to fight stalling the round until either the person uses sv_cheats to kill them or forces a round restart

Expected behavior What most likely should happen is that both the enemy AI teams should fight and murder each other or they might team up until they are the last ones left alive.

Screenshots Teaming bug image

Additional context This Bug doesn't seem to affect No-team roles like medic or amnesiac which side with the innocents.

I hope this helps to improve the mod

thebigsleepjoe commented 7 months ago

Oh boy, I already know this issue is going to be challenging. It will require me to rebuild the targeting system, but I have a few ideas on how. I'll see what I can do.

thebigsleepjoe commented 7 months ago

Issue will be fixed upon next update (v1.1-roles)