Advertisement
TheGeek2004

Untitled

Jan 30th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. bool IsBackup = false;
  2.  
  3. void BackupVariables(void) // where i put the fast knife i make a new thread or what
  4. {
  5. if (!IsGameReadyForHook()) return;
  6. DWORD CShell = (DWORD)GetModuleHandleW(L"CShell.dll");
  7. DWORD crossfire = (DWORD)GetModuleHandleW(L"crossfire.exe");
  8. if (crossfire ==NULL) return;
  9. if (!IsBackup)
  10. {
  11. if (CShell !=NULL)
  12. {
  13. memcpy(reinterpret_cast<void*>(CShell + 0x75C381), "\xE9\xE3\x01\x00\x00\x90", 6);
  14. }
  15. IsBackup = true;
  16. }
  17. }
  18. /////////////////////////////////////////////////////////////////////////////////////////
  19. void StartHacks1(void)
  20. {
  21. if (!IsGameReadyForHook()) return; // this thing it will check the hacks if fullyloaded
  22. DWORD CShell = (DWORD)GetModuleHandleW(L"CShell.dll");
  23. DWORD crossfire = (DWORD)GetModuleHandleW(L"crossfire.exe");// anti send error
  24. if (crossfire ==NULL) return;
  25. //================Fast Knife===============//
  26. DWORD dwFastKnife = *(DWORD*)(CShell + 0x1942128);
  27. for (int i = 0; i < 0xC00; i++)
  28. {
  29. DWORD dwFastKnifePtr = *(DWORD*)(dwFastKnife + (4 * i));
  30. if(dwFastKnifePtr !=NULL)
  31. {
  32. for (int x = 0; x < 9; x++)
  33. {
  34. *(float*)(dwFastKnifePtr + (0x10E8 + (4 * x))) = 250.0f; // KnifeNormalAniRate
  35. *(float*)(dwFastKnifePtr + (0x1148 + (4 * x))) = 250.0f; // KnifeNormalAniRate2
  36. }
  37. }
  38. }
  39.  
  40. //================Knife 360===============//
  41. DWORD dwFastKnife360 = *(DWORD*)(CShell + 0x1942128);// ReloadAnimRatio
  42. for (int i = 0; i < 0xC00; i++)
  43. {
  44. DWORD dwFastKnife360Ptr = *(DWORD*)(dwFastKnife360 + (4 * i));
  45. if (dwFastKnife360Ptr !=NULL)
  46. {
  47. for (int x = 0; x < 9; x++) // ok build it and try it and don dEclare
  48. {
  49. *(float*)(dwFastKnife360Ptr + (0x10D8 + (4 * x))) = 999.0f; // KnifeNormalAngle
  50. *(float*)(dwFastKnife360Ptr + (0x1138 + (4 * x))) = 999.0f; // KnifeNormalAngle2
  51. *(float*)(dwFastKnife360Ptr + (0x1108 + (4 * x))) = 999.0f; // KnifeBigshotAngle
  52. *(float*)(dwFastKnife360Ptr + (0x1168 + (4 * x))) = 999.0f; // KnifeBigshotAngle2
  53. }
  54. }
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement