mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-07 21:59:49 -05:00
Vulture-Aid: stink areas no longer activate while the player is moving
This commit is contained in:
parent
e5929832a7
commit
c8b03d7763
@ -391,7 +391,7 @@
|
|||||||
* Downing kills all zombies around the player
|
* Downing kills all zombies around the player
|
||||||
|
|
||||||
### Vulture-Aid
|
### 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
|
## Pack-a-Punch
|
||||||
* No longer costs 2000 points to change attachments on an upgraded weapon
|
* No longer costs 2000 points to change attachments on an upgraded weapon
|
||||||
|
@ -14,11 +14,19 @@
|
|||||||
|
|
||||||
_is_player_in_zombie_stink( a_points )
|
_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;
|
b_is_in_stink = 0;
|
||||||
|
|
||||||
for ( i = 0; i < a_points.size; i++ )
|
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;
|
b_is_in_stink = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user