]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
use a different system for applying the belly states
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 8 Sep 2010 16:42:16 +0000 (19:42 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 8 Sep 2010 16:42:16 +0000 (19:42 +0300)
data/qcsrc/server/cl_client.qc

index 6796402580c015e5ae9f54f7c0c0ec2eff41daeb..021cf9eaf8534c7bb8480ee145176e51242c6724 100644 (file)
@@ -430,12 +430,8 @@ string setmodel_state()
        newmodel_name = argv(0);\r
        newmodel_extension = argv(1);\r
 \r
-       if(self.stomach_load >= 3)\r
-               applymodel = strcat(newmodel_name, "_state3.", newmodel_extension);\r
-       else if(self.stomach_load >= 2)\r
-               applymodel = strcat(newmodel_name, "_state2.", newmodel_extension);\r
-       else if(self.stomach_load >= 1)\r
-               applymodel = strcat(newmodel_name, "_state1.", newmodel_extension);\r
+       if(self.stomach_load)\r
+               applymodel = strcat(newmodel_name, "_state", ftos(floor(self.stomach_load)), ".", newmodel_extension);\r
        else\r
                applymodel = self.playermodel;\r
 \r