]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/g_triggers.qc
Improve the detection of the automatic "help me" notifier
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_triggers.qc
index ab12fc326569d45f164c4f7d4e6ca2863e4886a0..20ddc655170cfbc483ff0b41fe22ccec1e2c2284 100644 (file)
@@ -548,6 +548,7 @@ void trigger_heal_touch()
        if (other.iscreature)
        {
                if (other.takedamage)
+               if (!other.deadflag)
                if (other.triggerhealtime < time)
                {
                        EXACTTRIGGER_TOUCH;
@@ -1393,6 +1394,8 @@ void trigger_impulse_touch1()
         return;
     }
 
+    str = min(self.radius, vlen(self.origin - other.origin));
+
     if(self.falloff == 1)
         str = (str / self.radius) * self.strength;
     else if(self.falloff == 2)