mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-25 21:31:28 +00:00
SERVER: Fix issue with subsequent power-ups not blinking for despawn
This commit is contained in:
parent
5576c98910
commit
4232fc233d
3 changed files with 3 additions and 11 deletions
|
@ -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++;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue