]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Finally fix the model issues! Might be done in a slightly hackish way, as I couldn...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 5 Sep 2010 19:16:38 +0000 (22:16 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 5 Sep 2010 19:16:38 +0000 (22:16 +0300)
The issues were caused by attempting to animate the stomach model. Basically, if we animate the stomach model, that causes problems and lag. But there's no way to tell the animation code if that is the stomach model or the normal one, so the only alternative was not animating the model at all, which meant players were moving around like chess pieces. It seems that skipping an (useless) attempt to animate fixes it all however.

data/qcsrc/server/cl_client.qc
data/qcsrc/server/cl_player.qc

index aee74f091881c8a18ac5d619511b90e326ac6d39..11cf27c7df0b3f1631ace4719a4c114a09a3a345 100644 (file)
@@ -419,10 +419,7 @@ void setmodel_apply(string modelname)
 {\r
        precache_model(modelname);\r
        setmodel(self, modelname); // players have high precision\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
+       player_setupanimsformodel();\r
 }\r
 \r
 string setmodel_state()\r
index 64230edc39ca530eebcbc6614c18f4b387020d2a..a12a43bdab5451d4f13468375f89906da315c64e 100644 (file)
@@ -279,8 +279,13 @@ void player_setupanimsformodel()
        }\r
        else\r
                dprint("File ", animfilename, " not found, assuming legacy .zym model animation timings\n");\r
+\r
+       // the line below is disabled due to issues with the stomach model, which cannot be animated.\r
+       // customizeentityforclient cannot let this part of the code know whether it's the stomach model or normal\r
+       // player model we're using. Attempting to animate the stomach model causes BIG issues, and must not be allowed.\r
+\r
        // reset animstate now\r
-       setanim(self, self.anim_idle, TRUE, FALSE, TRUE);\r
+       //setanim(self, self.anim_idle, TRUE, FALSE, TRUE);\r
 };\r
 \r
 void player_anim (void)\r