]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Also use the proper alpha cvars for the swallow model
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 16 Jul 2011 23:49:06 +0000 (02:49 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 16 Jul 2011 23:49:06 +0000 (02:49 +0300)
data/qcsrc/server/vore.qc

index 484e689b88de13323bb59c2c61b17e6e2d61ea29..90b0bfaefe7cf3ddc13316b3d4b7935fcb5556c2 100644 (file)
@@ -207,10 +207,17 @@ void Vore_AutoDigest(entity e)
 float Vore_SwallowModel_CustomizeEntityForClient()\r
 {\r
        // use the same system as the weapon model\r
+\r
        self.viewmodelforclient = self.owner;\r
+       self.alpha = self.owner.cvar_cl_vore_swallowmodel;\r
+\r
        if(other.classname == "spectator")\r
-               if(other.enemy == self.owner)\r
-                       self.viewmodelforclient = other;\r
+       if(other.enemy == self.owner)\r
+       {\r
+               self.viewmodelforclient = other;\r
+               self.alpha = other.cvar_cl_vore_swallowmodel;\r
+       }\r
+\r
        return TRUE;\r
 }\r
 \r
@@ -232,7 +239,6 @@ void Vore_SwallowModel_Think()
        }\r
 \r
        // properties that should update whenever possible, but when the predator is not available\r
-       self.alpha = self.owner.cvar_cl_vore_swallowmodel;\r
        self.nextthink = time;\r
 }\r
 \r