Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Enrage Other Pawns

juanosarg edited this page Aug 8, 2021 · 1 revision

CompEnrageOtherPawns makes the animal enrage other animals in the map, causing them to go manhunter, when it goes manhunter

    //A comp class that will make other animals on the map go manhunter if it goes manhunter

    public List<PawnKindDef> pawnkinddefsToAffect;
    public int checkingInterval = 200;

How do I use this code?

It is a comp class, so you just add it in XML in the tag. For example, this allows the Ancient Giant Spider in Vanilla Animals Expanded - Caves to send all spiders in the map manhunter if it is attacked

<comps>
	<li Class="AnimalBehaviours.CompProperties_EnrageOtherPawns">
		<pawnkinddefsToAffect>
			<li>VAECaves_GiantSpider</li>
			<li>VAECaves_GiantSpiderHatchling</li>
		</pawnkinddefsToAffect>
	</li>
</comps>

VFE Core

General Comp classes

General DefModExtensions

Item Processor

PipeSystem

Custom Structure Generation

Multi Verb Combat Framework - MVCF

Animal Behaviours

Apparel

Cuisine

Furniture

Plants

Clone this wiki locally