mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-29 07:12:20 +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 =
|
void() spawnAllZombEnts =
|
||||||
{
|
{
|
||||||
local float i;
|
local float i;
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|
||||||
while(i < getMaxZombies())//IMPORTANT VALUE, max zombies allowed in map
|
while(i < MAX_ZOMB)
|
||||||
{
|
{
|
||||||
spawnSingleZombEnt(i);
|
spawnSingleZombEnt(i);
|
||||||
i++;
|
i++;
|
||||||
|
|
|
@ -58,6 +58,7 @@ inline void(entity ent) PU_FreeEnt =
|
||||||
{
|
{
|
||||||
setmodel(ent, "");
|
setmodel(ent, "");
|
||||||
ent.classname = "freePowerUpEntity";
|
ent.classname = "freePowerUpEntity";
|
||||||
|
ent.hitcount = 0;
|
||||||
ent.touch = SUB_Null;
|
ent.touch = SUB_Null;
|
||||||
ent.think = SUB_Null;
|
ent.think = SUB_Null;
|
||||||
ent.frame = 0;
|
ent.frame = 0;
|
||||||
|
|
|
@ -338,7 +338,7 @@ void() set_zapper_bbox =
|
||||||
}
|
}
|
||||||
} else if (self.angles_z) {
|
} else if (self.angles_z) {
|
||||||
// Z Axis
|
// Z Axis
|
||||||
switch(self.angles_z) {
|
switch(abs(self.angles_z)) {
|
||||||
// Pointed 'Upward'
|
// Pointed 'Upward'
|
||||||
case 0:
|
case 0:
|
||||||
bbmin = '-20 -20 -4';
|
bbmin = '-20 -20 -4';
|
||||||
|
|
Loading…
Reference in a new issue