Don't start digestion if we already ate someone, as that means we manually disabled...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 21:13:12 +0000 (23:13 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 21:13:12 +0000 (23:13 +0200)
data/qcsrc/server/vore.qc

index b3fd18f..863f8b6 100644 (file)
@@ -144,12 +144,12 @@ void Vore_AutoDigest(entity e)
 {\r
        // if the predator has the autodigest preference enabled, begin digesting new prey automatically\r
 \r
-       if not(cvar("g_vore_digestion"))\r
+       if(!cvar("g_vore_digestion") || e.digesting)\r
                return;\r
-       if not(e.cvar_cl_vore_autodigest)\r
-               return;\r
-       if(clienttype(e) != CLIENTTYPE_REAL)\r
-               return; // this feature is only for players\r
+       if(!e.cvar_cl_vore_autodigest || clienttype(e) != CLIENTTYPE_REAL)\r
+               return; // this feature is only for players, not bots\r
+       if(e.stomach_load > 1)\r
+               return; // don't start digestion if we already ate someone, as that means we manually disabled it after the first prey and want it off\r
 \r
        entity head;\r
        if(teams_matter)\r