From d2f96ed1ff0b39bdb886a6bf054b6c1136c3a683 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Wed, 8 Sep 2010 20:10:23 +0300 Subject: [PATCH] Do the same for the stomach model --- data/qcsrc/server/cl_client.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.39.2