]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Same thing in player_setupanimsformodel(), to fix legacy animation issues
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 16 Apr 2011 12:57:58 +0000 (15:57 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 16 Apr 2011 12:57:58 +0000 (15:57 +0300)
data/qcsrc/server/cl_player.qc

index 401c8082e9fbb19e574b84697765d97b5aca64dd..3e6c69df8020233ff1eb84130d48b3910e92d36a 100644 (file)
@@ -218,6 +218,10 @@ float player_getspecies()
 \r
 void player_setupanimsformodel()\r
 {\r
+       // if this is the stomach model (or any model that can't be animated), don't attempt to animate\r
+       if(substring(self.model, strlen(self.model) - 3, 3) == "md3") // check model extension\r
+               return;\r
+\r
        local string animfilename;\r
        local float animfile;\r
        // defaults for legacy .zym models without animinfo files\r