Improve player networking.

This commit is contained in:
Marco Cawthorne 2022-05-01 17:01:30 -07:00
parent a94f19a5fc
commit fa6b1fb38f
Signed by: eukara
GPG key ID: C196CD8BA993248A

View file

@ -216,13 +216,11 @@ player::SendEntity
float float
player::SendEntity(entity ePEnt, float fChanged) player::SendEntity(entity ePEnt, float fChanged)
{ {
if (health <= 0 && ePEnt != this) { /* don't broadcast invisible players */
if (IsFakeSpectator() && ePEnt != this)
return (0); return (0);
} if (!GetModelindex() && ePEnt != this)
if (clienttype(ePEnt) != CLIENTTYPE_REAL) {
return (0); return (0);
}
if (ePEnt != self) { if (ePEnt != self) {
fChanged &= ~PLAYER_ITEMS; fChanged &= ~PLAYER_ITEMS;