SERVER: Fix issue with subsequent power-ups not blinking for despawn

This commit is contained in:
cypress 2023-07-17 14:51:25 -04:00
parent 5576c98910
commit 4232fc233d
3 changed files with 3 additions and 11 deletions

View file

@ -1614,21 +1614,12 @@ void(entity szombie) SetZombieWalk =
}
};
float() getMaxZombies =
{
if (dogWave == true) {
return 2;
} else {
return MAX_ZOMB;
}
}
void() spawnAllZombEnts =
{
local float i;
i = 0;
while(i < getMaxZombies())//IMPORTANT VALUE, max zombies allowed in map
while(i < MAX_ZOMB)
{
spawnSingleZombEnt(i);
i++;

View file

@ -58,6 +58,7 @@ inline void(entity ent) PU_FreeEnt =
{
setmodel(ent, "");
ent.classname = "freePowerUpEntity";
ent.hitcount = 0;
ent.touch = SUB_Null;
ent.think = SUB_Null;
ent.frame = 0;

View file

@ -338,7 +338,7 @@ void() set_zapper_bbox =
}
} else if (self.angles_z) {
// Z Axis
switch(self.angles_z) {
switch(abs(self.angles_z)) {
// Pointed 'Upward'
case 0:
bbmin = '-20 -20 -4';