mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-20 08:20:52 +00:00
More turn-to-angle changes
This commit is contained in:
parent
f82f1513ba
commit
fdc3347e22
2 changed files with 2 additions and 5 deletions
|
@ -1571,10 +1571,7 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
|
||||||
|
|
||||||
if (camadjustfactor)
|
if (camadjustfactor)
|
||||||
{
|
{
|
||||||
INT32 anglediff =
|
INT32 anglediff = (cmd->angleturn<<16) + drawangleoffset - *myangle;
|
||||||
// This check to potentially use angleturn fixes the judder when holding back in the air to brake
|
|
||||||
((alt && (forward || side) && !P_IsObjectOnGround(player->mo)) ? (cmd->angleturn<<16) : player->drawangle)
|
|
||||||
+ drawangleoffset - *myangle;
|
|
||||||
|
|
||||||
if (alt)
|
if (alt)
|
||||||
{
|
{
|
||||||
|
|
|
@ -10016,7 +10016,7 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||||
{
|
{
|
||||||
// Shift the camera slightly to the sides depending on the player facing direction
|
// Shift the camera slightly to the sides depending on the player facing direction
|
||||||
UINT8 forplayer = (thiscam == &camera) ? 0 : 1;
|
UINT8 forplayer = (thiscam == &camera) ? 0 : 1;
|
||||||
fixed_t shift = FixedMul(FINESINE((player->drawangle - angle) >> ANGLETOFINESHIFT), cv_cam_shiftfacing[forplayer].value);
|
fixed_t shift = FixedMul(FINESINE((player->mo->angle - angle) >> ANGLETOFINESHIFT), cv_cam_shiftfacing[forplayer].value);
|
||||||
|
|
||||||
if (player->powers[pw_carry] == CR_ROLLOUT)
|
if (player->powers[pw_carry] == CR_ROLLOUT)
|
||||||
shift = -shift;
|
shift = -shift;
|
||||||
|
|
Loading…
Reference in a new issue