]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Zombie re-spawns regardless of settings
authorMario <mario.mario@y7mail.com>
Fri, 30 Aug 2013 10:17:28 +0000 (20:17 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 30 Aug 2013 10:17:28 +0000 (20:17 +1000)
qcsrc/common/monsters/monster/zombie.qc
qcsrc/common/monsters/sv_monsters.qc

index 880f7c08ff7d10ba86b1f61b26a8ef33d8b19f50..53b392ca2cd0fe40ec164069962455f31a7156ea 100644 (file)
@@ -143,12 +143,15 @@ float m_zombie(float req)
                {
                        if not(self.health) self.health = MON_CVAR(zombie, health);
                        
+                       if(self.spawnflags & MONSTERFLAG_NORESPAWN)
+                               self.spawnflags &~= MONSTERFLAG_NORESPAWN; // zombies always respawn
+                       
                        self.monster_loot = spawnfunc_item_health_medium;
                        self.monster_attackfunc = zombie_attack;
                        monsters_setframe(zombie_anim_spawn);
                        self.spawn_time = time + 2.1;
                        self.spawnshieldtime = self.spawn_time;
-                       self.respawntime = 0.1;
+                       self.respawntime = 0.2;
                        
                        return TRUE;
                }
index 3c8d25c136016f05bd5afdb5f6f0ae729486b2d9..aa0f0d0fbed390a6c91cd9859db9646000cc7308 100644 (file)
@@ -266,10 +266,9 @@ void Monster_Fade ()
                
                self.SendFlags |= MSF_MOVE;
                self.SendFlags |= MSF_STATUS;
-               
-               return;
        }
-       SUB_SetFade(self, time + 3, 1);
+       else
+               SUB_SetFade(self, time + 3, 1);
 }
 
 float Monster_CanJump (vector vel)
@@ -956,7 +955,7 @@ void monster_spawn()
        self.think = monster_think;
        self.nextthink = time + self.ticrate;
        
-       self.SendFlags = MSF_SETUP;
+       self.SendFlags |= MSF_SETUP;
 }
 
 float monster_initialize(float mon_id, float nodrop)