Use modelindex to hide dead fakeprey. Also fix another issue, which was causing the...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 16 Apr 2011 15:42:27 +0000 (18:42 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 16 Apr 2011 15:42:27 +0000 (18:42 +0300)
data/qcsrc/server/cl_weaponsystem.qc
data/qcsrc/server/vore.qc

index 00360d6..d806913 100644 (file)
@@ -262,7 +262,7 @@ float CL_ExteriorWeaponentity_CustomizeEntityForClient()
        }\r
        if(other.spectatee_status)\r
                other = other.enemy; // also do this for the player we are spectating\r
-       if(other.predator == self.owner)\r
+       if(other.predator == self.owner || other.fakepredator == self.owner)\r
        {\r
                setmodel(self, "");\r
                return TRUE;\r
index c4b467e..1df5d2f 100644 (file)
@@ -286,7 +286,7 @@ void Vore_DeadPrey_Configure(entity e)
        e.aiment = e.fakepredator;\r
 \r
        // completely remove the dead body\r
-       e.alpha = -1;\r
+       e.modelindex = 0;\r
 }\r
 \r
 void Vore_DeadPrey_Detach(entity e)\r