Fix boss zombies spawning at boss spawns after death.

PlayerSelectSpawn is called before PlayerSpawn...
This commit is contained in:
JetBoom 2014-12-21 07:34:48 -05:00
parent 358fa13ab3
commit 8dffa52522

View file

@ -717,7 +717,7 @@ function GM:PlayerSelectSpawn(pl)
if pl.m_PreRedeem and teamid == TEAM_HUMAN and #self.RedeemSpawnPoints >= 1 then if pl.m_PreRedeem and teamid == TEAM_HUMAN and #self.RedeemSpawnPoints >= 1 then
tab = self.RedeemSpawnPoints tab = self.RedeemSpawnPoints
elseif teamid == TEAM_UNDEAD then elseif teamid == TEAM_UNDEAD then
if pl:GetZombieClassTable().Boss and #self.BossSpawnPoints >= 1 then if pl:GetZombieClassTable().Boss and (not pl.DeathClass or self.ZombieClasses[pl.DeathClass].Boss) and #self.BossSpawnPoints >= 1 then
tab = self.BossSpawnPoints tab = self.BossSpawnPoints
elseif self.DynamicSpawning --[[and CurTime() >= self:GetWaveStart() + 1]] then -- If we're a bit in the wave then we can spawn on top of heavily dense groups with no humans looking at us. elseif self.DynamicSpawning --[[and CurTime() >= self:GetWaveStart() + 1]] then -- If we're a bit in the wave then we can spawn on top of heavily dense groups with no humans looking at us.
if self:ShouldUseAlternateDynamicSpawn() then if self:ShouldUseAlternateDynamicSpawn() then