.string oldtarget2;
-.float respawnflags;
-const float MONSTER_RESPAWN_SPAWNPOINT = 0; // re-spawn at original spawn point
-const float MONSTER_RESPAWN_DEATHPOINT = 1; // re-spawn where we died
+const float MONSTER_RESPAWN_SPAWNPOINT = 10; // re-spawn at original spawn point
+const float MONSTER_RESPAWN_DEATHPOINT = 11; // re-spawn where we died
.float monster_respawned; // used to make sure we're not recounting respawned monster stats
self.monster_respawned = TRUE;
self.think = self.monster_spawnfunc;
self.nextthink = time + self.respawntime;
- if(self.respawnflags & MONSTER_RESPAWN_DEATHPOINT)
+ if(self.spawnflags & MONSTER_RESPAWN_DEATHPOINT)
{
self.pos1 = self.origin;
self.pos2 = self.angles;
self.attack_melee = zombie_attack_standing;
self.attack_ranged = zombie_attack_ranged;
self.respawntime = 0.1;
- self.respawnflags = MONSTER_RESPAWN_DEATHPOINT;
+ self.spawnflags |= MONSTER_RESPAWN_DEATHPOINT; // always enabled for zombie
monsters_setframe(zombie_anim_spawn);