From 10baffed84e97a6e74d6b36cda0dd4ea36cf8f87 Mon Sep 17 00:00:00 2001 From: cypress Date: Mon, 10 Jun 2024 18:57:13 -0700 Subject: [PATCH] SERVER: Allow downward Melee lunge for Crawler Zombies --- source/server/ai/crawler_core.qc | 2 +- source/server/weapons/weapon_core.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/server/ai/crawler_core.qc b/source/server/ai/crawler_core.qc index 750e1e0..2528ca6 100644 --- a/source/server/ai/crawler_core.qc +++ b/source/server/ai/crawler_core.qc @@ -150,7 +150,7 @@ void() crawler_da10 =[ 9, crawler_da1 ] {crawler_attack_choose(0); self.frame //37-39 void() crawler_die1 =[ 0, crawler_die2] {SetZombieHitBox(CRAWLER_BBOX);self.frame = 37;}; void() crawler_die2 =[ 1, crawler_die3] {self.frame = 38;}; -void() crawler_die3 =[ 2, SUB_Null] {self.iszomb = 0; self.frame = 39;self.nextthink = time + 3;self.think = removeZombie; Player_AddScore(other, 60, true); if (crawler_num > 0) {crawler_num = crawler_num - 1;}}; +void() crawler_die3 =[ 2, SUB_Null] {self.iszomb = 0; self.frame = 39;self.nextthink = time + 3;self.think = removeZombie; if (crawler_num > 0) {crawler_num = crawler_num - 1;}}; //====================== Crawler Tesla Death ============================ void() crawler_death_wunder1 =[ 72, crawler_death_wunder2 ] {tesla_arc(); play_sound_z(4); }; diff --git a/source/server/weapons/weapon_core.qc b/source/server/weapons/weapon_core.qc index 6a09181..6953d13 100644 --- a/source/server/weapons/weapon_core.qc +++ b/source/server/weapons/weapon_core.qc @@ -1195,7 +1195,7 @@ void() WeaponCore_Melee = vector trace_source = self.origin + self.view_ofs; traceline(trace_source, trace_source + v_forward * melee_range, 0, self); - if (fabs(trace_endpos_z - trace_source_z) <= 15) { + if (trace_endpos_z - trace_source_z <= 15) { // Check if this is a Zombie limb, set to the body if so if (trace_ent.owner.head == trace_ent || trace_ent.owner.larm == trace_ent || trace_ent.owner.rarm == trace_ent) trace_ent = trace_ent.owner;