]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Code functionality for ammo digits. Grabber display is now fully functional, but...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 17 Nov 2011 17:43:36 +0000 (19:43 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 17 Nov 2011 17:43:36 +0000 (19:43 +0200)
data/qcsrc/server/cl_weaponsystem.qc

index 015fb264c934fc9ee187fc5f5f7dce32be575224..2d55ff26048edf2c733a471a45294c2229afdfaa 100644 (file)
@@ -1630,6 +1630,12 @@ void W_DisplayDigitThink()
                        self.skin = stof(txt);\r
                }\r
        }\r
+       else // ammo display\r
+       {\r
+               txt = ftos(self.owner.(self.owner.current_ammo));\r
+               txt = substring(txt, self.cnt - 1, 1);\r
+               self.skin = stof(txt);\r
+       }\r
 \r
        self.nextthink = time;\r
 }\r