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