]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/vore.qc
Finally, remove the last known bugs, and nail the last known issues in the fulldigest...
[voretournament/voretournament.git] / data / qcsrc / server / vore.qc
index f8f986313fa7626e3be51aa12909231fcaa22af7..c29dc25281e3ec3c677ff992812622ab79660646 100644 (file)
@@ -231,11 +231,12 @@ 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" || e.predator.classname != "player") // already configured\r
+       if(e.fakeprey || e.predator.classname != "player") // already configured\r
                return;\r
 \r
        // this entity is like e.predator but for dead prey, to avoid conflicts\r
        e.fakepredator = e.predator;\r
+       e.fakeprey = TRUE;\r
 \r
        // first release the prey from the predator, as dead prey needs to be attached differently\r
        // the predator's stomach load is also decreased, as dead prey doesn't count any more\r
@@ -251,7 +252,6 @@ void Vore_DeadPrey_Configure(entity e)
 \r
        // completely remove the dead body\r
        e.alpha = -1;\r
-       setmodel(e, "");\r
 }\r
 \r
 void Vore_DeadPrey_Detach(entity e)\r
@@ -264,6 +264,9 @@ void Vore_DeadPrey_Detach(entity e)
 \r
        e.fakepredator = world;\r
        e.aiment = world;\r
+\r
+       if(!e.deadflag)\r
+               e.fakeprey = FALSE;\r
 }\r
 \r
 void Vore_PreyRelease(entity e)\r