From: MirceaKitsune Date: Sat, 16 Apr 2011 12:35:17 +0000 (+0300) Subject: Finally fix the server code attempting to animate stomach models... an issue which... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e3809e5f58cb6427a43cbd18d8f5e415248e3e7c;p=voretournament%2Fvoretournament.git Finally fix the server code attempting to animate stomach models... an issue which VT always had. No more console spam with "missing frames" when you're in the belly. Yay :D --- diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index a946c854..b9f654aa 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -526,6 +526,7 @@ float Client_customizeentityforclient() { applymodel = strcat(substring(self.playermodel, 0, strlen(self.playermodel) - 4), "_stomach.md3"); // 4 is the extension length Client_setmodel(applymodel); + self.frame = 0; // don't use any animations as a stomach self.alpha = other.cvar_cl_vore_stomachmodel; return TRUE; } diff --git a/data/qcsrc/server/cl_player.qc b/data/qcsrc/server/cl_player.qc index 36542cf7..401c8082 100644 --- a/data/qcsrc/server/cl_player.qc +++ b/data/qcsrc/server/cl_player.qc @@ -292,6 +292,10 @@ void player_setupanimsformodel() void player_anim (void) { + // if this is the stomach model (or any model that can't be animated), don't attempt to animate + if(substring(self.model, strlen(self.model) - 3, 3) == "md3") // check model extension + return; + updateanim(self); if (self.weaponentity) updateanim(self.weaponentity);