[TF2] No critical hit sometimes on headshot with stunned robots
https://github.com/user-attachments/assets/1676c5dc-a056-4610-818a-46e9eb0e1bf2
Are you sure this isn't just the 0.2 s delay for headshots? Some of the shots seem rather fast and some shots flatout miss the target. If you can replicate this with charged carefully-aimed shots that would confirm these factors are not at play here.
@JoriKos
It's not that.
this looks like the 0.2 s delay + other robots blocking the head hitbox
this looks like the 0.2 s delay + other robots blocking the head hitbox
There is an underlying issue where player hitboxes don't line up when TFBots are stunned/sapped.
Replying to https://github.com/ValveSoftware/Source-1-Games/issues/7797#issuecomment-3734763979
This is an issue with animations in general, most noticeable for taunts, the player's hitbox doesn't line up with some taunts whatsoever.
Replying to #7797 (comment)
This is an issue with animations in general, most noticeable for taunts, the player's hitbox doesn't line up with some taunts whatsoever.
This is a specific issue with the hitboxes of stunned bots. If you enable sv_showhitboxes in an SDK build and sap bots, you can see the hitboxes pivot left/right as if the TFBot locomotion is not respecting the stun condition.