Skip to content

Commit

Permalink
Merge pull request #33 from StarCoreSE/ah-fuck-flak-broke
Browse files Browse the repository at this point in the history
ah fuck flak broke (revert missile retargeting after ewar)
  • Loading branch information
InvalidArgument3 authored Sep 14, 2024
2 parents 8e4dcac + 93fc584 commit 94e1e1d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Data/Scripts/CoreSystems/Projectiles/Projectile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -452,24 +452,6 @@ internal void RunSmart() // this is grossly inlined thanks to mod profiler... th

var ammo = Info.AmmoDef;
var aConst = ammo.Const;



// if the projectile has lost its target due to an anti-smart effect and EwarActive is false (TODO: set to false more intelligently)
if (Info.Target.TargetState == Target.TargetStates.IsProjectile && Info.Target.TargetObject != null && Info.Target.TargetObject != this && !Info.EwarActive)
{

//do I need this?
TargetPosition = ((Projectile)Info.Target.TargetObject).Position;

// projectile lost its target due to anti-smart, reset targeting state
Info.Target.TargetObject = null;
Info.Target.TargetState = Target.TargetStates.None;
Info.Storage.PickTarget = true;
}



var s = Info.Storage;
var w = Info.Weapon;
var comp = w.Comp;
Expand Down

0 comments on commit 94e1e1d

Please sign in to comment.