ABILITY 05
Berserker
Activate a low-health buff once per life, with configurable melee damage and incoming-damage refunds. Automatic or button mode.
Activation
Automatic / BerserkerButtonExample use
A last stand when a fight reaches critical health.
Ability documentationCHARACTER ABILITY
SETUP GUIDE
Set up this ability
Component dependencies
| Component | Where to add or assign it | Purpose / setup |
|---|---|---|
| Health | Character | Required for the health threshold and incoming-damage refund. |
| DamageOnTouch | Character hierarchy | Required on the attacks that should receive the damage bonus. Components under a non-melee Weapon are excluded. |
Visual component dependencies
These components support the associated effect. A missing optional visual does not by itself imply that the gameplay mechanic cannot run.
| Component | Where to add or assign it | Purpose / setup |
|---|---|---|
| BerserkerAura | Character, or explicitly linked to the ability | Optional visual component. Assign Ability, TargetSprite and AuraShader; missing references disable the aura component, not the Berserker mechanic. |
- Add CharacterBerserker to a CharacterPlus character with Health.
- Set ActivationMode to Automatic or Button. Both modes require living health at or below HealthThresholdPercent (default 0.25).
- Choose a positive ActiveTime for a temporary buff; the inherited default 0 is indefinite.
- DamageMultiplier defaults to 1.5 for eligible DamageOnTouch components in the character hierarchy. Non-melee Weapon parents are excluded.
- In Button mode select BerserkerButton and verify the matching Legacy input names for your PlayerID.
- Configure BerserkerTransform and BerserkerActive bools in the Animator; exercise damage, transformation and respawn in Play Mode.
Inspector reference
These are C# field declaration defaults. Existing prefab and scene values can override them. Shared fields are documented under Ability Configuration.
| Field | Type | Declared default |
|---|---|---|
ActivationMode | BerserkerActivationMode | BerserkerActivationMode.Automatic |
HealthThresholdPercent | float | 0.25f |
DamageMultiplier | float | 1.5f |
DamageTakenMultiplier | float | 0.5f |
DamageApplyMode | BerserkerDamageApplyMode | BerserkerDamageApplyMode.OnTransformEnd |
IsTransforming | bool | > _transforming |
Usage notes
- Only one activation is allowed per life; ResetAbility clears the used flag.
- DamageTakenMultiplier defaults to 0.5 and controls the damage refund applied through Health.OnHit.
