]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
bring back the serverside cull distance, why it didn't work was because of a stupid...
authorFruitieX <fruitiex@gmail.com>
Sat, 16 Apr 2011 11:54:46 +0000 (14:54 +0300)
committerFruitieX <fruitiex@gmail.com>
Sat, 16 Apr 2011 11:54:46 +0000 (14:54 +0300)
defaultXonotic.cfg
qcsrc/server/cl_player.qc

index 546b677c02a56a0aeadca827003843ae95aa0d50..675034af3b8459a43afe146f60cd6b7c1f693826 100644 (file)
@@ -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
index bd5bb8d1c21c10a63458c4cfeabaea77e214fc08..67e9dfd3016cc44ff83f8feff94fd1492357ed60 100644 (file)
@@ -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;