thebigsleepjoe / TTT-Bots-2

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

[BUG] ArcCW weapons break TTT bots #27

Closed somefnfplayerlol closed 11 months ago

somefnfplayerlol commented 11 months ago

Game version/server type

Describe the bug

If a bot has a ArcCW weapon in their hands, they will send errors to the console and do nothing.

Stack trace/error

The error, if any. Example:

[TTT Bots 2.0] lua/tttbots2/components/sv_inventory.lua:187: attempt to perform arithmetic on field 'Delay' (a nil value)
  1. unknown - lua/tttbots2/sh_tttbots2.lua:129

⚠️ If there is no error, please ensure you remove the triple backticks, or else your formatting will break.

Reproducing the bug

Steps to reproduce the behavior:

  1. Subscribe to the ArcCW base
  2. Subscribe to a ArcCW gun pack (I used Gunsmith Offensive)
  3. Have a bot pick up a ArcCW weapon (indicated by white text)
  4. See error

Expected behavior

Bots should be able to fire the ArcCW weapon normally and not throw out errors and stand still.

EDIT: Like #11, but specific.

thebigsleepjoe commented 11 months ago

Thank you for the report. I have pushed a little hotfix for the next update, which should be coming to Steam soon. I will do further testing to make sure it is working.

thebigsleepjoe commented 11 months ago

Confirmed issue will be resolved on next update -- may be a couple of days until you see a difference on Steam