From db767b5af83318281c1716a92e2649dba0f24dd3 Mon Sep 17 00:00:00 2001 From: Steam Deck User Date: Fri, 13 Jan 2023 10:58:57 -0500 Subject: [PATCH] SERVER: Add zombie limb support to the Zapper --- source/server/entities/traps.qc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/server/entities/traps.qc b/source/server/entities/traps.qc index 71aca48..0318154 100644 --- a/source/server/entities/traps.qc +++ b/source/server/entities/traps.qc @@ -92,6 +92,11 @@ void() zapper_do_damage // - Has a chance to gib. // - No normal death sound, play elec sound on contact, then // again on death. + if (other.classname == "ai_zombie_head" || other.classname == "ai_zombie_rarm" + || other.classname == "ai_zombie_larm") { + // If we're a limb, grab our body. + other = other.owner; + } if (other.classname == "ai_zombie" && !other.electro_targeted) { tempe = self; self = other;