Account for dogs when teleporting

This commit is contained in:
Tyler Young 2023-11-29 22:40:57 -05:00
parent e59403f7c8
commit 5e939918e4

View file

@ -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;