Filth Producer - AndroidQuazar/VanillaExpandedFramework GitHub Wiki
CompFilthProducer is a comp class that is added to an animal and makes it constantly produce filth around it. Bear in mind that this class can create A LOT of filth if left running for long periods, so be wary!
//A class to make a creature produce filth around it. A new piece of filth of "filthType" is created
//every "ticksToCreateFilth", but ONLY "rate" percent of the time
public string filthType = "";
public float rate = 0f;
public int radius = 0;
public int ticksToCreateFilth = 600;
It is a comp class, so you just add it in XML in the <comps>
tag of the animal you want to produce filth. For example, this makes the Royal Maggot in Vanilla Factions Expanded - Insectoids produce constant filth:
<comps>
<li Class="AnimalBehaviours.CompProperties_FilthProducer">
<filthType>VFEI_Filth_Slime</filthType>
<rate>0.3</rate>
<radius>1</radius>
<ticksToCreateFilth>600</ticksToCreateFilth>
</li>
</comps>