Don't allow lean in single-player in the base game

This commit is contained in:
smallmodel 2024-11-10 17:00:20 +01:00
parent 48e9db8966
commit d3f3b9b51c
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 12 additions and 2 deletions

View file

@ -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;