Launch Projectile Burst - KonradHeinser/EBSGFramework GitHub Wiki
This ability comp allows you to make abilities that launch projectiles in a burst. This comp is mostly just an expansion of the vanilla launch projectile comp, with the burst beginning after the warmup is finished. Unlike Verb_AbilityShoot, this still has launch projectile's consistent accuracy:
<comps>
<li Class="EBSGFramework.CompProperties_AbilityLaunchProjectileBurst">
</li>
</comps>
These are the options available:
- projectileDef : The ThingDef to launch
- burstCount : Default (1) : How many of that thing to launch. If you plan on leaving it at 1, you should use CompProperties_AbilityLaunchProjectile instead
- ticksBetweenShots : Default (5) : How many ticks are between each shot. There are 60 ticks per second
- immediateLaunch : Default (True) : Determines if the first shot should occur immediately after the warmup is done, or wait until the first ticksBetweenShots interval is done. Generally not a concern unless ticksBetweenShots creates notable pauses between shots
- firingSound : The SoundDef to play with each shot
This ability is a variation of Biotech's Piercing Spine ability that has a longer range, and fires three of the spines in quick succession:
<AbilityDef>
<defName>MultiPiercingSpine</defName>
<label>multi piercing spine</label>
<description>Stronger version of piercing spine.</description>
<iconPath>UI/Abilities/PiercingSpine</iconPath>
<cooldownTicksRange>60</cooldownTicksRange>
<category>Sanguophage</category>
<displayOrder>200</displayOrder>
<aiCanUse>true</aiCanUse>
<verbProperties>
<verbClass>Verb_CastAbility</verbClass>
<range>9.9</range>
<warmupTime>0.5</warmupTime>
<soundCast>PiercingSpine_Launch</soundCast>
</verbProperties>
<comps>
<li Class="CompProperties_AbilityHemogenCost">
<hemogenCost>0.7</hemogenCost>
</li>
<li Class="EBSGFramework.CompProperties_AbilityLaunchProjectileBurst">
<projectileDef>PiercingSpine</projectileDef>
<burstCount>3</burstCount>
</li>
</comps>
</AbilityDef>