Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool IsBackup = false;
- void BackupVariables(void) // where i put the fast knife i make a new thread or what
- {
- if (!IsGameReadyForHook()) return;
- DWORD CShell = (DWORD)GetModuleHandleW(L"CShell.dll");
- DWORD crossfire = (DWORD)GetModuleHandleW(L"crossfire.exe");
- if (crossfire ==NULL) return;
- if (!IsBackup)
- {
- if (CShell !=NULL)
- {
- memcpy(reinterpret_cast<void*>(CShell + 0x75C381), "\xE9\xE3\x01\x00\x00\x90", 6);
- }
- IsBackup = true;
- }
- }
- /////////////////////////////////////////////////////////////////////////////////////////
- void StartHacks1(void)
- {
- if (!IsGameReadyForHook()) return; // this thing it will check the hacks if fullyloaded
- DWORD CShell = (DWORD)GetModuleHandleW(L"CShell.dll");
- DWORD crossfire = (DWORD)GetModuleHandleW(L"crossfire.exe");// anti send error
- if (crossfire ==NULL) return;
- //================Fast Knife===============//
- DWORD dwFastKnife = *(DWORD*)(CShell + 0x1942128);
- for (int i = 0; i < 0xC00; i++)
- {
- DWORD dwFastKnifePtr = *(DWORD*)(dwFastKnife + (4 * i));
- if(dwFastKnifePtr !=NULL)
- {
- for (int x = 0; x < 9; x++)
- {
- *(float*)(dwFastKnifePtr + (0x10E8 + (4 * x))) = 250.0f; // KnifeNormalAniRate
- *(float*)(dwFastKnifePtr + (0x1148 + (4 * x))) = 250.0f; // KnifeNormalAniRate2
- }
- }
- }
- //================Knife 360===============//
- DWORD dwFastKnife360 = *(DWORD*)(CShell + 0x1942128);// ReloadAnimRatio
- for (int i = 0; i < 0xC00; i++)
- {
- DWORD dwFastKnife360Ptr = *(DWORD*)(dwFastKnife360 + (4 * i));
- if (dwFastKnife360Ptr !=NULL)
- {
- for (int x = 0; x < 9; x++) // ok build it and try it and don dEclare
- {
- *(float*)(dwFastKnife360Ptr + (0x10D8 + (4 * x))) = 999.0f; // KnifeNormalAngle
- *(float*)(dwFastKnife360Ptr + (0x1138 + (4 * x))) = 999.0f; // KnifeNormalAngle2
- *(float*)(dwFastKnife360Ptr + (0x1108 + (4 * x))) = 999.0f; // KnifeBigshotAngle
- *(float*)(dwFastKnife360Ptr + (0x1168 + (4 * x))) = 999.0f; // KnifeBigshotAngle2
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement