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
1 changed files with 3 additions and 5 deletions

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;