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

[TF2] Update 10 second stuck MvM bots to use CommitSuicide over TakeDamage for rare spawn softlocks

Open Mentrillum opened this issue 10 months ago • 3 comments

This is very rare to happen nowadays. But what would happen is an MvM bot would get stuck in world geometry while trying to leave spawn. If the bot stays stuck for 10 seconds, the game prints a dev message saying A robot is interpenetrating a solid - killed! and the game applies 999999.9 damage, the issue here is that since the bot is inside of the spawn that damage gets nullified because the bot still has the uber spawn condition. CommitSuicide does not do this and instantly kills the bot even with spawn uber protection. As such, this change is here to prevent those rare moments.

For reference on this bug, see https://github.com/ValveSoftware/Source-1-Games/issues/4620

Mentrillum avatar Feb 19 '25 15:02 Mentrillum

This addresses a known trolling method where players intentionally causes bots to get stuck.

henke37 avatar Feb 20 '25 12:02 henke37

Hello, have you seen and read the contributing terms here?

https://github.com/ValveSoftware/source-sdk-2013/blob/master/CONTRIBUTING

These are visible when you make a PR now, so I am asking for the older PRs. Thanks.

misyltoad avatar Feb 25 '25 20:02 misyltoad

Yes I have, for this PR, #675, and any future PRs I do here I accept the terms.

Mentrillum avatar Feb 26 '25 02:02 Mentrillum