mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 13:40:45 +00:00
Make cam_rotspeed affect non-mouse turn speed
10 remains the default and is vanilla behavior.
This commit is contained in:
parent
eee0d42b1f
commit
c94d7895df
1 changed files with 3 additions and 0 deletions
|
@ -1154,6 +1154,9 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
|
|||
// JOYAXISRANGE should be 1023 (divide by 1024)
|
||||
cmd->angleturn = (INT16)(cmd->angleturn - ((axis * angleturn[1]) >> 10)); // ANALOG!
|
||||
}
|
||||
|
||||
// Make rotspeed affect turning speed :)
|
||||
cmd->angleturn = (cmd->angleturn * (ssplayer == 1 ? cv_cam_rotspeed.value : cv_cam2_rotspeed.value)) / 10;
|
||||
}
|
||||
|
||||
axis = PlayerJoyAxis(ssplayer, AXISSTRAFE);
|
||||
|
|
Loading…
Reference in a new issue