Stamina Drain While Not Moving

Maybe you could work it out with a simple “is sprint key pressed” boolean, based on the input. And to make sure, work it out with your actual velocity compared to a speed that would justify the stamina drian. The branch then could be adjusting some logic within your stamina component whatever is doing it.