| 2495 | } |
| 2496 | |
| 2497 | static void ApplySetWeaponCapacityClientPatch() |
| 2498 | { |
| 2499 | if (!EnableCustomMaxWeaponCapacity) return; |
| 2500 | |
| 2501 | DWORD addr_GetWeaponCapacity = ScanModuleSignature(g_State.GameClient, "CC 8B 41 48 8B 0D", "GetWeaponCapacity"); |
| 2502 | |
| 2503 | if (addr_GetWeaponCapacity != 0) |
| 2504 | { |
| 2505 | HookHelper::ApplyHook((void*)(addr_GetWeaponCapacity + 0x1), &GetWeaponCapacity_Hook, (LPVOID*)&GetWeaponCapacity); |
| 2506 | g_State.appliedCustomMaxWeaponCapacity = true; |
| 2507 | } |
| 2508 | } |
| 2509 | |
| 2510 | static void ApplyHighResolutionReflectionsClientPatch() |
| 2511 | { |
no test coverage detected