mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-20 00:11:19 +00:00
Scale angle-related camera turns by player speed
They also operate at full when idle, too.
This commit is contained in:
parent
097fc48f52
commit
252b77c651
1 changed files with 2 additions and 0 deletions
|
@ -1564,6 +1564,8 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
|
|||
camadjustfactor = cv_cam_turnfacing[forplayer].value/8;
|
||||
}
|
||||
|
||||
camadjustfactor = FixedMul(camadjustfactor, max(FRACUNIT - player->speed, min(player->speed/18, FRACUNIT)));
|
||||
|
||||
camadjustfactor = FixedMul(camadjustfactor, tta_factor[forplayer]);
|
||||
|
||||
if (tta_factor[forplayer] < FRACUNIT && (cmd->forwardmove || cmd->sidemove || tta_factor[forplayer] >= FRACUNIT/3))
|
||||
|
|
Loading…
Reference in a new issue