Skip to content

CompProperties_HomingProjectile

juanosarg edited this page Jun 3, 2026 · 3 revisions

<- Back

CompProperties_HomingProjectile is a comp that makes a projectile home into its target

         public float homingDistanceFractionPassed;
         public float homingCorrectionTickRate;
         public float initialDispersionFromTarget;
         public SoundDef hitSound;

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag. For example, this is the degrade projectile in Vanilla Psycasts Expanded - Puppeteer

<comps>
	<li Class="VEF.Weapons.CompProperties_HomingProjectile">
		<homingDistanceFractionPassed>0</homingDistanceFractionPassed>
		<homingCorrectionTickRate>1</homingCorrectionTickRate>
		<initialDispersionFromTarget>0</initialDispersionFromTarget>
	</li>
</comps>

Clone this wiki locally