diff --git a/src/shared/player.qc b/src/shared/player.qc index cceb112..6e72158 100644 --- a/src/shared/player.qc +++ b/src/shared/player.qc @@ -779,15 +779,11 @@ player::SendEntity float player::SendEntity(entity ePEnt, float fChanged) { - /* remove our entity to other clients if we're dead */ - if (health <= 0 && ePEnt != this) { + /* don't broadcast invisible players */ + if (IsFakeSpectator() && ePEnt != this) return (0); - } - - /* target client isn't real, they have no client-side. abandon */ - if (clienttype(ePEnt) != CLIENTTYPE_REAL) { + if (!GetModelindex() && ePEnt != this) return (0); - } WriteByte(MSG_ENTITY, ENT_PLAYER); WriteFloat(MSG_ENTITY, fChanged);