Players who are inside a stomach cannot gib / bleed outside of it
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 5 Sep 2010 15:14:10 +0000 (18:14 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 5 Sep 2010 15:14:10 +0000 (18:14 +0300)
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