From 6f0a7098023e1cc90a907c729f762ac6dd7ad5bc Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Fri, 24 Mar 2023 16:50:26 -0700 Subject: [PATCH] Head Chopper: kills zombies when placed on a ceiling --- README.md | 1 + scripts/zm/replaced/_zm_equip_headchopper.gsc | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e1b6ce64..eade424e 100644 --- a/README.md +++ b/README.md @@ -380,6 +380,7 @@ * No longer gets destroyed from kills * Gets destroyed after activating 15 times * Does multiple swings when player activates +* Kills zombies when placed on a ceiling * No longer deals damage during retract animations * Changed player head chop damage to 50 (normally instantly kills without Juggernog or deals 15 damage with Juggernog) * Changed player body chop damage to 25 (normally deals 75 damage to torso or 37 damage to feet) diff --git a/scripts/zm/replaced/_zm_equip_headchopper.gsc b/scripts/zm/replaced/_zm_equip_headchopper.gsc index 99dc0f6c..33d7540e 100644 --- a/scripts/zm/replaced/_zm_equip_headchopper.gsc +++ b/scripts/zm/replaced/_zm_equip_headchopper.gsc @@ -109,8 +109,8 @@ headchopperattack( weapon, ent ) foot_position = ent.origin[2]; length_head_to_toe = abs( head_position - foot_position ); length_head_to_toe_25_percent = length_head_to_toe * 0.25; - is_headchop = weapon.origin[2] <= head_position && weapon.origin[2] >= head_position - length_head_to_toe_25_percent; - is_torsochop = weapon.origin[2] <= head_position - length_head_to_toe_25_percent && weapon.origin[2] >= foot_position + length_head_to_toe_25_percent; + is_headchop = weapon.origin[2] >= head_position - length_head_to_toe_25_percent; + is_torsochop = weapon.origin[2] >= foot_position + length_head_to_toe_25_percent; is_footchop = abs( foot_position - weapon.origin[2] ) <= length_head_to_toe_25_percent; trace_point = undefined;