]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/vore.qc
Don't start digestion if we already ate someone, as that means we manually disabled...
[voretournament/voretournament.git] / data / qcsrc / server / vore.qc
index b3fd18fd7a71fdcfb8d38eb84566067b71656686..863f8b61c1f9d1775b5ad76d8e5626c2ee4f24df 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