return plyermodel;\r
}\r
\r
-void setmodel_apply(string modelname)\r
+void setmodel_apply(string modelname, float reset_anims)\r
{\r
precache_model(modelname);\r
setmodel(self, modelname); // players have high precision\r
- player_setupanimsformodel();\r
+ if(reset_anims)\r
+ player_setupanimsformodel();\r
}\r
\r
string setmodel_state()\r
applymodel = CheckPlayerModel(applymodel); // this is never "", so no endless loop\r
m1 = self.mins;\r
m2 = self.maxs;\r
- setmodel_apply(applymodel);\r
+ setmodel_apply(applymodel, FALSE);\r
setsize (self, m1, m2);\r
}\r
\r
if(self.model != stomachmodel) // don't execute each frame\r
{\r
Client_setmodel(stomachmodel);\r
- self.frame = 0; // don't use any animations as a stomach\r
self.alpha = other.cvar_cl_vore_stomachmodel;\r
}\r
return TRUE;\r
{\r
m1 = self.mins;\r
m2 = self.maxs;\r
- setmodel_apply (defaultmodel);\r
+ setmodel_apply (defaultmodel, TRUE);\r
setsize (self, m1, m2);\r
chmdl = TRUE;\r
}\r
self.playermodel = CheckPlayerModel(self.playermodel); // this is never "", so no endless loop\r
m1 = self.mins;\r
m2 = self.maxs;\r
- setmodel_apply (self.playermodel);\r
+ setmodel_apply (self.playermodel, TRUE);\r
setsize (self, m1, m2);\r
chmdl = TRUE;\r
}\r
void player_setupanimsformodel()\r
{\r
// if this is the stomach model (or any model that can't be animated), don't attempt to animate\r
- if(substring(self.model, strlen(self.model) - 3, 3) == "md3") // check model extension\r
- return;\r
+ //if(substring(self.model, strlen(self.model) - 3, 3) == "md3") // check model extension\r
+ // return;\r
\r
local string animfilename;\r
local float animfile;\r
void player_anim (void)\r
{\r
// if this is the stomach model (or any model that can't be animated), don't attempt to animate\r
- if(substring(self.model, strlen(self.model) - 3, 3) == "md3") // check model extension\r
- return;\r
+ //if(substring(self.model, strlen(self.model) - 3, 3) == "md3") // check model extension\r
+ // return;\r
\r
updateanim(self);\r
if (self.weaponentity)\r