Add distance to target limit for mean husks' spam
Husks now only spam fireballs in a rage when within 30 units of their target. They’ll still keep track of the number of shots and enter this enraged state regardless of distance, but close proximity is required for rapid-fire.
This commit is contained in:
parent
324e644db4
commit
618229b8d3
@ -37,7 +37,7 @@ function RangedAttack(Actor A) {
|
||||
//Increment the number of consecutive shtos taken and apply the cool down if needed
|
||||
totalShots ++;
|
||||
consecutiveShots ++;
|
||||
if(consecutiveShots < 3 && totalShots > maxNormalShots)
|
||||
if(consecutiveShots < 3 && totalShots > maxNormalShots && VSize(a.location - location) <= 900)
|
||||
NextFireProjectileTime = Level.TimeSeconds;
|
||||
else{
|
||||
NextFireProjectileTime = Level.TimeSeconds + ProjectileFireInterval + (FRand() * 2.0);
|
||||
|
Loading…
Reference in New Issue
Block a user