Returns the resulting amount of knockback a player would get if they were hit with the specified stats. Usually used in tandem with get_hitbox_angle() Reference→
| Argument | Type | Description |
|---|---|---|
| player damage | :real | The current damage of the target before being hit |
| player knockback_adj | :real | The target's knockback multiplier, usually under knockback_adj |
| KB mulitplier | :real | The general KB multiplier, usually defined by match settings |
| hitbox damage | :real | The amount of damage the hitbox deals |
| hitbox BKB | :real | The hitbox's base knockback value |
| hitbox KB scale | :real | The hitbox's knockback scaling |
Example, called from article1_hit.gml:
// This simulates knockback in an article as if it were a player, to be used elsewhere:
orig_knock = get_kb_formula(damage, knockback_adj, 1.0, enemy_hitboxID.damage, enemy_hitboxID.kb_value, enemy_hitboxID.kb_scale);
