The Golf Club 2019 helper

Controls: RT = swing Right on right stick and LT = add 10ms to the backswing variable Left on right stick and LT = -10ms to the backswing variable Down on left stick and LT = reset variable to 750 With beginner clubs, nearly all shots but chip and punch will be perfect / perfect. Some small adjustment to the backswing will ensure perfect shots. Use RS to check the swing before actually hitting.
Version1.2
AuthorSitava
Publish DateSat, 8 Jun 2019 - 17:10
Last UpdateSat, 8 Jun 2019 - 17:29
Downloads9
RATE


0

0

Code: Select all
// The Golf Club Helper 2019 Script
 
// V 1.2 (bugfix)
 
// Controls:
// RT = swing
// Right on right stick and LT = add 10ms to the backswing variable
// Left on right stick and LT = -10ms to the backswing variable
// Down on left stick and LT = reset variable to 750
 
// With beginner clubs, nearly all shots but chip and punch will be perfect / perfect.
// Some small adjustment to the backswing will ensure perfect shots. Use RS to check the swing before actually hitting.
 
int bswing = 750;
 
main    {
    if (get_val(XB1_RT) ==100) combo_run(Full_Swing);
    if (event_press(XB1_LT) && get_val(XB1_RX) < 60) bswing = bswing - 10;
    if (event_press(XB1_LT) && get_val(XB1_RX) > -60) bswing = bswing + 10;
    if (event_press(XB1_LT) && get_val(XB1_RY) > 60) bswing = 750;
        }
 
combo Full_Swing    {
    set_val(XB1_RY, 100);
    wait (bswing); // This value needs to be adjusted to correct backswing depending on club selection
    set_val(XB1_RY, 0);
    wait (50);
    set_val(XB1_RY, -100);
    wait (500);
}