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);