Skip to content

Hediffs that copy comp class functionality

KylianB edited this page Oct 6, 2022 · 4 revisions

These are HediffComp classes that copy the functionality of one of our Animal Behaviours comp classes. This makes all the effects of the comp work through a hediff, so they can be added via diseases, implants, etc

First of all, how do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag of the hediff. For example, this allows the Animusmorphs in Alpha Animals to cause a nuzzling thought in nearby pawns. This is applied to their "jaw" part hediff.

<comps>
	<li Class="AnimalBehaviours.HediffCompProperties_ThoughtEffecter">
		<radius>10</radius>
		<tickInterval>2000</tickInterval>
		<thoughtDef>AA_BeenPsionicallyNuzzled</thoughtDef>
	</li>
</comps>

What hediff comps of this kind are implemented?

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