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] Traitor bots placing several bombs in same spot #21

Closed thebigsleepjoe closed 7 months ago

thebigsleepjoe commented 7 months ago

Game version/server type

Describe the bug

Bots will place multiple C4 bombs atop one another, due to this not being devalued in their bomb selection heuristic.

Stack trace/error

Not applicable.

Reproducing the bug

  1. Play a few matches with a few traitor bots
  2. The bots will often place C4 in the same location

Expected behavior

The bots should spread out the C4 somewhat reasonably.

thebigsleepjoe commented 7 months ago

This has been "fixed" -- bots will not place bombs in a spot that has a bomb near it, but won't stop themselves from placing bombs if they are already on the way to that spot. I think this is good enough for now.