Skip to content

Bullet_Spawn

BBLKepling edited this page May 28, 2023 · 3 revisions

This is an alternative projectile thingClass for Bullet, exactly the same except that is uses the preExplosion nodes to spawn Things. Only spawns when hitting open ground, hitting pawns, walls, or shields will always cause the projectile to "break".

Change the projectile thingClass to:

<thingClass>GNATFramework.Bullet_Spawn</thingClass>

Add these nodes to projectile node

      <preExplosionSpawnChance>float</preExplosionSpawnChance>
      <preExplosionSpawnThingCount>int</preExplosionSpawnThingCount>
      <preExplosionSpawnThingDef>ThingDef</preExplosionSpawnThingDef>

There is also a mod setting to turn this behavior off so the user is not forced to use it.

Athena Framework has a similar projectile that you may want to check out as they have different behavior. Link

Code Lineage: Combat Extended was referenced, which is an open source mod. Source Lines 1207 to 1229 CE License

Clone this wiki locally