1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-19 19:48:53 -05:00

Head Chopper: kills zombies when placed on a ceiling

This commit is contained in:
Jbleezy
2023-03-24 16:50:26 -07:00
parent 84c255f2dc
commit 6f0a709802
2 changed files with 3 additions and 2 deletions

View File

@ -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;