LabAPI icon indicating copy to clipboard operation
LabAPI copied to clipboard

[BUG]: UsedItem does not fire when animation cancelling a Painkiller

Open cg-223 opened this issue 8 months ago • 1 comments

Before You Report

  • [x] I have searched for existing reports of this bug, and this bug report is unique.

Version

1.1.6

Description

Painkillers can be used while not waiting through the whole animation by equipping another item as the animation is about to finish. This has the effect of still consuming the painkiller (the item disappears and you get the HP regen) while UsedItem does not fire.

To Reproduce

  • Use a plugin to log when UsedItem fires
  • Use a painkiller (observe UsedItem firing)
  • Use a painkiller, but equip another item before the animation can finish (observe UsedItem not firing)

Expected Behavior

UsedItem should always fire regardless of whether the animation is cancelled or not

Additional Information

no applicable logs, video demonstration

cg-223 avatar Apr 01 '26 12:04 cg-223

https://github.com/northwood-studios/LabAPI/issues/215

CCrous avatar Apr 02 '26 02:04 CCrous