mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-29 15:22:29 +00:00
SERVER: Add zombie limb support to the Zapper
This commit is contained in:
parent
3e258fea2f
commit
db767b5af8
1 changed files with 5 additions and 0 deletions
|
@ -92,6 +92,11 @@ void() zapper_do_damage
|
|||
// - Has a chance to gib.
|
||||
// - No normal death sound, play elec sound on contact, then
|
||||
// again on death.
|
||||
if (other.classname == "ai_zombie_head" || other.classname == "ai_zombie_rarm"
|
||||
|| other.classname == "ai_zombie_larm") {
|
||||
// If we're a limb, grab our body.
|
||||
other = other.owner;
|
||||
}
|
||||
if (other.classname == "ai_zombie" && !other.electro_targeted) {
|
||||
tempe = self;
|
||||
self = other;
|
||||
|
|
Loading…
Reference in a new issue