From 93fc5849c4270ba52e70b4f5339c600f2dd305ba Mon Sep 17 00:00:00 2001 From: InvalidArgument3 Date: Sat, 14 Sep 2024 14:39:11 -0500 Subject: [PATCH] Revert "Merge pull request #30 from StarCoreSE/missileretargetingunfuckening" This reverts commit 523af109fc089fbb0fe95043baf77f32fbc2767f, reversing changes made to f7afca5cd69b95629a6cc5a5c6ffa5a5d6dbf64a. --- .../CoreSystems/Projectiles/Projectile.cs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Data/Scripts/CoreSystems/Projectiles/Projectile.cs b/Data/Scripts/CoreSystems/Projectiles/Projectile.cs index 281574a8..7f1232d5 100644 --- a/Data/Scripts/CoreSystems/Projectiles/Projectile.cs +++ b/Data/Scripts/CoreSystems/Projectiles/Projectile.cs @@ -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;