SW: added CVAR 'sw_nocenterview' to block view centering after landing from a tall jump.

No menu entry yet.
This commit is contained in:
Christoph Oelckers 2024-02-04 15:15:26 +01:00
parent 39b78dede1
commit 93bc496494

View file

@ -56,6 +56,8 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
#include "gamestate.h" #include "gamestate.h"
#include "vm.h" #include "vm.h"
CVAR(Bool, sw_nocenterview, false, CVAR_ARCHIVE)
BEGIN_SW_NS BEGIN_SW_NS
void pSpriteControl(DSWPlayer* pp); void pSpriteControl(DSWPlayer* pp);
@ -2908,7 +2910,7 @@ void DoPlayerFall(DSWPlayer* pp)
{ {
PlayerSound(DIGI_FALLSCREAM, v3df_dontpan|v3df_doppler|v3df_follow,pp); PlayerSound(DIGI_FALLSCREAM, v3df_dontpan|v3df_doppler|v3df_follow,pp);
} }
else if (pp->jump_speed > 1300) else if (pp->jump_speed > 1300 && !sw_nocenterview)
{ {
if (!(pp->cmd.ucmd.actions & SB_CENTERVIEW)) if (!(pp->cmd.ucmd.actions & SB_CENTERVIEW))
{ {