Projectile Impact Effects - KonradHeinser/EBSGFramework GitHub Wiki

This comp causes a projectile to create special effects when it impacts something. The basic comp looks like this:

    <comps>
        <li Class="EBSGFramework.CompProperties_ProjectileImpactEffect">
        </li>
    </comps>

These are the options available within this comp:

  • fleck : The FleckDef used
  • mote : The mote to make
  • effecter : The EffecterDef to spawn at the location

This example is a variation of the revolver bullet that creates a burn fleck and the vomit effect when it hits

    <ThingDef ParentName="BaseBullet">
        <defName>Bullet_WeirdRevolver</defName>
        <label>revolver bullet</label>
        <graphicData>
            <texPath>Things/Projectile/Bullet_Small</texPath>
            <graphicClass>Graphic_Single</graphicClass>
        </graphicData>
        <projectile>
            <damageDef>Bullet</damageDef>
            <damageAmountBase>12</damageAmountBase>
            <stoppingPower>1</stoppingPower>
            <speed>55</speed>
        </projectile>
        <comps>
            <li Class="EBSGFramework.CompProperties_ProjectileImpactEffect">
                <fleck>Fleck_BeamBurn</fleck>
                <effecter>Vomit</effecter>
            </li>
        </comps>
    </ThingDef>
⚠️ **GitHub.com Fallback** ⚠️