float Client_customizeentityforclient()\r
{\r
entity modelsource;\r
+ string applymodel;\r
\r
if(self.modelindex == 0)\r
return TRUE;\r
other = other.enemy; // also do this for the player we are spectating\r
if(other.predator == self)\r
{\r
- tokenizebyseparator(self.playermodel, ".");\r
- Client_setmodel(strcat(argv(0), "_stomach.md3"));\r
+ applymodel = strcat(substring(self.playermodel, 0, strlen(self.playermodel) - 4), "_stomach.md3"); // 4 is the extension length\r
+ Client_setmodel(applymodel);\r
self.alpha = other.cvar_cl_vore_stomachmodel;\r
return TRUE;\r
}\r