Skip to content

Hediff Effecter

juanosarg edited this page Jan 25, 2021 · 1 revision

CompHediffEffecter is a comp class that makes an animal cause a health condition (hediff) in nearby pawns

    //A comp class that makes an animal produce a certain Hediff in nearby pawns

    public int radius = 1;
    public float severity = 1.0f;
    public int tickInterval = 1000;
    public string hediff = "Plague";
    public bool notOnlyAffectColonists = false;

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 allows Bearofleets in RimWorld - Witcher Monster Hunt to cause hunger in nearby pawns

<comps>
	<li Class="AnimalBehaviours.CompProperties_HediffEffecter">
		<radius>40</radius>
		<severity>1</severity>
		<tickInterval>100</tickInterval>
		<hediff>WMH_Hunger</hediff>
	</li>
</comps>

VFE Core

General Comp classes

General DefModExtensions

Item Processor

PipeSystem

Custom Structure Generation

Multi Verb Combat Framework - MVCF

Animal Behaviours

Genes

Apparel

Cuisine

Furniture

Plants

Deprecated

Clone this wiki locally