src/battle/knockback_tables.c
How far, how fast and how high each knockback sends a unit, by variant (BATTLE_KNOCKBACK).
Variables
| Name | Description | |
|---|---|---|
FIXED | BattleKnockbackAcceleration [] | The knockback's speed gained each tick by variant (BATTLE_KNOCKBACK), 16.16 pixels a tick: 1, but 8 for KNOCKBACK_HURL. |
FIXED | BattleKnockbackSpeedLimit [] | The knockback's top speed by variant, 16.16 pixels a tick: 4, but 20 for KNOCKBACK_HURL. |
FIXED | BattleKnockbackVelocityY [] | The knockback's hop by variant, 16.16 pixels a tick upward: 2 to 10. |
Sint32 | BattleKnockbackDistancePercent [] | The knockback's reach by variant, in percent of the unit's distance from the centre: 140 to 200, 100 for KNOCKBACK_BOUNCE and KNOCKBACK_JOLT. |
Sint32 | BattleKnockbackUnusedWords [] | Unused: three words after the knockback tables that no code names. |
Description
How far, how fast and how high each knockback sends a unit, by variant
(BATTLE_KNOCKBACK).
Variables in detail
BattleKnockbackAcceleration
FIXED BattleKnockbackAcceleration[]
The knockback's speed gained each tick by variant (BATTLE_KNOCKBACK), 16.16
pixels a tick: 1, but 8 for KNOCKBACK_HURL.
Referenced by btMotionApplyKnockback().
Definition at line 7 of file knockback_tables.c.
BattleKnockbackSpeedLimit
FIXED BattleKnockbackSpeedLimit[]
The knockback's top speed by variant, 16.16 pixels a tick: 4, but 20 for
KNOCKBACK_HURL.
Referenced by btMotionApplyKnockback().
Definition at line 18 of file knockback_tables.c.
BattleKnockbackVelocityY
FIXED BattleKnockbackVelocityY[]
The knockback's hop by variant, 16.16 pixels a tick upward: 2 to 10.
Referenced by btMotionApplyKnockback().
Definition at line 29 of file knockback_tables.c.
BattleKnockbackDistancePercent
Sint32 BattleKnockbackDistancePercent[]
The knockback's reach by variant, in percent of the unit's distance from the
centre: 140 to 200, 100 for KNOCKBACK_BOUNCE and KNOCKBACK_JOLT.
References Sint32.
Referenced by btMotionApplyKnockback().
Definition at line 40 of file knockback_tables.c.
BattleKnockbackUnusedWords
Sint32 BattleKnockbackUnusedWords[]
Unused: three words after the knockback tables that no code names.
References Sint32.
Definition at line 53 of file knockback_tables.c.