Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Darksiders 2 Script for Xbox One | GtunerIV
- #include <xb1.gph>
- // Variables
- fix32 attackLevel = 11.76;
- bool glitchVendor = TRUE;
- main {
- if(isReady())
- {
- set_val(XB1_Y, 0.0);
- printf("Is Working");
- }
- if(is_active(XB1_DOWN) && get_actual(XB1_X) == 0.0 && get_prev(XB1_X) == 100.0 && glitchVendor)
- {
- combo_run(vendor);
- }
- }
- // Auto detect if heavy attack is ready
- bool isReady()
- {
- 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))
- return TRUE;
- return FALSE;
- }
- // LB + A to buy for free
- combo vendor
- {
- wait(50);
- set_val(XB1_LB, 100.0);
- set_val(XB1_A, 100.0);
- wait(150);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement