Returns the resulting amount of hitstun a player would get if they were hit with the specified stats. Note that hitstun is not hitstop; Hitstun is how long the player remains inactionable after being hit.
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 hitstun in an article as if it were a player, to be used elsewhere:
hitstun = get_hitstun_formula(damage, knockback_adj, 1.0, enemy_hitboxID.damage, enemy_hitboxID.kb_value, enemy_hitboxID.kb_scale);