]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/vore.qc
First part of the predator stomach board; Send the stomach load stat of the predator...
[voretournament/voretournament.git] / data / qcsrc / server / vore.qc
index 836c0912e07628a837f83a3629a6367978a77592..0e853a417f46ef2aec4b4e04cdd7fb3aada750ec 100644 (file)
@@ -237,6 +237,12 @@ void Vore_Gurglesound()
 \r
 void Vore()\r
 {\r
+       // if we are free, show our stomach load on the HUD. Otherwise, show the predator's\r
+       if(self.eater.classname == "player")\r
+               self.stat_stomachload = self.eater.stomach_load;\r
+       else\r
+               self.stat_stomachload = self.stomach_load;\r
+\r
        // skip the vore system under some circumstances\r
        if(time < game_starttime)\r
        {\r