Skip to content

Commit

Permalink
SERVER: Allow downward Melee lunge for Crawler Zombies
Browse files Browse the repository at this point in the history
  • Loading branch information
MotoLegacy committed Jun 11, 2024
1 parent e31afbe commit 10baffe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/server/ai/crawler_core.qc
Original file line number Diff line number Diff line change
Expand Up @@ -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); };
Expand Down
2 changes: 1 addition & 1 deletion source/server/weapons/weapon_core.qc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 10baffe

Please sign in to comment.