mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-22 03:41:15 +00:00
SERVER: Allow downward Melee lunge for Crawler Zombies
This commit is contained in:
parent
e31afbe338
commit
10baffed84
2 changed files with 2 additions and 2 deletions
|
@ -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); };
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue