]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Lower mage health
authorMario <mario.mario@y7mail.com>
Wed, 5 Jun 2013 19:11:08 +0000 (05:11 +1000)
committerMario <mario.mario@y7mail.com>
Wed, 5 Jun 2013 19:11:08 +0000 (05:11 +1000)
monsters.cfg
qcsrc/server/monsters/lib/monsters.qc

index 16b9c1084c697e9dc80a33a7d1930ef2f6ee2d7e..d39732507176a9bf3c6fde4294e0d28964674954 100644 (file)
@@ -144,7 +144,7 @@ set g_monster_stingray_speed_run 70 "Stingray run speed"
 
 // Mage
 set g_monster_mage 1 "Enable Mages"
-set g_monster_mage_health 400 "Mage health"
+set g_monster_mage_health 200 "Mage health"
 set g_monster_mage_drop health "Mage drops this item on death"
 set g_monster_mage_drop_size medium "Size of the item Mages drop. Possible values are: small, medium, large"
 set g_monster_mage_speed 50 "Mage move speed"
index 1a8cbb1992889a73aa502260ded504cc76cd7fa8..184181f81f6d5481e08315acfd0f3dee3674473d 100644 (file)
@@ -580,7 +580,10 @@ void monster_move(float runspeed, float walkspeed, float stopspeed, float manim_
                
        if(time >= self.last_trace)
        if not(monster_isvalidtarget(self.enemy, self))
-               self.enemy = world; // check enemy each think frame?
+               self.enemy = world;
+               
+       if(self.enemy && self.enemy.health < 1)
+               self.enemy = world; // enough!
                
        if not(self.enemy)
        {