From fa1e12b37dde7d7fd56a9234f46d4754bb8f908b Mon Sep 17 00:00:00 2001 From: lopezloo <7338099+lopezloo@users.noreply.github.com> Date: Mon, 28 Nov 2022 13:36:10 +0100 Subject: [PATCH] Disable rendering ped dynamic shadows when they sit on bikes if vehicle volumetric shadows are disabled --- Client/game_sa/CSettingsSA.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Client/game_sa/CSettingsSA.cpp b/Client/game_sa/CSettingsSA.cpp index 56b2701006..79b3b0d8b4 100644 --- a/Client/game_sa/CSettingsSA.cpp +++ b/Client/game_sa/CSettingsSA.cpp @@ -331,6 +331,10 @@ bool CSettingsSA::IsVolumetricShadowsEnabled() void CSettingsSA::SetVolumetricShadowsEnabled(bool bEnable) { m_bVolumetricShadowsEnabled = bEnable; + + // Disable rendering ped real time shadows when they sit on bikes + // if vehicle volumetric shadows are disabled because it looks a bit weird + MemPut(0x5E682A + 1, bEnable); } void CSettingsSA::SetVolumetricShadowsSuspended(bool bSuspended)