From: MirceaKitsune Date: Sat, 16 Jul 2011 23:49:06 +0000 (+0300) Subject: Also use the proper alpha cvars for the swallow model X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9734da736981b1b9dfa12f5a82fdfe713d4489b6;p=voretournament%2Fvoretournament.git Also use the proper alpha cvars for the swallow model --- 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; }