From d38a3a1fb1eb8250a8bd2d2048d23582c772bc75 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 26 Aug 2020 00:22:11 +0200 Subject: [PATCH] - added autoaim switch for Exhumed. Pointers for the needed change taken from GDX. This applies only to hitscan weapons the rest do not appear to autoaim. Fixes #260 --- source/exhumed/src/gun.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/exhumed/src/gun.cpp b/source/exhumed/src/gun.cpp index 74fadf7e1..e84e283ec 100644 --- a/source/exhumed/src/gun.cpp +++ b/source/exhumed/src/gun.cpp @@ -847,7 +847,7 @@ loc_flag: int var_50 = (fix16_to_int(sPlayerInput[nPlayer].horizon) - 92) << 2; nHeight -= var_50; - if (sPlayerInput[nPlayer].nTarget >= 0) + if (sPlayerInput[nPlayer].nTarget >= 0 && cl_autoaim) { assert(sprite[sPlayerInput[nPlayer].nTarget].sectnum < kMaxSectors); var_50 = sPlayerInput[nPlayer].nTarget + 10000;