SERVER: Fix Zombies dropping Power-Ups when killed via Trap

This commit is contained in:
cypress 2023-08-28 11:07:07 -04:00
parent 901ee7121e
commit 126298114c
2 changed files with 2 additions and 1 deletions

View file

@ -1149,7 +1149,7 @@ void() Zombie_Death =
self.s_time = 0;
}
if(self.outside == FALSE)
if(self.outside == false && self.electro_targeted == false)
{
if (totalpowerups < POWERUPS_PER_ROUND)
{

View file

@ -94,6 +94,7 @@ void() zapper_do_damage
// - Has a chance to gib.
// - No normal death sound, play elec sound on contact, then
// again on death.
// - Zombies do not drop Power-Ups when killed via traps.
if (other.classname == "ai_zombie_head" || other.classname == "ai_zombie_rarm"
|| other.classname == "ai_zombie_larm") {
// If we're a limb, grab our body.