{\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
\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