Improve player networking-culling.

This commit is contained in:
Marco Cawthorne 2022-05-01 17:02:44 -07:00
parent f1fb9eb76e
commit 281b50d69d
Signed by: eukara
GPG Key ID: C196CD8BA993248A
2 changed files with 15 additions and 7 deletions

View File

@ -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) {

View File

@ -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