Server mod: kill bots before forcing-to-spectator-team @sigsegv-mvm
Server mod: kill bots before forcing-to-spectator-team  @sigsegv-mvm
Uploaded December 2015 | Updated November 2026, 23 hours ago
MvM frequently gets rid of bots by force-switching them to team spectator. But it doesn't kill them first, so a bunch of stuff is broken. This video shows how the Sentry Buster sound/icon persisting after death is fixed by killing them first. (Complete list below!)

List of bugs suspected to be caused by the game lazily switching bots to spectator without killing them first:
- Sentry Buster sound and icon persisting after death
- Phantom spectator bomb carrier bots between waves
- Bot eye glow particles persisting after death or wave reset
- Crit sounds persisting after wave reset
- Giant bot idle sounds persisting after wave reset

Basically, a bunch of "cleanup" type stuff is done in functions like CTFPlayer::Event_Killed and CTFBot::Event_Killed. Stuff like stopping idle sounds, decrementing wave status icon counts, removing attached particles and entities, etc.

If the bots aren't killed before being switched to spectator, those functions don't get called, and all of those cleanup tasks get skipped.

The major cases where the game force-spectates bots are:
- To clear out all bots when restarting a wave (e.g. after failure) or jumping to a wave (e.g. tf_mvm_jump_to_wave)
- To clear out support bots when all non-support bots of a wave have been killed
- To get rid of sentry busters that are not killed by their own explosion (didn't happen often until the Sentry Buster friendly fire patch in 2013)
- To clean up spawned bots when a squad spawner has some kind of problem and can't spawn to completion
Server mod: kill bots before forcing-to-spectator-teamShortstop shove third-person animations (20% speed)Server mod: allow holiday-restricted items all the time[Raw: 2/2] Airblast-vs-Players: Vectors + Cone (essay in description)Iron Bomber fuse time reduction in MYM makes jumping easierFlamethrower Mojo Investigation: Part 4 of 4Why its occasionally possible to outright kill Sentry BustersServer mod: custom engiebot AI behavior for WranglerMedic bot shields screw up bot pathingLazy engiebotsMod: enable bots to use Wrap Assassin alt-firePyro, get on the tank! II
sigsegv |

Server mod: kill bots before forcing-to-spectator-team

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER