From: MirceaKitsune Date: Sun, 27 Feb 2011 15:34:46 +0000 (+0200) Subject: Fix all remaining known issues with the full digest feature. There might still be... X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=5d8cde51e02dac8539d6a63fb0b5ff1329ce122b Fix all remaining known issues with the full digest feature. There might still be some bugs left though. --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 70bdd863..23e66d44 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -231,7 +231,7 @@ void Vore_DeadPrey_Configure(entity e) { // ran when the fulldigest feature is enabled and prey stays inside the stomach after dying - if(e.fakepredator.classname == "player") + if(e.fakepredator.classname == "player" || e.predator.classname != "player") return; // this entity is pretty much like e.predator but for dead prey, to avoid some conflicts @@ -245,8 +245,12 @@ void Vore_DeadPrey_Configure(entity e) // now, keep our dead prey inside the predator's stomach e.movetype = MOVETYPE_FOLLOW; + e.takedamage = DAMAGE_NO; + e.solid = SOLID_NOT; e.aiment = e.fakepredator; + // completely hide the dead body e.alpha = -1; + setmodel(e, ""); } void Vore_DeadPrey_Detach(entity e)