From c8b03d7763f65e1bf1350f61fb925e45e64cf21b Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Tue, 12 Dec 2023 23:43:16 -0800 Subject: [PATCH] Vulture-Aid: stink areas no longer activate while the player is moving --- README.md | 2 +- scripts/zm/replaced/_zm_perk_vulture.gsc | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 218ba0ed..81894791 100644 --- a/README.md +++ b/README.md @@ -391,7 +391,7 @@ * Downing kills all zombies around the player ### Vulture-Aid -* Stink areas no longer activate while the player is standing +* Stink areas no longer activate while the player is moving ## Pack-a-Punch * No longer costs 2000 points to change attachments on an upgraded weapon diff --git a/scripts/zm/replaced/_zm_perk_vulture.gsc b/scripts/zm/replaced/_zm_perk_vulture.gsc index 2ac7a960..06523275 100644 --- a/scripts/zm/replaced/_zm_perk_vulture.gsc +++ b/scripts/zm/replaced/_zm_perk_vulture.gsc @@ -14,11 +14,19 @@ _is_player_in_zombie_stink( a_points ) { + velocity = self getVelocity() * (1, 1, 0); + speed = length(velocity); + + if (self getStance() == "stand" && speed != 0) + { + return 0; + } + b_is_in_stink = 0; for ( i = 0; i < a_points.size; i++ ) { - if ( distancesquared( a_points[i].origin, self.origin ) < 4900 && self getStance() != "stand" ) + if ( distancesquared( a_points[i].origin, self.origin ) < 4900 ) b_is_in_stink = 1; }