-
Notifications
You must be signed in to change notification settings - Fork 59
Last Stand
juanosarg edited this page Jun 24, 2025
·
3 revisions
CompLastStand makes an animal increase its attack speed as it loses health, with a configurable upper limit because we don't want a divide by zero error when it dies ;)
//A comp class that makes animals scale their melee cooldowns the more damaged they are
public float finalCoolDownMultiplier = 2f;It is a comp class, so you just add it in XML in the <comps> tag. For example, this allows the Muffalochicken in Vanilla Genetics Expanded to increase their attack speed as they are damaged:
<comps>
<li Class="VEF.AnimalBehaviours.CompProperties_LastStand">
<finalCoolDownMultiplier>6</finalCoolDownMultiplier>
</li>
</comps>- Abilities
- Aesthetic scaling
- Animal Behaviours
- Apparels
- Buildings
- Cooking
- Factions
- Genes
- Global
- Graphics
- Hediffs
- Maps
- Memes
- OptionalFeatures
- Pawns
- Planet
- Plants
- Storyteller
- Things
- Weapons
- Weathers
- PipeSystem basics
- Resource
- Resource storage
- Resource processor
- Resource to thing
- Resource to power
- Thing to resource
- Resource trader
- Refill building with pipes
- Pipe valve
- Advanced Resource Processor
- Update to KCSG 2.0
- Exporting buildings
- Customizing symbols
- Debug helpers options
- Custom faction settlement
- Custom structure and scenarios
- Custom structure in quests
- Custom structure in WorldObjects
- Biome based structures
- Spawning world object(s) at world generation
- Prevent settlement spawning for nomadic factions