From 3545ddcc2d22b9263d9e4d32b6131343ac1e1952 Mon Sep 17 00:00:00 2001 From: FruitieX Date: Sat, 16 Apr 2011 14:54:46 +0300 Subject: [PATCH] bring back the serverside cull distance, why it didn't work was because of a stupid stupid issue that we can all forget about. :D --- defaultXonotic.cfg | 2 +- qcsrc/server/cl_player.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg index 546b677c0..675034af3 100644 --- a/defaultXonotic.cfg +++ b/defaultXonotic.cfg @@ -402,7 +402,7 @@ net_connecttimeout 30 sv_jumpstep 1 // step up stairs while jumping, makes it easier to reach ledges set ekg 0 "Throw huge amounts of gibs" -sv_shownames_cull_distance 2500 "distance after which to not send origin/health/armor of another player" +seta sv_shownames_cull_distance 2500 "distance after which to not send origin/health/armor of another player" cl_movement 1 cl_movement_track_canjump 0 diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index bd5bb8d1c..67e9dfd30 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -778,7 +778,7 @@ void shownames_think() float shownames_customize() { if(self.owner != other) // no need to spam own coordinates - //if(vlen(other.origin + self.origin) < autocvar_sv_shownames_cull_distance) // distance cull + if(vlen(other.origin - self.origin) < autocvar_sv_shownames_cull_distance) // distance cull if(self.owner.team == other.team || (self.owner.team != other.team && checkpvs(self.origin, other))) return TRUE; -- 2.39.2