Correclty reallocate weapon asset pool
This commit is contained in:
parent
811a5532d5
commit
9a4b1a536d
@ -573,10 +573,378 @@ namespace fastfiles
|
|||||||
return reallocate_asset_pool<Type, pool_size* Multiplier>();
|
return reallocate_asset_pool<Type, pool_size* Multiplier>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define RVA(ptr) static_cast<uint32_t>(reinterpret_cast<size_t>(ptr) - 0_b)
|
||||||
|
|
||||||
|
void reallocate_weapon_pool()
|
||||||
|
{
|
||||||
|
constexpr auto size = get_pool_type_size(game::ASSET_TYPE_WEAPON) * 2;
|
||||||
|
static void* weapon_complete_defs[size]{};
|
||||||
|
|
||||||
|
reallocate_asset_pool<game::ASSET_TYPE_WEAPON, size>();
|
||||||
|
|
||||||
|
utils::hook::inject(0x2E3005_b + 3,
|
||||||
|
reinterpret_cast<void*>(reinterpret_cast<size_t>(weapon_complete_defs) + 8));
|
||||||
|
|
||||||
|
utils::hook::inject(0xED734_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1D59F4_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DCEDB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E7BB5_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E7D35_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2ECCD0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x429B84_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E1DFD_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E21AB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1E8BC9_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DDBA6_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x549FF0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x563D20_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x563E04_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x618464_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DB218_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41ECDC_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x42C882_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0xEFE22_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1199DD_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x11D857_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x128E28_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DB83B_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DC5BC_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E2549_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E29DF_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E6337_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E7963_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2F0BA3_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x3044C3_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x305118_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41B385_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x42544A_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x425EAB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x426971_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x42ACA7_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x10A173_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2D922C_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DD2D0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DE6C4_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2F041F_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41E2BC_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41F054_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x427487_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x461657_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x54A351_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x54A524_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x567328_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DE83F_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DF050_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EBFE0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DF290_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x54A6A0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0xE97A0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0xE97F0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0xE9900_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0xE9954_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0xEDAEC_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1BA6FC_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1E99B2_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1E9AD2_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2818CA_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2845FD_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x284C2D_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x285694_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x285C2C_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2C606A_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2CD275_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2CD2B4_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2D50A4_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2D8B20_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DC824_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DCDE1_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DEA7C_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E1463_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E14EF_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E15EB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E17FB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E18EB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E19EB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E339E_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E360A_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E3CE0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E56C8_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E5840_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E58BB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E5FE2_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E6890_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E68F0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E6960_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E6AB0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E6CA0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E7640_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E76A0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E7700_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E7760_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E77C0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E7A80_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E8753_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EA650_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EB870_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EC488_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EFD84_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x427D5C_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x4288F8_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x428C89_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x43748E_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x4376AE_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x43796E_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x54953B_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x54A21F_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x54A5F0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x54A7E7_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x54A8D9_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x54ADA0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x54BAC0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x472198_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x285FF2_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2C3154_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2C3AC0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DD193_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DECC4_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DEE68_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E16EB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E1ACB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E1CFB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E1EDB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E2015_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E20AB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E7530_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E8950_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EBA5C_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x30307B_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x30308E_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x30917E_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41AE27_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x549354_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x54A867_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2D4FDB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0xEB3BA_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0xFDC77_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1072EB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x11C14E_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1270D5_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x12868F_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x128848_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2C4160_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E7B12_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EA7C6_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EAE75_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EB077_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41BB9D_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41E64B_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41E868_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41EBCB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x426172_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x4262A0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x439669_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x45E912_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x46284E_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x46D658_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x46DF93_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0xD597B_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0xF3375_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x121F3A_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1BA9C8_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1D3F28_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2C4220_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2D70DB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DB108_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E2FC1_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EB8D9_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EBB85_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x40C304_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x42A795_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x472530_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E9939_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E7F79_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x117129_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DE589_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E4D2E_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E4E73_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E578E_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E6686_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E6DCD_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41E05A_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41E1D3_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x428ECE_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x54BB26_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x6183A6_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2D6FF6_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EBCED_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E041A_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0xF38FE_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0xF7880_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x102153_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1021FB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x10415B_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1168F5_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x126C09_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x180552_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1CCFD0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1D929F_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1D9575_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1E8E0E_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1E98CC_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2D4EF3_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2D638B_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DC023_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E31D7_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E3EC8_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E9364_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2FCEDF_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x324376_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x440497_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x460237_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x46025A_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x461200_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x46EBE4_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x46EE70_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x46F4E1_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x46FD48_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x5F2479_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x6641D_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1074F2_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1C7B8D_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DE40E_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DE8B5_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DF63C_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DF7DF_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E0CD9_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E2ADD_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E2B7C_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E2DB1_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E4C10_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E9F50_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EA0B0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EA535_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2ED0A5_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x305581_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x3236BD_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x3F2CDA_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x407BE5_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x4155E0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41C61D_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41D96E_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41DA71_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x42A442_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x42F56F_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x5482BB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x54AA1D_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1075A9_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0xC5394_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0xEEC4D_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x11C2E2_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x11E6F2_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1994C0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x1E9DE0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x285E44_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E1BE1_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E3F34_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E474C_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E6B2E_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E9530_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E95B0_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EC08D_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2ECC4D_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EFD59_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2FCEFE_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2FCF15_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x328444_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x40F47E_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x4169AB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41C481_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41E742_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41EE62_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x41EF3E_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x45FD83_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x46181E_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x46EDD8_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x54924D_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x54AFA5_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x617F77_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0xF30DF_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2BC095_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2D605B_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2D8CD1_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DA7DB_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2DC379_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E3121_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2E5953_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EA8C2_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x2EE9F7_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x303318_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x424D33_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x429149_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x4299F4_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x4417C9_b + 3, weapon_complete_defs);
|
||||||
|
utils::hook::inject(0x471083_b + 3, weapon_complete_defs);
|
||||||
|
|
||||||
|
utils::hook::inject(0x2E0440_b + 3, weapon_complete_defs);
|
||||||
|
|
||||||
|
utils::hook::set<uint32_t>(0x427EB1_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x4240A8_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x54B8B1_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x2D274B_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x311DA8_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x311EB8_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x323BD1_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x2E0864_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x2F170C_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x42CB3B_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x136327_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x4671FF_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x46722F_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x46754C_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x565FA2_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x56600E_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x2EA352_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x2EA369_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x56483F_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x2EA337_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x402261_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x4022A9_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x41CED5_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x42B540_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x42B560_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x5660CB_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x42B523_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x117C82_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x411438_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x12AB34_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x129F9B_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x12AC16_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x12AC9D_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x424087_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x54B897_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x129F5C_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x42406A_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x54B87B_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x565D1B_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x123FF5_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x42CB1B_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x42CAFE_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x136310_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x46752E_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x1362F3_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0xF454D_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x41CC61_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x41D7FB_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x427E8F_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
utils::hook::set<uint32_t>(0x427E72_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
|
||||||
|
utils::hook::set<uint32_t>(0x11865F_b + 4, RVA(&weapon_complete_defs));
|
||||||
|
}
|
||||||
|
|
||||||
void reallocate_asset_pools()
|
void reallocate_asset_pools()
|
||||||
{
|
{
|
||||||
|
reallocate_weapon_pool();
|
||||||
reallocate_asset_pool_multiplier<game::ASSET_TYPE_XANIM, 2>();
|
reallocate_asset_pool_multiplier<game::ASSET_TYPE_XANIM, 2>();
|
||||||
//reallocate_asset_pool_multiplier<game::ASSET_TYPE_WEAPON, 2>();
|
|
||||||
reallocate_asset_pool_multiplier<game::ASSET_TYPE_SOUND, 2>();
|
reallocate_asset_pool_multiplier<game::ASSET_TYPE_SOUND, 2>();
|
||||||
reallocate_asset_pool_multiplier<game::ASSET_TYPE_LOADED_SOUND, 2>();
|
reallocate_asset_pool_multiplier<game::ASSET_TYPE_LOADED_SOUND, 2>();
|
||||||
reallocate_asset_pool_multiplier<game::ASSET_TYPE_LOCALIZE, 2>();
|
reallocate_asset_pool_multiplier<game::ASSET_TYPE_LOCALIZE, 2>();
|
||||||
|
Loading…
Reference in New Issue
Block a user