// set the proper belly model depending on how full we are\r
string newmodel_name, newmodel_extension, applymodel;\r
\r
- tokenizebyseparator(self.playermodel, ".");\r
- newmodel_name = argv(0);\r
- newmodel_extension = argv(1);\r
+ // 4 is the extension length\r
+ newmodel_name = substring(self.playermodel, 0, strlen(self.playermodel) - 4);\r
+ newmodel_extension = substring(self.playermodel, strlen(self.playermodel) - 4, 4);\r
\r
if(self.stomach_load)\r
- applymodel = strcat(newmodel_name, "_state", ftos(floor(self.stomach_load)), ".", newmodel_extension);\r
+ applymodel = strcat(newmodel_name, "_state", ftos(floor(self.stomach_load)), newmodel_extension);\r
else\r
applymodel = self.playermodel;\r
\r