mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Don't allow lean in single-player in the base game
This commit is contained in:
parent
48e9db8966
commit
d3f3b9b51c
2 changed files with 12 additions and 2 deletions
|
@ -501,8 +501,13 @@ void CG_PredictPlayerState(void)
|
|||
cg_pmove.leanSpeed = 2.f;
|
||||
} else {
|
||||
cg_pmove.alwaysAllowLean = qtrue;
|
||||
if (cgs.gametype != GT_SINGLE_PLAYER) {
|
||||
cg_pmove.leanMax = 40.f;
|
||||
} else {
|
||||
// Don't allow lean in single-player, like in the original game
|
||||
cg_pmove.leanMax = 0;
|
||||
}
|
||||
|
||||
cg_pmove.leanMax = 40.f;
|
||||
cg_pmove.leanAdd = 10.f;
|
||||
cg_pmove.leanRecoverSpeed = 15.f;
|
||||
cg_pmove.leanSpeed = 4.f;
|
||||
|
|
|
@ -3690,8 +3690,13 @@ void Player::SetMoveInfo(pmove_t *pm, usercmd_t *ucmd)
|
|||
pm->leanSpeed = 2.f;
|
||||
} else {
|
||||
pm->alwaysAllowLean = qtrue;
|
||||
if (g_gametype->integer != GT_SINGLE_PLAYER) {
|
||||
pm->leanMax = 40.f;
|
||||
} else {
|
||||
// Don't allow lean in single-player, like in the original game
|
||||
pm->leanMax = 0;
|
||||
}
|
||||
|
||||
pm->leanMax = 40.f;
|
||||
pm->leanAdd = 10.f;
|
||||
pm->leanRecoverSpeed = 15.f;
|
||||
pm->leanSpeed = 4.f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue