Advertisement
Ketechi

Darksiders 2 | Xbox One | ConsoleTuner

Dec 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.78 KB | None | 0 0
  1. // Darksiders 2 Script for Xbox One | GtunerIV
  2. #include <xb1.gph>
  3.  
  4. // Variables
  5. fix32 attackLevel = 11.76;
  6. bool glitchVendor = TRUE;
  7.  
  8. main {
  9.     if(isReady())
  10.     {
  11.         set_val(XB1_Y, 0.0);
  12.         printf("Is Working");
  13.     }
  14.    
  15.     if(is_active(XB1_DOWN) && get_actual(XB1_X) == 0.0 && get_prev(XB1_X) == 100.0 && glitchVendor)
  16.     {
  17.         combo_run(vendor);
  18.     }
  19. }
  20.  
  21. // Auto detect if heavy attack is ready
  22. bool isReady()
  23. {
  24.     if(is_active(XB1_Y) && ffb_get(FFB_1, NULL) >= (attackLevel - 0.01) && ffb_get(FFB_2, NULL) >= (attackLevel - 0.01) && ffb_get(FFB_1, NULL) <= (attackLevel + 0.01) && ffb_get(FFB_2, NULL) <= (attackLevel + 0.01))
  25.         return TRUE;
  26.    
  27.     return FALSE;
  28. }
  29.  
  30. // LB + A to buy for free
  31. combo vendor
  32. {
  33.     wait(50);
  34.     set_val(XB1_LB, 100.0);
  35.     set_val(XB1_A, 100.0);
  36.     wait(150);
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement