Improve player networking.
This commit is contained in:
parent
a94f19a5fc
commit
fa6b1fb38f
1 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue