Skip to content

Projectile Comps

SmArtKar edited this page Jan 15, 2023 · 1 revision

Athena offers a centralized projectile comp system that saves modders' time writing their own patches

public class ProjectileComp : ThingComp
    {
        protected Projectile Projectile => parent as Projectile;

        public virtual void Launch(Thing launcher, Vector3 origin, LocalTargetInfo usedTarget, LocalTargetInfo intendedTarget, ProjectileHitFlags hitFlags, bool preventFriendlyFire, Thing equipment, ThingDef targetCoverDef) { }

        public virtual void Impact(Thing hitThing, ref bool blockedByShield) { }
    }

Clone this wiki locally