mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
Maximum Drop Dash speed of 75*FRACUNIT.
This commit is contained in:
parent
ad03bb5278
commit
d0bb7293bd
1 changed files with 1 additions and 1 deletions
|
@ -2995,7 +2995,7 @@ static void P_PlayerZMovement(mobj_t *mo)
|
|||
}
|
||||
if ((mo->player->powers[pw_shield] & SH_FORCE) == SH_FORCE) // Force Shield's drop dash.
|
||||
{
|
||||
fixed_t magnitude = max(FixedHypot((FixedHypot(mo->momx, mo->momy)), mo->momz), abs(mo->momz)*2); // vertical momentum is amplified here, since otherwise this was kind of weak.
|
||||
fixed_t magnitude = min(max(FixedHypot((FixedHypot(mo->momx, mo->momy)), mo->momz), abs(mo->momz)*2), 75<<FRACBITS); // vertical momentum is amplified here, since otherwise this was kind of weak.
|
||||
P_InstaThrust(mo, mo->angle, magnitude);
|
||||
S_StartSound(mo, sfx_zoom);
|
||||
mo->player->pflags |= PF_SPINNING;
|
||||
|
|
Loading…
Reference in a new issue