Damage Aura - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki
HediffCompProperties_DamageAura creates a damaging aura around the carrier of the hediff it is applied to
public DamageDef damageDef;
public float damageAmount = -1f;
public float armorPenetration = -1f;
public int ticksBetween;
public float radius;
public SoundDef sustainer;
public SoundDef soundEnded;
public bool hostileOnly = true;
public TargetingParameters targetingParameters = new TargetingParameters
{
canTargetPawns = true,
canTargetBuildings = true
};It is a comp class, so you just add it in XML in the <comps> tag of the hediff. For example, this is the static aura hediff in Vanilla Psycasts Expanded
<comps>
<li Class="VEF.Hediffs.HediffCompProperties_DamageAura">
<compClass>VEF.Hediffs.HediffComp_DamageAura</compClass>
<graphic>
<texPath>Effects/Staticlord/StaticAura/StaticAura</texPath>
<drawSize>(14, 14)</drawSize>
<graphicClass>Graphic_Single</graphicClass>
<shaderType>TransparentPostLight</shaderType>
</graphic>
<damageDef>EMP</damageDef>
<damageAmount>5</damageAmount>
<ticksBetween>60</ticksBetween>
<radius>6</radius>
<sustainer>VPE_StaticAura_Sustainer</sustainer>
<soundEnded>VPE_StaticAura_End</soundEnded>
<hostileOnly>false</hostileOnly>
</li>
</comps>