source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

[TF2] Fix softlock when robots in MVM are stuck in spawn

Open bradleycha opened this issue 11 months ago • 1 comments

When a robot in MVM gets stuck, there is a failsafe in-place which intends to kill the robot after some time, but this is accomplished with TakeDamage(), which doesn't work when the robot has its spawning invulnerability. This results in the bot being stuck and unable to be killed, softlocking the wave. The only way to recover from this is to either intentionally let the bots plant the bomb, or vote to restart the mission.

This has been an issue both unintentionally when bots drop at precise angles that result in them getting stuck in work geometry, and intentionally when abused by griefers on maps like Coaltown who deliberately airblast the bot out-of-bounds to get it to respawn in world geometry and softlock the mission for the rest of the team.

This fix simply replaces TakeDamage() with CommitSuicide(), which solves the issue.

bradleycha avatar Feb 25 '25 05:02 bradleycha

Duplicate of #669?

nosoop avatar Feb 25 '25 08:02 nosoop

Duplicate of #669?

I should have checked the open PRs first, but this is a duplicate. Thank you for letting us know.

bradleycha avatar Feb 26 '25 19:02 bradleycha