]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
First step toward fixing a big issue with animations caused by the stomach model
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 5 Sep 2010 18:13:18 +0000 (21:13 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 5 Sep 2010 18:13:18 +0000 (21:13 +0300)
data/qcsrc/server/cl_client.qc
data/qcsrc/server/g_subs.qc

index 11cf27c7df0b3f1631ace4719a4c114a09a3a345..aee74f091881c8a18ac5d619511b90e326ac6d39 100644 (file)
@@ -419,7 +419,10 @@ void setmodel_apply(string modelname)
 {\r
        precache_model(modelname);\r
        setmodel(self, modelname); // players have high precision\r
-       player_setupanimsformodel();\r
+\r
+       // don't attempt to animate the stomach model\r
+       if not(substring(modelname, strlen(modelname) - 8 - 4, 8) == "_stomach") // - 4 is the extension\r
+               player_setupanimsformodel();\r
 }\r
 \r
 string setmodel_state()\r
index 28511b0ad0b91c9b4ef7def58fdbc466d7995c4c..49aaebf6f7be52242bd84810085dc115d1baf095 100644 (file)
@@ -16,10 +16,6 @@ void spawnfunc_info_null (void)
 \r
 void setanim(entity e, vector anim, float looping, float override, float restart)\r
 {\r
-       // don't attempt to animate the stomach model\r
-       if(substring(self.model, strlen(self.model) - 8 - 4, 8) == "_stomach") // - 4 is the extension\r
-               return;\r
-\r
        if (anim_x == e.animstate_startframe)\r
        if (anim_y == e.animstate_numframes)\r
        if (anim_z == e.animstate_framerate)\r