Fix all remaining known issues with the full digest feature. There might still be...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 15:34:46 +0000 (17:34 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 15:34:46 +0000 (17:34 +0200)
data/qcsrc/server/vore.qc

index 70bdd8632066b3703a96bd2b349771be62dffd77..23e66d44d40350809a0ca25928145d4551225e86 100644 (file)
@@ -231,7 +231,7 @@ void Vore_DeadPrey_Configure(entity e)
 {\r
        // ran when the fulldigest feature is enabled and prey stays inside the stomach after dying\r
 \r
-       if(e.fakepredator.classname == "player")\r
+       if(e.fakepredator.classname == "player" || e.predator.classname != "player")\r
                return;\r
 \r
        // this entity is pretty much like e.predator but for dead prey, to avoid some conflicts\r
@@ -245,8 +245,12 @@ void Vore_DeadPrey_Configure(entity e)
 \r
        // now, keep our dead prey inside the predator's stomach\r
        e.movetype = MOVETYPE_FOLLOW;\r
+       e.takedamage = DAMAGE_NO;\r
+       e.solid = SOLID_NOT;\r
        e.aiment = e.fakepredator;\r
+       // completely hide the dead body\r
        e.alpha = -1;\r
+       setmodel(e, "");\r
 }\r
 \r
 void Vore_DeadPrey_Detach(entity e)\r