public float ForsedScatterRadius(ThingDef projectile) { if (projectile.comps != null) { //CompChangeableProjectile comp = this.ownerEquipment.GetComp<CompChangeableProjectile >(); int i = 0; int count = projectile.comps.Count; while (i < count) { AAA.CompProperties_ProjectileMultiple compWhenLoaded = projectile.comps[i] as AAA.CompProperties_ProjectileMultiple; if (compWhenLoaded != null) { return(compWhenLoaded.forsedScatterRadius); } i++; } } return(0.0f); }
public int PelletsPerShot(ThingDef projectile) { if (projectile.comps != null) { //CompChangeableProjectile comp = this.ownerEquipment.GetComp<CompChangeableProjectile >(); int i = 0; int count = projectile.comps.Count; while (i < count) { AAA.CompProperties_ProjectileMultiple compWhenLoaded = projectile.comps[i] as AAA.CompProperties_ProjectileMultiple; if (compWhenLoaded != null) { return(compWhenLoaded.pellets); } i++; } } return(1); }