[TF2] Ullapool Caber (TF_WEAPON_STICKBOMB) responses incorrect
Issue
The Ullapool Caber weapon for Demoman is tagged as something that triggers "on kill", when none of the triggers actually do that. The only conditions that can be satisfied under regular circumstances are:
- Concept
TLK_PLAYER_ATTACKER_PAIN - Using a caber as the current weapon, and is a Demoman
- Above 43% health
- Not a regular kill line
This results in some kind of semi-functioning response with the caber detonation, but there's a few issues that arise here:
- ONLY the attacker can hear it, meaning the Demoman himself, but no hit victims or any nearby classes
- ANY form of damage can trigger it so long as the Demo is holding the caber and meets the health threshold. In this case, again, only the attacker can hear it. Even self-inflicted damage from Stickybombs and Pipebombs can trigger it.
- Nothing actually checks if the weapon has already exploded.
Not only does any of this mean that it doesn't actually trigger on kill, but it triggers on unusual situations. I posit the latter as the actual issue here.
Personal comments
I was hoping to make this a PR, but after looking through it and attempting to fix it reliably, the issue seems to be beyond me. Trust me, I tried. The only avenue I actually found involved adding a special case to pain sound dialogue that handles it correctly, and even then that resulted in a few issues alongside being a bit of a messy workaround for a single weapon. I'm kinda at a loss as of how to go about handling it, so it's just going to stay as an issue for now.
Having such a unique attacker-only pain sound is something only this weapon has, with Scout's DrinkNotReady rule coming close, albeit with the regular pain concept. This could be fixed by having it as a kill line for a caber's detonation, but I think that the current functionality of triggering on only self-inflicted damage is subjectively better, so long as it actually hits an enemy in the process. Just that the latter seems to require more workarounds to get it functional.
Considering that the Caber's responses is one of those "good bad bugs", I think it could do with a fix to compromise, such as switching it so that everyone can hear its response while preventing it from triggering from any damage source.
Videos
Coming soon, but I think you already get the point regardless
(I appreciate the issue transfer, I forgot the standards of bug reports for S1 games)