I wanted to add a custom sound to the molotov cocktails exploding. The molotov shares the "Flame" damage with the incendiary launcher and fire mortar.
I went to DamageDefs/Damages_LocalInjury.xml and copied the "flame" DamageDef to a new xml in my mod, so that I could make a custom "flagrate" damage that was identical to "flame" in every detail but the name and linked it to a different explosion sound.
When the molotov projectile damage is set to "flagrate", it successfully uses the custom sound but now it does not ignite any fires. What the heck am I doing wrong?
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<DamageDef Name="LocalInjuryBase" Abstract="True">
<workerClass>DamageWorker_AddInjury</workerClass>
</DamageDef>
<!-- ==================== Flagrate ========================== -->
<DamageDef ParentName="LocalInjuryBase">
<defName>Flagrate</defName>
<workerClass>DamageWorker_Flame</workerClass>
<label>flagrate</label>
<hasForcefulImpact>false</hasForcefulImpact>
<makesBlood>false</makesBlood>
<incapChanceMultiplier>1.5</incapChanceMultiplier>
<canInterruptJobs>false</canInterruptJobs>
<externalViolence>true</externalViolence>
<deathMessage>{0} has burned to death.</deathMessage>
<hediff>Burn</hediff>
<armorCategory>Heat</armorCategory>
<spreadOut>true</spreadOut>
<explosionDamage>10</explosionDamage>
<explosionHeatEnergyPerCell>15</explosionHeatEnergyPerCell>
<explosionCellMote>Mote_BlastFlame</explosionCellMote>
<explosionColorCenter>(1, 0.7, 0.7)</explosionColorCenter>
<explosionColorEdge>(1, 1, 0.7)</explosionColorEdge>
<soundExplosion>Explosion_Molotov</soundExplosion>
</DamageDef>
</Defs>
I went to DamageDefs/Damages_LocalInjury.xml and copied the "flame" DamageDef to a new xml in my mod, so that I could make a custom "flagrate" damage that was identical to "flame" in every detail but the name and linked it to a different explosion sound.
When the molotov projectile damage is set to "flagrate", it successfully uses the custom sound but now it does not ignite any fires. What the heck am I doing wrong?
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<DamageDef Name="LocalInjuryBase" Abstract="True">
<workerClass>DamageWorker_AddInjury</workerClass>
</DamageDef>
<!-- ==================== Flagrate ========================== -->
<DamageDef ParentName="LocalInjuryBase">
<defName>Flagrate</defName>
<workerClass>DamageWorker_Flame</workerClass>
<label>flagrate</label>
<hasForcefulImpact>false</hasForcefulImpact>
<makesBlood>false</makesBlood>
<incapChanceMultiplier>1.5</incapChanceMultiplier>
<canInterruptJobs>false</canInterruptJobs>
<externalViolence>true</externalViolence>
<deathMessage>{0} has burned to death.</deathMessage>
<hediff>Burn</hediff>
<armorCategory>Heat</armorCategory>
<spreadOut>true</spreadOut>
<explosionDamage>10</explosionDamage>
<explosionHeatEnergyPerCell>15</explosionHeatEnergyPerCell>
<explosionCellMote>Mote_BlastFlame</explosionCellMote>
<explosionColorCenter>(1, 0.7, 0.7)</explosionColorCenter>
<explosionColorEdge>(1, 1, 0.7)</explosionColorEdge>
<soundExplosion>Explosion_Molotov</soundExplosion>
</DamageDef>
</Defs>