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] Bots leaving the game will speak as Console #14

Closed thebigsleepjoe closed 7 months ago

thebigsleepjoe commented 7 months ago

Game version/server type

Describe the bug

Very infrequently when a bot is posting a VoluntaryDisconnect message, the message will be appear to be posted by Console when it shouldn't have. My anticipated reason for this is that the Player that :Say is being called on is NULL, which defaults to speaking as Console.

Stack trace/error

Silent failure

Reproducing the bug

Steps to reproduce the behavior:

  1. Play with many bots for a long time with voluntary disconnecting enabled.
  2. Wait.