From: MirceaKitsune Date: Sun, 5 Sep 2010 18:13:18 +0000 (+0300) Subject: First step toward fixing a big issue with animations caused by the stomach model X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=8dc6d951d2e109ccf8966e2c408343161e2d8cda;p=voretournament%2Fvoretournament.git First step toward fixing a big issue with animations caused by the stomach model --- diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 11cf27c7..aee74f09 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -419,7 +419,10 @@ void setmodel_apply(string modelname) { precache_model(modelname); setmodel(self, modelname); // players have high precision - player_setupanimsformodel(); + + // don't attempt to animate the stomach model + if not(substring(modelname, strlen(modelname) - 8 - 4, 8) == "_stomach") // - 4 is the extension + player_setupanimsformodel(); } string setmodel_state() diff --git a/data/qcsrc/server/g_subs.qc b/data/qcsrc/server/g_subs.qc index 28511b0a..49aaebf6 100644 --- a/data/qcsrc/server/g_subs.qc +++ b/data/qcsrc/server/g_subs.qc @@ -16,10 +16,6 @@ void spawnfunc_info_null (void) void setanim(entity e, vector anim, float looping, float override, float restart) { - // don't attempt to animate the stomach model - if(substring(self.model, strlen(self.model) - 8 - 4, 8) == "_stomach") // - 4 is the extension - return; - if (anim_x == e.animstate_startframe) if (anim_y == e.animstate_numframes) if (anim_z == e.animstate_framerate)