Animal Behaviours Hediff Comp Classes - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

<- Back

The AnimalBehaviours module of the framework has some comp classes that can be added to hediffs to provide special behaviours:

  • Hediffs that copy comp class functionality: These hediffs apply the same functionality as one of our comp classes, so you can add animal behaviours to ANY pawn (colonists included) through implants, diseases, etc

Other HediffComps

  • Animation: Makes the hediff carrier have a given animation
  • Explode On X: Makes the hediff carrier explode under certain conditions
  • Heat Pusher: Makes the hediff carrier push positive or negative heat
  • Polluter: Makes the hediff carrier cause pollution on a timer
  • Turn When Dead: When this hediff carrier dies, it will turn into another
  • Resurrect: When this hediff carrier dies, it will resurrect a configurable amount of times
  • Spawner: The carrier of this hediff periodically spawns items nearby

How do I use this code?

They are all comp classes, so you just add them in XML in the <comps> tag of an appropiate hediff. Check any of the examples to see.

⚠️ **GitHub.com Fallback** ⚠️