MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / ApplySetWeaponCapacityClientPatch

Function ApplySetWeaponCapacityClientPatch

src/Client/Client.cpp:2497–2508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2495}
2496
2497static 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
2510static void ApplyHighResolutionReflectionsClientPatch()
2511{

Callers 1

ApplyClientPatchFunction · 0.85

Calls 2

ScanModuleSignatureFunction · 0.85
ApplyHookFunction · 0.85

Tested by

no test coverage detected