make tags patch for debug only

This commit is contained in:
Seter 2023-01-15 02:04:32 +03:00 committed by fed
parent dc2a41adca
commit 914180f9ad

View File

@ -128,9 +128,10 @@ namespace weapon
// precache all weapons that are loaded in zones // precache all weapons that are loaded in zones
g_setup_level_weapon_def_hook.create(0x462630_b, g_setup_level_weapon_def_stub); 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 // 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); xmodel_get_bone_index_hook.create(0x5C82B0_b, xmodel_get_bone_index_stub);
#endif
// make custom weapon index mismatch not drop in CG_SetupCustomWeapon // make custom weapon index mismatch not drop in CG_SetupCustomWeapon
utils::hook::call(0x11B9AF_b, cw_mismatch_error_stub); utils::hook::call(0x11B9AF_b, cw_mismatch_error_stub);