From 5e939918e410317f97b61e539f4d78bab41d3066 Mon Sep 17 00:00:00 2001 From: Tyler Young Date: Wed, 29 Nov 2023 22:40:57 -0500 Subject: [PATCH] Account for dogs when teleporting --- source/server/entities/teleporter.qc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/server/entities/teleporter.qc b/source/server/entities/teleporter.qc index 80fdcc5..15c2d35 100644 --- a/source/server/entities/teleporter.qc +++ b/source/server/entities/teleporter.qc @@ -297,6 +297,15 @@ void() teleport_touch = people.tele_target = find(world, targetname, self.target); people.movetype = MOVETYPE_NONE; } + else if (people.classname == "ai_dog" && !people.electro_targeted) { + sound(self, CHAN_WEAPON, "sounds/machines/elec_shock.wav", 1, ATTN_NORM); + + tempe = self; + self = people; + self.electro_targeted = true; + self.th_die(); + self = tempe; + } else if (people.aistatus == "1" && !people.electro_targeted) { tempe = self;