From 281b50d69dc209f236bb7dbed1518661a0c376a2 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Sun, 1 May 2022 17:02:44 -0700 Subject: [PATCH] Improve player networking-culling. --- src/shared/player.qc | 10 +++------- zpak001.pk3dir/default.cfg | 12 ++++++++++++ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/shared/player.qc b/src/shared/player.qc index 172cd4d..febc68c 100644 --- a/src/shared/player.qc +++ b/src/shared/player.qc @@ -288,15 +288,11 @@ player::SendEntity float player::SendEntity(entity ePEnt, float fChanged) { - /* remove our entity to other clients if we're dead */ - if (health <= 0 && ePEnt != this) { + /* don't broadcast invisible players */ + if (IsFakeSpectator() && ePEnt != this) return (0); - } - - /* target client isn't real, they have no client-side. abandon */ - if (clienttype(ePEnt) != CLIENTTYPE_REAL) { + if (!GetModelindex() && ePEnt != this) return (0); - } /* other players don't need to know about these attributes */ if (ePEnt != self) { diff --git a/zpak001.pk3dir/default.cfg b/zpak001.pk3dir/default.cfg index 056395e..dc4eff9 100755 --- a/zpak001.pk3dir/default.cfg +++ b/zpak001.pk3dir/default.cfg @@ -38,3 +38,15 @@ bind "f2" "vote no" // Game Variables seta "hostname" "FreeTF Server" 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