void CriticalHitManager::EnableCriticalDetour() { if (!detoured) { DoGatePatch((unsigned char *)critical_address, &critical_callback); DoGatePatch((unsigned char *)melee_address, &melee_callback); DoGatePatch((unsigned char *)knife_address, &knife_callback); detoured = true; } }
void CDetour::EnableDetour() { if (!detoured) { DoGatePatch((unsigned char *)detour_address, &detour_callback); detoured = true; } }