Skip to content

Commit

Permalink
Merge pull request #2767 from CombatExtended-Continued/RocketswarmLik…
Browse files Browse the repository at this point in the history
…e_Launchers_Fix

Global targeting for rocketswarm-like systems fix
  • Loading branch information
N7Huntsman authored Oct 7, 2023
2 parents 1f5d601 + a73a922 commit 190a0c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public override void Tick() //Autoreload code and IsReloading check
//This code runs TryOrderReload for manning pawns or for non-humanlike intelligence such as mechs
/*if (this.IsHashIntervalTick(TicksBetweenAmmoChecks) && !isReloading && (MannableComp?.MannedNow ?? false))
TryOrderReload(CompAmmo?.CurMagCount == 0);*/
if (!CanSetForcedTarget && !isReloading && forcedTarget.IsValid && burstCooldownTicksLeft <= 0)
if (!CanSetForcedTarget && !isReloading && forcedTarget.IsValid && !globalTargetInfo.IsValid && burstCooldownTicksLeft <= 0)
{
ResetForcedTarget();
}
Expand Down

0 comments on commit 190a0c3

Please sign in to comment.