From 93bc496494510084d60f6e85acccc173cc84204c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 4 Feb 2024 15:15:26 +0100 Subject: [PATCH] SW: added CVAR 'sw_nocenterview' to block view centering after landing from a tall jump. No menu entry yet. --- source/games/sw/src/player.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/games/sw/src/player.cpp b/source/games/sw/src/player.cpp index 183c3ff3f..95889c6ea 100644 --- a/source/games/sw/src/player.cpp +++ b/source/games/sw/src/player.cpp @@ -56,6 +56,8 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "gamestate.h" #include "vm.h" +CVAR(Bool, sw_nocenterview, false, CVAR_ARCHIVE) + BEGIN_SW_NS void pSpriteControl(DSWPlayer* pp); @@ -2908,7 +2910,7 @@ void DoPlayerFall(DSWPlayer* 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)) {