]> git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/cl_client.qc
Don't allow prey that's still being digested to respawn
[voretournament/voretournament.git] / data / qcsrc / server / cl_client.qc
index d735eb09a5d62ee3f6b47db377de81b23262d424..8a5030532ddb94d732942840801aa113c42421fa 100644 (file)
@@ -1742,6 +1742,11 @@ void UpdateChatBubble()
 .float oldcolormap;\r
 void respawn(void)\r
 {\r
+       // don't allow respawing if the prey is still digesting\r
+       if(cvar("g_balance_vore_digestion_limit_blockrespawn"))\r
+       if(self.predator.digesting && self.health > cvar("g_balance_vore_digestion_limit"))\r
+               return;\r
+\r
        if(self.alpha >= 0 && self.modelindex != 0 && cvar("g_respawn_ghosts"))\r
        {\r
                self.solid = SOLID_NOT;\r