Frag Grenades - SmArtKar/AthenaFramework GitHub Wiki

Projectile_ExplosiveFrag is a thingClass that will fire projectiles in a circular pattern with some deviation upon exploding.

    public class FragGrenadeExtension : DefModExtension
    {
        // Amount of projectiles that the grenade fires upon exploding
        public int projCount;
        // Angle between fired projectiles
        public float projAngle;
        // Maximum range for projectiles
        public float range;
        // Randomly adjusts every projectile fire angle up to this value
        public float randomSpread = 0f;
        // Projectiles fired by this grenade
        public ThingDef projectileDef;
    }