Make terrain based dashpads set your angle like the SSF flag version
This commit is contained in:
parent
e733394ded
commit
dc448596ba
1 changed files with 7 additions and 0 deletions
|
|
@ -680,8 +680,15 @@ void K_ProcessTerrainEffect(mobj_t *mo)
|
|||
K_MomentumAngle(player->mo), thrustAngle,
|
||||
playerSpeed, thrustSpeed
|
||||
);
|
||||
|
||||
player->mo->angle = player->drawangle = thrustAngle;
|
||||
player->driftlock = TICRATE/8; // seems like a good value so its not noticable and you still get the right angle
|
||||
|
||||
if (!demo.playback)
|
||||
P_ForceLocalAngle(player, player->mo->angle, true);
|
||||
|
||||
player->angleturn = player->mo->angle;
|
||||
|
||||
P_InstaThrust(player->mo, thrustAngle, max(thrustSpeed, 2*playerSpeed));
|
||||
|
||||
player->dashpadcooldown = TICRATE/3;
|
||||
|
|
|
|||
Loading…
Reference in a new issue