From 21a701a112d52a13cecc09fb527cad65bd64443d Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 21 Aug 2016 16:09:46 +1000 Subject: [PATCH] Allow only showing a waypoint on the radar --- qcsrc/common/mutators/mutator/waypoints/all.qh | 2 +- qcsrc/common/mutators/mutator/waypoints/waypointsprites.qc | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/mutators/mutator/waypoints/all.qh b/qcsrc/common/mutators/mutator/waypoints/all.qh index 4645130551..e08d9e9873 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 e99303823b..4c98f32821 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); -- 2.39.2