From 914180f9add22bfed36e77eea2ed8d9a301658f9 Mon Sep 17 00:00:00 2001 From: Seter <86374920+skkuull@users.noreply.github.com> Date: Sun, 15 Jan 2023 02:04:32 +0300 Subject: [PATCH] make tags patch for debug only --- src/client/component/weapon.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/component/weapon.cpp b/src/client/component/weapon.cpp index ad88234b..e7e2342f 100644 --- a/src/client/component/weapon.cpp +++ b/src/client/component/weapon.cpp @@ -128,9 +128,10 @@ namespace weapon // precache all weapons that are loaded in zones g_setup_level_weapon_def_hook.create(0x462630_b, g_setup_level_weapon_def_stub); +#ifdef DEBUG // use tag_weapon if tag_weapon_right or tag_knife_attach are not found on model xmodel_get_bone_index_hook.create(0x5C82B0_b, xmodel_get_bone_index_stub); - +#endif // make custom weapon index mismatch not drop in CG_SetupCustomWeapon utils::hook::call(0x11B9AF_b, cw_mismatch_error_stub);