Fulldigest - detach the dead player if he's still in the stomach of another player...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 20:21:09 +0000 (22:21 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 20:21:09 +0000 (22:21 +0200)
data/qcsrc/server/vore.qc

index 7e002a1aef7ecb8d1815a813c78ae60d7e4989b9..d6f5777a689a41a977a2f00132a5156ff2c059b7 100644 (file)
@@ -276,8 +276,8 @@ void Vore_PreyRelease(entity e)
        {\r
                Vore_DeadPrey_Configure(e);\r
 \r
-               // if fulldigest is enabled and the predator is dead or disconnected, detach the dead prey from him\r
-               if(self.fakepredator.classname != "player" || self.fakepredator.deadflag != DEAD_NO)\r
+               // if fulldigest is enabled and the predator disconnected, detach the dead prey\r
+               if(self.fakepredator.classname != "player")\r
                        Vore_DeadPrey_Detach(self);\r
        }\r
        else\r
@@ -514,6 +514,10 @@ void Vore()
 // Code that addresses the prey:\r
 // --------------------------------\r
 \r
+       // fulldigest - detach dead prey if their predator died while they were inside\r
+       if(self.fakepredator.classname == "player" && self.fakepredator.deadflag != DEAD_NO)\r
+               Vore_DeadPrey_Detach(self);\r
+\r
        if(self.predator.classname != "player")\r
                return;\r
 \r