Improve player networking-culling.
This commit is contained in:
parent
f1fb9eb76e
commit
281b50d69d
|
@ -288,15 +288,11 @@ player::SendEntity
|
||||||
float
|
float
|
||||||
player::SendEntity(entity ePEnt, float fChanged)
|
player::SendEntity(entity ePEnt, float fChanged)
|
||||||
{
|
{
|
||||||
/* remove our entity to other clients if we're dead */
|
/* don't broadcast invisible players */
|
||||||
if (health <= 0 && ePEnt != this) {
|
if (IsFakeSpectator() && ePEnt != this)
|
||||||
return (0);
|
return (0);
|
||||||
}
|
if (!GetModelindex() && ePEnt != this)
|
||||||
|
|
||||||
/* target client isn't real, they have no client-side. abandon */
|
|
||||||
if (clienttype(ePEnt) != CLIENTTYPE_REAL) {
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
|
||||||
|
|
||||||
/* other players don't need to know about these attributes */
|
/* other players don't need to know about these attributes */
|
||||||
if (ePEnt != self) {
|
if (ePEnt != self) {
|
||||||
|
|
|
@ -38,3 +38,15 @@ bind "f2" "vote no"
|
||||||
// Game Variables
|
// Game Variables
|
||||||
seta "hostname" "FreeTF Server"
|
seta "hostname" "FreeTF Server"
|
||||||
seta "maxplayers" "8"
|
seta "maxplayers" "8"
|
||||||
|
|
||||||
|
// disable some nuclide niceties
|
||||||
|
seta v_muzzledlight 0
|
||||||
|
|
||||||
|
// config compat
|
||||||
|
alias mp_timelimit timelimit
|
||||||
|
alias mp_fraglimit fraglimit
|
||||||
|
|
||||||
|
// video settings
|
||||||
|
seta gl_overbright 0
|
||||||
|
seta gl_ldr 1
|
||||||
|
seta r_lightmap_format rgb8
|
||||||
|
|
Loading…
Reference in New Issue