I'm not really sure sv_alltalk makes dead players talk to alive ones, at least it doesnt in CS:S and I have no way to test it in TF2.
But if it does, then replacing the big if-statement at around line 140 with this one should fix it:
Code:
if(!relay_mode
|| !client
|| !p_bctype[client]
|| dontBroadcast
|| IsPlayerAlive(client)
|| GetConVarInt(FindConVar("sv_alltalk")))
return;