From: MirceaKitsune Date: Wed, 8 Sep 2010 17:10:23 +0000 (+0300) Subject: Do the same for the stomach model X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d2f96ed1ff0b39bdb886a6bf054b6c1136c3a683;p=voretournament%2Fvoretournament.git Do the same for the stomach model --- diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 1905968d..74ab85b1 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -466,6 +466,7 @@ void Client_uncustomizeentityforclient() float Client_customizeentityforclient() { entity modelsource; + string applymodel; if(self.modelindex == 0) return TRUE; @@ -520,8 +521,8 @@ float Client_customizeentityforclient() other = other.enemy; // also do this for the player we are spectating if(other.predator == self) { - tokenizebyseparator(self.playermodel, "."); - Client_setmodel(strcat(argv(0), "_stomach.md3")); + applymodel = strcat(substring(self.playermodel, 0, strlen(self.playermodel) - 4), "_stomach.md3"); // 4 is the extension length + Client_setmodel(applymodel); self.alpha = other.cvar_cl_vore_stomachmodel; return TRUE; }