From: Mario Date: Sun, 21 Aug 2016 06:09:46 +0000 (+1000) Subject: Allow only showing a waypoint on the radar X-Git-Tag: xonotic-v0.8.2~690 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=21a701a112d52a13cecc09fb527cad65bd64443d;p=xonotic%2Fxonotic-data.pk3dir.git Allow only showing a waypoint on the radar --- diff --git a/qcsrc/common/mutators/mutator/waypoints/all.qh b/qcsrc/common/mutators/mutator/waypoints/all.qh index 464513055..e08d9e987 100644 --- a/qcsrc/common/mutators/mutator/waypoints/all.qh +++ b/qcsrc/common/mutators/mutator/waypoints/all.qh @@ -3,7 +3,7 @@ #include "waypointsprites.qh" -REGISTRY(Waypoints, BITS(6)) +REGISTRY(Waypoints, BITS(7)) #define Waypoints_from(i) _Waypoints_from(i, WP_Null) REGISTER_REGISTRY(Waypoints) REGISTRY_CHECK(Waypoints) diff --git a/qcsrc/common/mutators/mutator/waypoints/waypointsprites.qc b/qcsrc/common/mutators/mutator/waypoints/waypointsprites.qc index e99303823..4c98f3282 100644 --- a/qcsrc/common/mutators/mutator/waypoints/waypointsprites.qc +++ b/qcsrc/common/mutators/mutator/waypoints/waypointsprites.qc @@ -18,10 +18,12 @@ bool WaypointSprite_SendEntity(entity this, entity to, float sendflags) sendflags |= 0x80; int f = 0; - if(this.currentammo) + if(this.currentammo == 1) f |= 1; // hideable if(this.exteriormodeltoclient == to) f |= 2; // my own + if(this.currentammo == 2) + f |= 2; // radar only MUTATOR_CALLHOOK(SendWaypoint, this, to, sendflags, f); sendflags = M_ARGV(2, int);