Skip to content

Static Variables

Type

Int

Initial Value

367

Description

Angle is primarily based on owner velocity, adjusted by the victim's position relative to the autolink point (center of hitbox) Knockback is also based on owner velocity, but affected by victim position relative to the autolink point The attack's knockback growth and power can be used to fine-tune the amount of knockback: calculated_speed (knockback_growth / 100) + power Note: Currently this angle type does not factor in baseScaleX/baseScaleY stats nor object rotation, so it will be innacurate if there is any scaling or rotation in place with the object involved.

Type

Int

Initial Value

368

Description

Power and angle are based off of the owner's velocity and trajectory as well as the victim's position relative to the autolink point (center of the hitbox by default - override with hitboxStats.metadata.autolinkPoint).

The victim's launch speed will be overridden to half of the owner's velocity. (Think angle 365 in Smash) Note: Currently this angle type does not factor in baseScaleX/baseScaleY stats nor object rotation, so it will be innacurate if there is any scaling or rotation in place with the object involved. WARNING: YOUR BASEKNOCKBACK AND KNOCKBACKGROWTH VALUES WILL BE IGNORED

Type

Int

Initial Value

365

Description

Angle is based off of the angle that the owner is currently moving.

Unlike other autolink directions, the victim's launch speed will NOT be overridden by the angle (but flags will be forced with REVERSABLE_ANGLE), so make sure your baseknockback and knockbackgrowth are set!

DAMAGE

Type

Int

Initial Value

364

Description

Angle is dependent on victim's damage.

Increases .26 degrees per 1%, caps at 150% at a 40 degree angle. See: <https://www.ssbwiki.com/File:Sakurai_angle_chart.png&gt;

DEFAULT

Type

Int

Initial Value

361

Description

Angle is dependent on velocity that the victim is sent at.

The angle will either be exactly 0 degrees at low velocities, 45 at high velocities, or 45 if it hits an aerial foe. See: <https://www.ssbwiki.com/File:Sakurai_angle_chart.png&gt;

RANDOM

Type

Int

Initial Value

369

Description

Angle is entirely random.

RANDOM_UP

Type

Int

Initial Value

370

Description

Angle is random, but cannot spike. (10-170)

RIVALS

Type

Int

Initial Value

363

Description

Angle is dependent on victim's grounded/aerial status.

Grounded foes are sent at a 40 degree angle, aerial foes are sent at a 45 degree angle. See: <https://www.rivalsofaether.com/workshop/hitbox-grid-indexes/&gt;

Static Functions

calculateAttackAngle(stats:HitboxStats, victim:GameObject, knockback:Float, result:CollisionResult):Float

Description

Based on params, calculates and returns a new angle as per the given SpecialAngle. If an autolink angle is calculated, also sets stats.reversible = false

calculateKnockback(stats:HitboxStats, victim:GameObject, result:CollisionResult):Float

Description

Based on params, calculates a new knockback as per the given SpecialAngle. Not all SpecialAngle values modify knockback