]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add comments
authorSamual <samual@xonotic.org>
Mon, 2 Apr 2012 05:26:26 +0000 (01:26 -0400)
committerSamual <samual@xonotic.org>
Mon, 2 Apr 2012 05:26:26 +0000 (01:26 -0400)
qcsrc/server/mutators/gamemode_ctf.qc

index 6f07f843d64a6b96f99c722388a846a24a5a27b6..f93498377cceb16d8c837842c8e18ebce1f9207c 100644 (file)
@@ -1038,11 +1038,11 @@ MUTATOR_HOOKFUNCTION(ctf_PlayerUseKey)
 
 MUTATOR_HOOKFUNCTION(ctf_HelpMePing)
 {
-       if(self.wps_flagcarrier)
+       if(self.wps_flagcarrier) // update the flagcarrier waypointsprite with "NEEDING HELP" notification
        {
                WaypointSprite_HelpMePing(self.wps_flagcarrier);
        } 
-       else
+       else // create a normal help me waypointsprite
        {
                WaypointSprite_Spawn("helpme", waypointsprite_deployed_lifetime, waypointsprite_limitedrange, self, FLAG_WAYPOINT_OFFSET, world, self.team, self, wps_helpme, FALSE, RADARICON_HELPME, '1 0.5 0');
                WaypointSprite_Ping(self.wps_helpme);