Skip to content

Projectile_Attachments

juanosarg edited this page Jun 4, 2026 · 1 revision

<- Back

Projectile_Attachments works in tandem with ProjectileExtension to attach a fleck or effecter to a projectile.

Projectile_Attachments inherits from Bullet, but we also have Projectile_Attachments_Explosive which inherits from Projectile_Explosive

How do I use this code?

Assign the Projectile_Attachments class to any projectile's def:

<ThingDef ParentName="BaseBullet">
	  <defName>Example_Puke_Bullet</defName>
	  <label>the puke bullet</label>
	  <thingClass>VEF.Weapons.Projectile_Attachments</thingClass>
	  <graphicData>
	  	  <texPath>Things/Projectile/Bullet_Big</texPath>
	  	  <graphicClass>Graphic_Single</graphicClass>
	  </graphicData>
	  <projectile>
	  	  <flyOverhead>false</flyOverhead>
	  	  <damageDef>Bullet</damageDef>
	  	  <damageAmountBase>14</damageAmountBase>
	  	  <stoppingPower>1.5</stoppingPower>
	  	  <armorPenetrationBase>0.22</armorPenetrationBase>
	  	  <speed>45</speed>
	  </projectile>
	  <modExtensions>
	  	  <li Class="VEF.Weapons.ProjectileExtension">
	  	  	  <attachedEffecter>Vomit</attachedEffecter>
	  	  </li>
	  </modExtensions>
</ThingDef>

Clone this wiki locally