Improve player networking-culling

This commit is contained in:
Marco Cawthorne 2022-05-01 17:04:20 -07:00
parent b05e82082f
commit 7ed50ada4a
Signed by: eukara
GPG Key ID: C196CD8BA993248A
2 changed files with 16 additions and 5 deletions

View File

@ -445,13 +445,11 @@ player::SendEntity
float
player::SendEntity(entity ePEnt, float fChanged)
{
if (health <= 0 && ePEnt != this) {
/* don't broadcast invisible players */
if (IsFakeSpectator() && ePEnt != this)
return (0);
}
if (clienttype(ePEnt) != CLIENTTYPE_REAL) {
if (!GetModelindex() && ePEnt != this)
return (0);
}
if (ePEnt != self) {
fChanged &= ~PLAYER_ITEMS;

View File

@ -45,3 +45,16 @@ seta "maxplayers" "8"
seta "con_color" "255 0 0"
seta "vgui_color" "255 0 0"
seta "cross_color" "255 0 0"
// 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