update15 #34

Merged
dkanus merged 7 commits from update15 into master 2024-11-25 22:10:57 +03:00
Showing only changes of commit 618229b8d3 - Show all commits

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.
Anton Tarasenko 2024-10-29 04:15:16 +07:00

View file

@ -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);