mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 23:27:57 -05:00
Vulture-Aid: stink areas no longer activate while the player is moving
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user