]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't use player ammo/health checks when looking for a monster friend to heal
authorMario <mario.mario@y7mail.com>
Tue, 23 Apr 2013 07:00:54 +0000 (17:00 +1000)
committerMario <mario.mario@y7mail.com>
Tue, 23 Apr 2013 07:00:54 +0000 (17:00 +1000)
qcsrc/server/monsters/monster/shalrath.qc

index 003b69781d4d9b41c279a2ec9e75ef15836e7ef2..e8505868b2a3a7f546e2060e94ed297e07ad1922 100644 (file)
@@ -65,7 +65,7 @@ void shalrath_think ()
                if not(IsDifferentTeam(head, self))
                if(head.health > 0)
                if(vlen(head.origin - self.origin) < autocvar_g_monster_shalrath_heal_range)
-               if((!g_minstagib && head.health < autocvar_g_balance_health_regenstable) || (g_minstagib && head.ammo_cells < start_ammo_cells))
+               if(head.health < head.max_health)
                {
                        friend_needshelp = TRUE;
                        break; // found 1 player near us who is low on health