mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
On Rob's suggestion: Allow your controls to turn CA_BOUNCE users to turn on a dime when coiling for the next bounce.
This commit is contained in:
parent
942065ba9f
commit
f60233027d
1 changed files with 8 additions and 0 deletions
|
@ -4144,7 +4144,15 @@ static void P_PlayerMobjThinker(mobj_t *mobj)
|
|||
mobj->eflags &= ~MFE_JUSTSTEPPEDDOWN;
|
||||
|
||||
if (mobj->state-states == S_PLAY_BOUNCE_LANDING)
|
||||
{
|
||||
angle_t dashangle = mobj->angle;
|
||||
if (mobj->player->cmd.forwardmove || mobj->player->cmd.sidemove)
|
||||
{
|
||||
dashangle += R_PointToAngle2(0, 0, mobj->player->cmd.forwardmove<<FRACBITS, -mobj->player->cmd.sidemove<<FRACBITS);
|
||||
}
|
||||
P_InstaThrust(mobj, dashangle, mobj->player->speed);
|
||||
goto animonly; // no need for checkposition - doesn't move at ALL
|
||||
}
|
||||
|
||||
// Zoom tube
|
||||
if (mobj->tracer)
|
||||
|
|
Loading…
Reference in a new issue