From e3197d206d8a80159398d6343029f507c7a412f5 Mon Sep 17 00:00:00 2001 From: NY00123 Date: Sat, 18 Apr 2020 00:09:27 +0300 Subject: [PATCH] SW: Temporarily lock angle and horiz right upon player death --- source/sw/src/player.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/sw/src/player.cpp b/source/sw/src/player.cpp index 98dc621df..b9d99b1fb 100644 --- a/source/sw/src/player.cpp +++ b/source/sw/src/player.cpp @@ -6470,6 +6470,10 @@ DoPlayerBeginDie(PLAYERp pp) if (GodMode) return; + // Ensure these are initially locked + pp->camq16ang = pp->q16ang; + pp->camq16horiz = pp->q16horiz; + StopPlayerSound(pp); // Do the death scream