Bro Code logoBRO CODE CRINDEPENDENT GAME DEV TOOLS
← All abilities
ABILITY 09

GroundSmash

Strike the ground to deal area damage, push enemies away and create impact effects.

Activation

GroundSmashButton

Example use

Strike a group of enemies with a ground impact.

Ability documentation
CHARACTER ABILITY
SETUP GUIDE

Set up this ability

Component
CharacterGroundSmash
Source
Scripts/Abilities/CharacterGroundSmash.cs
Animator bools
GroundSmash

Component dependencies

Requirements for this ability and its targets
ComponentWhere to add or assign itPurpose / setup
CorgiControllerTarget GameObjectRequired for the push effect; damage can still be applied without pushing.
  1. Add CharacterGroundSmash and configure TargetLayerMask for your scene.
  2. Set ImpactDamage, ImpactRadius and PushForce. A zero PushForce skips knockback.
  3. The push effect requires CorgiController on the target.
  4. Optionally assign CrackEffectPrefab and set CrackDuration. Add a GroundSmash bool to your Animator.
  5. Stand on the ground and press GroundSmashButton. Activation is rejected while the controller is not grounded.

Inspector reference

These are C# field declaration defaults. Existing prefab and scene values can override them. Shared fields are documented under Ability Configuration.

CharacterGroundSmash fields
FieldTypeDeclared default
ImpactDamagefloat15f
ImpactRadiusfloat3.5f
PushForcefloat8f
TargetLayerMaskLayerMaskNot assigned in declaration
TargetFlickerDurationfloat0.2f
TargetInvincibilityDurationfloat0.5f
CrackEffectPrefabGameObjectNot assigned in declaration
CrackDurationfloat3f

Usage notes

  • Configure the target layer mask for your scene.
  • The stop coroutine uses animation duration. Keep ActivationDelay shorter than the relevant clip duration and validate hit timing in Play Mode.