summaryrefslogtreecommitdiff
path: root/internal_rewrite/autowall.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'internal_rewrite/autowall.cpp')
-rw-r--r--internal_rewrite/autowall.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal_rewrite/autowall.cpp b/internal_rewrite/autowall.cpp
index 72236cd..b546cbd 100644
--- a/internal_rewrite/autowall.cpp
+++ b/internal_rewrite/autowall.cpp
@@ -70,7 +70,11 @@ namespace features
}
bool c_autowall::is_breakable( IClientEntity* ent ) {
+#ifdef is_breakable_ptr
+ static auto is_breakable_ptr = g_header.patterns.is_breakable;
+#else
static auto is_breakable_ptr = pattern::first_code_match( g_csgo.m_chl.dll( ), xors( "55 8B EC 51 56 8B F1 85 F6 74 68 83 BE" ) );
+#endif
auto& v2 = *reinterpret_cast< uint8_t* >( uintptr_t( ent ) + 0x27c );
uint8_t backup_value = v2;