Fixes the radio calling out dead or spectating players.
Fix radio calling out dead people
Radio could call out dead spectators instead of the person you want to call out.
Fix for calling out dead players
Fixes radio calling out people who are in spectator team/ who are dead.
might be neater if lines 261 and 262 were consolidated with
if ent:IsPlayer() and ent:IsTerror() then
@zerfgog I assumed that if the entity Isn't a player then an error would be thrown if you tested if IsTerror() since I believe that works only with players
The second condition is only checked if the first one is true.
EDIT: To be correct not false or nil but yeeaah
You forgot to undo the indention
Thanks for telling me that, I'm a bit distracted by class right now.
Good fix and I hate to nitpick, but please make the and have one space on either side.