Skip to content

Commit

Permalink
Effecter
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDorob committed Nov 19, 2024
1 parent 369e91a commit 8f6032b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ public virtual void OnImpact(ProjectileCE projectile, DamageInfo dinfo)
{
Props.impacted.PlayOneShot(new TargetInfo(parent.DrawPos.ToIntVec3(), parent.Map));
}
if (Props.impactEffecter != null)
{
Props.impactEffecter.Spawn(parent.DrawPos.ToIntVec3(), parent.Map);
}
parent.Destroy(DestroyMode.Vanish);
}

Expand All @@ -31,5 +35,6 @@ public CompProperties_CIWSImpactHandler()
compClass = typeof(CompCIWSImpactHandler);
}
public SoundDef impacted;
public EffecterDef impactEffecter;
}
}

0 comments on commit 8f6032b

Please sign in to comment.