From 393ebc529ffbe312e11ff57664a5be7eb4df59e9 Mon Sep 17 00:00:00 2001 From: Belonit Date: Mon, 31 Aug 2020 07:30:59 +0300 Subject: [PATCH] Added replace_shp_shadow_check hook (not tested) --- src/replace_shp_shadow_check.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/replace_shp_shadow_check.cpp diff --git a/src/replace_shp_shadow_check.cpp b/src/replace_shp_shadow_check.cpp new file mode 100644 index 0000000000..60d37917cd --- /dev/null +++ b/src/replace_shp_shadow_check.cpp @@ -0,0 +1,13 @@ +#include +#include +#include +#include + +//Replace: checking of HasExtras = > checking of (HasExtras && Shadow) +DEFINE_HOOK(423365, replace_shp_shadow_check, 8) +{ + GET(AnimClass*, anim, ESI); + return (anim->Type->Shadow && anim->HasExtras) ? + 0x42336D : + 0x4233EE; +}