Random Projectiles - SmArtKar/AthenaFramework GitHub Wiki
Verb_RandomShot
allows user to fire a random projectile from a list. Custom weights can be used to make certain projectiles more likely to be used.
Projectiles and optional weights are specified in RandomShotExtension
extension, appliable to hediffs and thingdefs
public class RandomShotExtension : DefModExtension
{
public List<RandomProjectilePackage> projectiles = new List<RandomProjectilePackage>();
}
public class RandomProjectilePackage
{
public ThingDef projectile;
public int probability = 1;
}