]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/g_grabber.qc
Many fixes and adaptations to the Accuracy Stats window, and get the Grabber to prope...
[voretournament/voretournament.git] / data / qcsrc / server / g_grabber.qc
index 28b687e5a8a9a000ee90183dc9372998d7e1444a..1c3361e1f929e5403ed5a8d88dac9d333a7dc526 100644 (file)
@@ -266,6 +266,7 @@ void GrabberTouch (void)
                if(other.movetype != MOVETYPE_NONE)\r
                {\r
                        SetMovetypeFollow(self, other);\r
+                       W_Grabber_UpdateStats(self.owner, FALSE, TRUE); // count this as a hit\r
                        WarpZone_RefSys_BeginAddingIncrementally(self, self.aiment);\r
                }\r
 \r
@@ -294,6 +295,8 @@ void FireGrabber (void)
        local entity missile;\r
        local vector org;\r
 \r
+       W_Grabber_UpdateStats(self, TRUE, FALSE);\r
+\r
        if((arena_roundbased && time < warmup) || (time < game_starttime))\r
                return;\r
 \r