]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/g_violence.qc
Players who are inside a stomach cannot gib / bleed outside of it
[voretournament/voretournament.git] / data / qcsrc / server / g_violence.qc
index 64ab4ea271a2a23191c7894eb41150e0437608b4..a6c6d8b03644cd6990708a5426647070fa2d64f7 100644 (file)
@@ -13,6 +13,9 @@ float Violence_GibSplash_SendEntity(entity to, float sf)
 // TODO maybe convert this to a TE?\r
 void Violence_GibSplash_At(vector org, vector dir, float type, float amount, entity gibowner, entity attacker)\r
 {\r
+       if(gibowner.eater.classname == "player")\r
+               return; // you can't bleed or gib outside of the stomach\r
+\r
        entity e;\r
 \r
        e = spawn();\r