mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-29 07:12:20 +00:00
Account for dogs when teleporting
This commit is contained in:
parent
e59403f7c8
commit
5e939918e4
1 changed files with 9 additions and 0 deletions
|
@ -296,6 +296,15 @@ void() teleport_touch =
|
||||||
if (people.classname == "player") {
|
if (people.classname == "player") {
|
||||||
people.tele_target = find(world, targetname, self.target);
|
people.tele_target = find(world, targetname, self.target);
|
||||||
people.movetype = MOVETYPE_NONE;
|
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)
|
else if (people.aistatus == "1" && !people.electro_targeted)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue