From 9734da736981b1b9dfa12f5a82fdfe713d4489b6 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 17 Jul 2011 02:49:06 +0300 Subject: [PATCH] Also use the proper alpha cvars for the swallow model --- data/qcsrc/server/vore.qc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 484e689b..90b0bfae 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -207,10 +207,17 @@ void Vore_AutoDigest(entity e) float Vore_SwallowModel_CustomizeEntityForClient() { // use the same system as the weapon model + self.viewmodelforclient = self.owner; + self.alpha = self.owner.cvar_cl_vore_swallowmodel; + if(other.classname == "spectator") - if(other.enemy == self.owner) - self.viewmodelforclient = other; + if(other.enemy == self.owner) + { + self.viewmodelforclient = other; + self.alpha = other.cvar_cl_vore_swallowmodel; + } + return TRUE; } @@ -232,7 +239,6 @@ void Vore_SwallowModel_Think() } // properties that should update whenever possible, but when the predator is not available - self.alpha = self.owner.cvar_cl_vore_swallowmodel; self.nextthink = time; } -- 2.39.2