Skip to content

CompProperties_Explosive_Shells

juanosarg edited this page Jun 3, 2026 · 1 revision

<- Back

CompProperties_Explosive_Shells is a comp that will make a building explode into shell projectiles when destroyed. It inherits from base game CompProperties_Explosive

         public ThingDef shell;
         public IntRange shellCount;
         public IntRange shellDist;

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag. For example, this is the military pallet of high-explosive shells in Vanilla Quests Expanded - Cryptoforge

<comps>
	<li Class="VEF.Weapons.CompProperties_Explosive_Shells">
		<wickTicks>60~240</wickTicks>
		<explosiveRadius>9</explosiveRadius>
		<explosiveDamageType>Bomb</explosiveDamageType>
		<chanceNeverExplodeFromDamage>0</chanceNeverExplodeFromDamage>
		<startWickHitPointsPercent>0.2</startWickHitPointsPercent>
		<shell>Shell_HighExplosive</shell>
		<shellCount>4~4</shellCount>
		<shellDist>3~20</shellDist>
	</li>
</comps>

Clone this wiki locally