mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-22 20:01:34 +00:00
SERVER: Fix Zombies dropping Power-Ups when killed via Trap
This commit is contained in:
parent
901ee7121e
commit
126298114c
2 changed files with 2 additions and 1 deletions
|
@ -1149,7 +1149,7 @@ void() Zombie_Death =
|
||||||
self.s_time = 0;
|
self.s_time = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(self.outside == FALSE)
|
if(self.outside == false && self.electro_targeted == false)
|
||||||
{
|
{
|
||||||
if (totalpowerups < POWERUPS_PER_ROUND)
|
if (totalpowerups < POWERUPS_PER_ROUND)
|
||||||
{
|
{
|
||||||
|
|
|
@ -94,6 +94,7 @@ void() zapper_do_damage
|
||||||
// - Has a chance to gib.
|
// - Has a chance to gib.
|
||||||
// - No normal death sound, play elec sound on contact, then
|
// - No normal death sound, play elec sound on contact, then
|
||||||
// again on death.
|
// again on death.
|
||||||
|
// - Zombies do not drop Power-Ups when killed via traps.
|
||||||
if (other.classname == "ai_zombie_head" || other.classname == "ai_zombie_rarm"
|
if (other.classname == "ai_zombie_head" || other.classname == "ai_zombie_rarm"
|
||||||
|| other.classname == "ai_zombie_larm") {
|
|| other.classname == "ai_zombie_larm") {
|
||||||
// If we're a limb, grab our body.
|
// If we're a limb, grab our body.
|
||||||
|
|
Loading…
Reference in a new issue