From: MirceaKitsune Date: Wed, 8 Sep 2010 16:42:16 +0000 (+0300) Subject: use a different system for applying the belly states X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=de90efbc04e63ca3080b5f0051a385df6a12438f;p=voretournament%2Fvoretournament.git use a different system for applying the belly states --- diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 67964025..021cf9ea 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -430,12 +430,8 @@ string setmodel_state() newmodel_name = argv(0); newmodel_extension = argv(1); - if(self.stomach_load >= 3) - applymodel = strcat(newmodel_name, "_state3.", newmodel_extension); - else if(self.stomach_load >= 2) - applymodel = strcat(newmodel_name, "_state2.", newmodel_extension); - else if(self.stomach_load >= 1) - applymodel = strcat(newmodel_name, "_state1.", newmodel_extension); + if(self.stomach_load) + applymodel = strcat(newmodel_name, "_state", ftos(floor(self.stomach_load)), ".", newmodel_extension); else applymodel = self.playermodel;