There is a bug in the game_ui entity.
When the player is killed, it doesn’t remove the player from controlling the game_ui and doesn’t allow the player to properly spectate and let others use the game_ui. Courtesy of the question megathread I’ve gotten around this by using a trigger volume to check if the player controlling it is still there and alive, and if not, it deactivates the game_ui. That’s all working well.
However, when the player is killed while using the game_ui, it doesn’t allow the player to properly spectate. The spectate camera is stuck in one place and a red error begins spamming uncontrollably in the console: “mod_studio: MOVETYPE_FOLLOW with no model.”
Does anyone know how to fix this and make it work properly? In my new TTT map I have an awesome remote controlled gun for traitors that requires game_ui to aim and fire and I’d be super bummed if I can’t actually implement it.