@ -1243,29 +1243,23 @@ int AddToFullPack( struct entity_state_s *state, int e, edict_t *ent, edict_t *h
@@ -1243,29 +1243,23 @@ int AddToFullPack( struct entity_state_s *state, int e, edict_t *ent, edict_t *h
@ -1274,23 +1268,39 @@ int AddToFullPack( struct entity_state_s *state, int e, edict_t *ent, edict_t *h
@@ -1274,23 +1268,39 @@ int AddToFullPack( struct entity_state_s *state, int e, edict_t *ent, edict_t *h
if(ent->v.size.z>size)
size=ent->v.size.z;
dist-=size;
if(size>512)// big brushes may be rotated, but dist check does not cover this
dist=abs(delta.z),size=ent->v.size.z;
else
{
if(abs(delta.x)>dist)
dist=abs(delta.x);
if(abs(delta.y)>dist)
dist=abs(delta.y);
if(abs(delta.z)>dist)
dist=abs(delta.z);
}
dist-=size/2;
if(size<=32&&ismonster)
istrash=true;// we can hide small monsters like trash
// Nothing will break if we hide it, so hide if packet full
elseif(ismonster&&dist>mp_maxmonsterdist.value)
hide=true;
elseif(size>512)// big brushes may be rotated, but dist check does not cover this
hide=false;
elseif(dist>mp_maxotherdist.value)
hide=true;// other entities. May break beams, etc...
if(hide)
{
@ -1299,7 +1309,7 @@ int AddToFullPack( struct entity_state_s *state, int e, edict_t *ent, edict_t *h
@@ -1299,7 +1309,7 @@ int AddToFullPack( struct entity_state_s *state, int e, edict_t *ent, edict_t *h
// attachments/sounds, so we may just skip adding it to packet
// but left it just hidden if we have enough visents to prevent
// sending big delta packets, but reserve 256 slots for visible