Prove Ymir projectile runtime cutover

This commit is contained in:
Meta Vens 2026-07-08 22:24:32 +01:00
commit 10de217679
5 changed files with 440 additions and 3 deletions

View file

@ -94,9 +94,11 @@ public class Projectile : MonoBehaviour
if (hull == null || hull.Entity == SourceEntity)
return;
if (hull.Entity.Shield != null &&
var shieldManager = hull.GetComponentInParent<EntityInstance>()?.Shield;
if (shieldManager != null &&
hull.Entity.Shield != null &&
hull.Entity.Shield.Item.Active.Value)
hull.Entity.Shield.ShowHit(step.Hit.Point, Mathf.Max(0.01f, ImpactIntensity * DirectHitIntensityMultiplier));
shieldManager.ShowHit(step.Hit.Point, Mathf.Max(0.01f, ImpactIntensity * DirectHitIntensityMultiplier));
transform.position = step.Hit.Point;
if (HitEffect != null)