Describe the bug
Player survivors are being affected by a function meant to stop bots from eating pills/adrenaline they have been given.
This can throw off player survivors who want to use newly-discovered pills/adrenaline immediately and delay them from consuming or, if they are erratic enough, even cause them to shoot unintentionally.
To Reproduce
Steps to reproduce the behavior:
Spawn or find pills/adrenaline on the floor.
Try to use the temp health item immediately after picking it up. (Ensure you're hurt enough to use pills)
Additional context
There are no IsPlayerABot checks for the function tree that causes this switch.
I think ideally the bot check should be placed in the item_pickup event hook as part of the if that checks for "pain_pills" or "adrenaline" item.
::Left4Bots.Events.OnGameEvent_item_pickup ->
(calls on AddTimer) ::Left4Bots.CheckBotPickup ->
::Left4Bots.BotSwitchToAnotherWeapon (uses SwitchToItem)
Describe the bug Player survivors are being affected by a function meant to stop bots from eating pills/adrenaline they have been given. This can throw off player survivors who want to use newly-discovered pills/adrenaline immediately and delay them from consuming or, if they are erratic enough, even cause them to shoot unintentionally.
To Reproduce Steps to reproduce the behavior:
Additional context There are no IsPlayerABot checks for the function tree that causes this switch. I think ideally the bot check should be placed in the item_pickup event hook as part of the if that checks for "pain_pills" or "adrenaline" item.