PGA2K25 could someone please convert this to titan 2 ty

Documentation, usage tips and configuration guides for Titan Two scripts and bytecodes published by the community users.

PGA2K25 could someone please convert this to titan 2 ty

Postby Stopit33 » Thu Feb 13, 2025 4:50 pm

Code: Select all
//HOLD SQUARE THEN CROSS TO EXECUTE PERFECT SWING
 
//Tested and works with with Tee and Approach shots ONLY
//Works on Pro, Master and Legend
//Correction stat NOT above 70 - Unable to test until full game
//Also can use this Swing for ANY distance less than 100%
//For putting and other straights shots HOLD R2 (R2 doesnt work on the tee)
 
// If you have stick drift edit it here
int RSX_DeadZone = 15;
int RSY_DeadZone = 15;
int LSY_DeadZone = 15;
int LSX_DeadZone = 15;
 
main {
 
//Stick DeadZones Do NOT edit
 if( abs(get_val(PS5_RX))< RSX_DeadZone ){
        set_val(PS5_RX,0);
        }
 if( abs(get_val(PS5_RY))< RSY_DeadZone ){
        set_val(PS5_RY,0);
        }
 if( abs(get_val(PS5_LY))< LSY_DeadZone ){
        set_val(PS5_LY,0);
        }
 if( abs(get_val(PS5_LX))< LSX_DeadZone ){
        set_val(PS5_LX,0);
        }
 
 
//Sets VM to run in multiples of 2ms instead of the default 10
 vm_tctrl(-8);
 
 
//Hold RT while putting for a straight club path
 if(get_val(PS5_R2)) {
        set_val(PS5_R2,random(-2,2));
            set_val(PS5_LX,0);
            set_val(PS5_RX,0);
            set_val(PS5_CROSS,0);
            set_val(PS5_SQUARE,0);
    }
 
//Hold RT and X to perform a 100% Normal/Flop
 if(get_val(PS5_SQUARE) && event_press(PS5_CROSS)) {
     combo_run(Perfect100Swing)
    }
 
}
 
 
//Functions
function x_axis (){
    return random(-7,7);
}
 
//Swing
 
combo Perfect100Swing{
    wait(1000);
    set_val(PS5_LX, 0);
    set_val(PS5_LX, x_axis ());
    wait(100);
    set_val(PS5_LY, 50);
    set_val(PS5_LX, x_axis ());
    wait(100);
    set_val(PS5_LY, 100);
    set_val(PS5_LX, 20);
    wait(480);
    set_val(PS5_LY, 98);
    set_val(PS5_LX, x_axis ());
    wait(10);
    set_val(PS5_LY, 89);
    set_val(PS5_LX, x_axis ());
    wait(8);
    set_val(PS5_LY, 59);
    set_val(PS5_LX, x_axis ());
    wait(8);
    set_val(PS5_LY, 38);
    set_val(PS5_LX, x_axis ());
    wait(6);
    set_val(PS5_LY, 0);
    set_val(PS5_LX, x_axis ());
    wait(8);
    set_val(PS5_LY, -35);
    set_val(PS5_LX, x_axis ());
    wait(8);
    set_val(PS5_LY, -59);
    set_val(PS5_LX, x_axis ());
    wait(8);
    set_val(PS5_LY, -72);
    set_val(PS5_LX, -10);
    wait(8);
    set_val(PS5_LY, -100);
    set_val(PS5_LX, -10);
    wait(1000);
}
User avatar
Stopit33
Sergeant
Sergeant
 
Posts: 7
Joined: Mon Mar 11, 2019 1:29 pm

Return to User's Script Documentation

Who is online

Users browsing this forum: No registered users and 20 guests