For the Dead Ringer portion, check if the event's
death_flags property has
TF_DEATHFLAG_DEADRINGER set:
Code:
if (event.GetInt("death_flags") & TF_DEATHFLAG_DEADRINGER) {
// player feigned death
}
No idea about the class menu detection, other than polling the ConVar you mentioned. Any VGUI events I'd hook into are handled directly on the client's side without the server doing any work.
Would triggering the instant respawn with the Medic! voice keybind be sufficient? You could force the respawn at that point and
open up the class select menu to allow class selection. Not 100% sure if it's blocked by the freezecam, though.
__________________