PLZ CONVERT TO T1 (JAIWALKKIN2.9)

GPC1 script programming for Titan One. Code examples, questions, requests.

PLZ CONVERT TO T1 (JAIWALKKIN2.9)

Postby Bapeology » Mon Mar 01, 2021 3:38 am

Code: Select all
/jaiwalkkin 2/24/2021
//current gen curryslide, crab, explosive behind the back, momentum combo and upcourt combo script. also spinback with momentum spam center shooting done with x in this script(with adjustable dribbles and leds)
//heavily improved center shooting
//TURN ON LB/L1 SHOOTING AND USE THAT OFFLINE IN MYCOURT(TURNED ON BY TAPPING  l1/LB CENTER SHOOTING HOLD SHARE AND TAP DPAD DOWN
//YOU WILL BE GETTING VERY LATES AND MISSING IN MYCOURT AND OFFLINE
//PLAY PARK, REC, STAGE, PRO AM to shoot timed center shots
//USE MY JUMPSHOT FOR BEST RESULTS !!!!!
////jumper////////////////////////////////////////////////(use for most green and fades) 4/4 jumpers will work as well, some better than others
//base:dwade
//release 1; rudy gay
//release 2 dwane wade/ dwade
//blending 60/40
//speed: 4/4 ofc
//HOLD SQUARE OR X FOR XBOX TO SHOOT CENTERS ONLINE(like the excellent scripts)
//credit to dricon and legitcloudz and dirty does it for used inspiration and portions of scripts.
//the momentum spam is performed while holding the up dpad. Try and keep the ball in the left hand when starting it(dribbles need to be on)
////////////////////////////////////////////////////////////////////////////how to turn dribbles on and change them//////////////////////////////////////////
//HOLD SHARE AND TAP L1 to TURN DRIBBLES ON(playstation) HOLD VIEW AND TAP LB TO CYCLE(xbox) IT WILL VIBRATE
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//curryslide by tapping the left or right stick based on which hand the ball in in. Left hand = left stick and right hand = right stick
//USE ANY DRIBBLE MOVE BY TAPPING THE RIGHT STICK IF THE BALL IS IN THE RIGHT HAND. TAP THE LEFT IF THE BALL IS IN THE LEFT HAND
//
//hold r2 or rt while running and tap rb or r1 to quick stop
//TO TURN ON l1/LB CENTER SHOOTING HOLD SHARE AND TAP DPAD DOWN
//CENTER SHOOTING DONE BY HOLDING X FOR XBOX AND SQUARE FOR PLAYSTATION
//IF YOU CANT HIT X OR SQUARE IN THE MENUS WHILE USING THE SCRIPT HOLD R2 OR R1 or Rb or RT TO USE X/SQUARE LIKE NORMAL FOR PASSING AND ANYTHING
//FADING WILL AUTOMATICALLY BE DONE IF YOU ARE RUNNING! JUST HOLD SQUARE OR X FOR XBOX LOL
// HOW TO CHANGE THE DRIBBLE MOVES !!!!!!!!!!!!!!!!!!
// 1 = CURRYSLide
// 2 = CRAB
// 3 = EXPLOSIVE BEHIND THE BACK
// 4 = THE EARLIER COMBO I MADE
// 5 = NEW UPCOURT COMBO
// 6 = Spinback
//TO CYCLE/CHANGE DRIBBLE MOVES HOLD VIEW/OPTIONS AND TAP L1/LB. IT WILL VIBRATE
// hit me up on discord at jaiwalkkin#7360 if you want me to make any changes, and add new dribbles. love the support yall
// if you wanna donate, either donate to Dricon, or donate to this place where i learned all this. they have online classes are are the goats https://www.badgerbots.org/get-involved/donate/
// they are running outta money for their lease, and need cash asap. thx for love
//shout to imtoogood and pablorabi and ashton for helping test the script. il yall
int angle = 19;// if you have a low 3 ball, mess with this number, 18 works as well
 
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
int dribble = 0; // THIS IS THE NUMBER TO CHANGE, TO CHANGE THE DRIBBLE MOVES!!!! READ EARLIER INSTRUCTIONS ON WHAT NUMBER IS WHAT!!
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
int scriptSpeed = 5;//-9 makes the script run at 1 ms delay. If you are feeling delayed change the number lower. In my personal experience it worked really well at 10.
int blockButton;
int shooting = TRUE;
int csdOnline = 750; //centershot delay
int csdFADE = 950
// led idea inspiration for dribble moves from  Dirty does it//(Dirty splat scriptmaker)//
////////////////////////////////////////led definitions////////////////////////////////////////////////////////////////////////////
const uint8 FONT_ID[][] = {{7,10,18},{11,18,11},{16,26,7}};    
const string LHSLIDE = "CURRYSLIDE";
const string DRIBBLESOFF = "DRIBLEZOFF";
const string CRABBYRH = "CRAB";
const string EXPBTBRH = "EX BTB";
const string duffyRH = "MMCOMBO";
const string UPCOURTRH = "UPCOURT";
const string L_SPINBACK = "SPNBCK"
define SCREEN_BLACK     = 0;
define WHITE_COLOR     = 1;
define SMALL_FONT     = 0;
define MEDIUM_FONT     = 1;
define LARGE_FONT     = 2;
define FONT_WIDTH      = 0;
define FONT_HEIGHT     = 1;
define FONT_LENGTH     = 2;
define Off = 0;
int ZEN_X_OLED;
int TEXT_SIZE = 1;
int LBSHOT = 0;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//dirty gaming tips channel https://www.youtube.com/channel/UCyoRp1 ... RW6dQ03A//
main {
    vm_tctrl(scriptSpeed); //controlling the script speed
        if((get_val(XB1_LX))>50 && event_press(XB1_X)) //quick stop activators
        {
 
            combo_run(FADE);
 
        }
        if((get_val(XB1_LX))< -50 && event_press(XB1_X))
        {
            combo_run(FADE);
 
        }
 
        if((get_val(XB1_LX))<0 && get_val(XB1_RT) && event_press(XB1_RB)) //quick stop activators
        {
            blockButton = XB1_RB;
            combo_run(QuickStopLeftHand);
        }
        if((get_val(XB1_LX))>0 && get_val(XB1_RT) && event_press(XB1_RB))
        {
            blockButton = XB1_RB;
            combo_run(QuickStopRightHand);
        }
        if    ((get_val(XB1_VIEW)) && event_press(XB1_LB))
        {
            blockButton = XB1_VIEW;
            dribble++
            combo_run(RUMBLE);
 
        }
        if(dribble > 6)
        {
            dribble = 0;
        }
        if(get_val(XB1_VIEW)){
        if(event_press(XB1_DOWN))
        {
            blockButton = XB1_VIEW;
            blockButton = XB1_DOWN;
            combo_run(RUMBLE);
            LBSHOT++
            cls_oled(SCREEN_BLACK);
            printf(ZEN_X_OLED(sizeof(LBSHOT) - 1,TEXT_SIZE),ZEN_Y_OLED(TEXT_SIZE),TEXT_SIZE,WHITE_COLOR,LBSHOT[0]);
 
        }
        }
 
          if(get_val(XB1_RB) && event_press(XB1_X))
          {
              set_val(XB1_X, 100);
              combo_stop(STICKSHOT);
          }
 
    if(combo_running(UPCOURTRH))
    {
        set_val(XB1_LY, 100);
    }
 
    if((!get_val(XB1_RB)) && (event_press(XB1_X)))
    {
        blockButton = XB1_X;
        combo_run(STICKSHOT);
    }
    if((LBSHOT == 1))
    {
        if(get_val(XB1_LB))
        {
            combo_run(NMSTICKSHOT);
        }
    }
 
    if((LBSHOT > 1))
    {
        LBSHOT = 0;
    }
if((dribble > 0)){
if(get_val(XB1_UP))//Momentum Spam activator
 
 
    {
 
        combo_run(MMSPAM);
 
    }
    }
 
if(blockButton)
        {
            if(event_release(blockButton))
            {
                blockButton = 0;
            }
                else
                {
                    set_val(blockButton,0);
                }
        }
 
 
 
        ////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////Dribbles///////////////////////////////////////////////////////                                           
        ////////////////////////////////////////////////////////////////////////////////////////////////////
        if ((!dribble))
        {
            cls_oled(SCREEN_BLACK);
            printf(ZEN_X_OLED(sizeof(DRIBBLESOFF) - 1,TEXT_SIZE),ZEN_Y_OLED(TEXT_SIZE),TEXT_SIZE,WHITE_COLOR,DRIBBLESOFF[0]);
        }
        if((dribble  == 1))//curryslide
        {
            cls_oled(SCREEN_BLACK);
             printf(ZEN_X_OLED(sizeof(LHSLIDE) - 1,TEXT_SIZE),ZEN_Y_OLED(TEXT_SIZE),TEXT_SIZE,WHITE_COLOR,LHSLIDE[0]);
            if (event_press(XB1_LS))
            {
 
 
 
                combo_run(LHSLIDE);   
            }
 
 
        }
        if((dribble  == 1))//curryslide
        {
 
            if (event_press(XB1_RS))
            {
 
                combo_run(RHSLIDE);   
            }
 
        }   
 
        if((dribble  == 2))//Crab
        {
            cls_oled(SCREEN_BLACK);
             printf(ZEN_X_OLED(sizeof(CRABBYRH) - 1,TEXT_SIZE),ZEN_Y_OLED(TEXT_SIZE),TEXT_SIZE,WHITE_COLOR,CRABBYRH[0]);
            if (event_press(XB1_RS))
            {
                combo_run(CRABBYRH);   
            }
 
 
        }   
        if((dribble  == 2))//Crab
        {
            if (event_press(XB1_LS))
            {
                combo_run(CRABBYLH);   
            }
 
 
        }   
    if((dribble  == 3))//Explosive behind the back
        {
             cls_oled(SCREEN_BLACK);
             printf(ZEN_X_OLED(sizeof(EXPBTBRH) - 1,TEXT_SIZE),ZEN_Y_OLED(TEXT_SIZE),TEXT_SIZE,WHITE_COLOR,EXPBTBRH[0]);
            if (event_press(XB1_LS))
            {
                combo_run(EXPBTBLH);   
            }
 
 
        }   
    if((dribble  == 3))//Explosive behind the back
        {
            if (event_press(XB1_RS))
            {
                combo_run(EXPBTBRH);   
            }
 
 
        }   
 
    if((dribble  == 4))//Jaiwalkkin combo
        {
            cls_oled(SCREEN_BLACK);
             printf(ZEN_X_OLED(sizeof(duffyRH) - 1,TEXT_SIZE),ZEN_Y_OLED(TEXT_SIZE),TEXT_SIZE,WHITE_COLOR,duffyRH[0]);
            if (event_press(XB1_RS))
            {
                combo_run(duffyRH);   
            }
 
 
        }       
    if((dribble  == 4))//Jaiwalkkin combo
        {
            if (event_press(XB1_LS))
            {
                combo_run(duffyLH);   
            }
 
 
        }   
    if((dribble == 5))
    {
        cls_oled(SCREEN_BLACK);
        printf(ZEN_X_OLED(sizeof(UPCOURTRH) - 1,TEXT_SIZE),ZEN_Y_OLED(TEXT_SIZE),TEXT_SIZE,WHITE_COLOR,UPCOURTRH[0]);
        if(event_press(XB1_LS))
        {
            combo_run(UPCOURTLH);
        }
 
    }
    if((dribble == 5))
    {
        if(event_press(XB1_RS))
        {
            combo_run(UPCOURTRH);
        }
 
    }
    if((dribble == 6))
    {
        cls_oled(SCREEN_BLACK);
        printf(ZEN_X_OLED(sizeof(L_SPINBACK) - 1,TEXT_SIZE),ZEN_Y_OLED(TEXT_SIZE),TEXT_SIZE,WHITE_COLOR,L_SPINBACK[0]);
        if(event_press(XB1_LS))
        {
            combo_run(L_SPINBACK);
        }
 
    }
    if((dribble == 6))
    {
        if(event_press(XB1_RS))
        {
            combo_run(R_SPINBACK);
        }
 
    }
}
 
 
combo LHSLIDE//curryslide yessuh
{
set_val(PS4_RX, 100);
    set_val(PS4_RY, 50);
    wait(400);
}
 
combo NMSTICKSHOT
{
set_val(XB1_RY, 100);
    set_val(XB1_RX, angle);
 
}
 
 
combo RHSLIDE
{
 
    set_val(PS4_RX, -100);
    set_val(PS4_RY, 50);
    wait(400);
 
}
combo FADE
{
    set_val(XB1_RY, 100);
    set_val(XB1_RX, angle);
    wait(csdFADE);
    set_val(XB1_RY, 0);
    set_val(XB1_X, 0);
    set_val(XB1_LB, 0);
    wait(100);
 
}
combo STICKSHOT//stickshot(center)
{
    set_val(XB1_RY, 100);
    set_val(XB1_RX, angle);
    wait(csdOnline);
    set_val(XB1_X, 0);
    set_val(XB1_LB, 0);
    wait(100);
 
}
 
 
combo SBCO // speedbost crossover. use it to speedboost+looks comp(NOT ACTIAVED IN SCRIPT)
{
 
    set_val(XB1_RY, -100);
    wait(40);
    set_val(XB1_RY, 0);
    wait(40);
 
 
}
 
combo MMSPAM //momentum spam
{
wait(100);
call(MMLH);
wait(200);
wait(120);
call(MMRH);
wait(100);
 
 
}
 
combo MMRH
{
 
set_val(PS4_RX, -100);
    wait(40);
 
    set_val(PS4_LX, -75);
    set_val(PS4_LY, -75);
    wait(100);
 
 
 
}
combo MMLH
{
 
set_val(PS4_RX, 100);
    wait(40);
 
    set_val(PS4_LX, 75);
    set_val(PS4_LY, -75);
    wait(100);
 
 
 
}
 
 
 
combo wait_time
{
    wait(release);
    set_val(PS4_L2, 100);
    set_val(PS4_SQUARE, 0):
    wait(100);
    set_val(PS4_L2, 0);
    wait(200):
}
 
combo RUMBLE
{
    set_rumble(RUMBLE_A, 50);
    wait(200);
    set_rumble(RUMBLE_A, 0);
}
combo duffyRH
{
call(CRABBYRH);
wait(300);
set_val(PS4_RX, -100);
    wait(40);
 
    set_val(PS4_LX, -75);
    set_val(PS4_LY, -75);
 
wait(350);
call(MMLH);
wait(100);
set_val(PS4_RX, -100);
    set_val(PS4_RY, 50);
    wait(400);
 
 
 
 
 
}
 
combo duffyLH//nice lil momentum combo
{
call(CRABBYLH);
wait(300);
call(MMLH);
wait(300);
set_val(PS4_RX, -100);
    wait(40);
 
    set_val(PS4_LX, -75);
    set_val(PS4_LY, -75);
wait(150);
set_val(PS4_RX, 100);
    set_val(PS4_RY, 50);
    wait(400);
 
 
}
combo CRABBYLH//crab
{
 
 set_val(XB1_RX, 84);
 set_val(XB1_RY, -74);
 wait(300);
 
}
combo CRABBYRH
{
 
set_val(XB1_RX, -87);
set_val(XB1_RY, -64):
wait(300);
 
 
}
 
 
combo STEPPY
{
set_val(XB1_LT, 100);
wait(175);
set_val(XB1_LT, 0);
wait(10);
set_val(XB1_RY, 100);
wait(100);
set_val(XB1_RY, 0);
wait(100);
set_val(XB1_LT, 100);
wait(175);
set_val(XB1_LT, 0);
wait(20);
 
 
 
 
 
}
 
combo EXPBTBLH//values used from dricon 2.5
{
 
 set_val(PS4_RX, 75);
    set_val(PS4_RY, 75);
    wait(80);
   set_val(PS4_RX, 75);
    set_val(PS4_RY, 75);
    set_val(PS4_LX, 75);
    set_val(PS4_LY, -75);
    wait(100);
    set_val(PS4_LX, 75);
    set_val(PS4_LY, -70);
    wait(200);
}
 
 
combo EXPBTBRH
{
 
set_val(PS4_RX, -75);
    set_val(PS4_RY, 75);
    wait(80);
    set_val(PS4_LX, -75);
    set_val(PS4_LY, -75);
    wait(100);
    set_val(PS4_LX, -75);
    set_val(PS4_LY, -75);
    wait(200);
 
}
 
combo QuickStopLeftHand
{
    set_val(PS4_RX, 100);
    wait(100);
}
 
combo QuickStopRightHand
{
    set_val(PS4_RX, -100);
    wait(100);
}
 
combo UPCOURTRH
{
set_val(XB1_LY, -100);
wait(300);
set_val(XB1_LY, -100);
set_val(XB1_RY, -100);
wait(50);
set_val(XB1_LY, -100);
set_val(XB1_RY, 0);
wait(50);
set_val(XB1_LY, -100);
set_val(XB1_RX, 100);
wait(300);
set_val(XB1_LY, -100);
set_val(XB1_RX, 0);
wait(100);
call(RHSLIDE);
 
}
combo UPCOURTLH
{
set_val(XB1_LY, -100);
wait(300);
set_val(XB1_LY, -100);
set_val(XB1_RY, -100);
wait(50);
set_val(XB1_LY, -100);
set_val(XB1_RY, 0);
wait(50);
set_val(XB1_LY, -100);
set_val(XB1_RX, -100);
wait(300);
set_val(XB1_LY, -100);
set_val(XB1_RX, 0);
wait(100);
call(LHSLIDE);
 
 
}
combo L_SPINBACK
{
    set_val(XB1_RY, -100);
    wait(30);
    set_val(XB1_RX, -100);
    wait(30);    ////same
    set_val(XB1_RY, 100);
    wait(60);
    set_val(XB1_LY, 100);
 
    wait(800);
}
combo R_SPINBACK
{
    set_val(XB1_RY, -100);
    wait(30);
    set_val(XB1_RX, 100);
    wait(30);
    set_val(XB1_RY, 100);
    wait(60);
    set_val(XB1_LY, 100);
    wait(800);
}
combo WAIT
{
    wait(200);
 
}
//functions
function ZEN_X_OLED(F_chars,ZEN_FONT_SIZE) {
    ZEN_X_OLED = F_chars * FONT_ID[ZEN_FONT_SIZE][FONT_WIDTH];
    ZEN_X_OLED = (OLED_WIDTH / 2) - (ZEN_X_OLED / 2);
    return ZEN_X_OLED;
}
function ZEN_Y_OLED(ZEN_FONT_SIZE) {
    return (OLED_HEIGHT / 2) - (FONT_ID[ZEN_FONT_SIZE][FONT_HEIGHT] / 2);
}
 
    data                       
(0,0,0,0,// Off        
1,0,0,0, // Dim Blue      
0,1,0,0, // Dim Red          
0,0,1,0, // Dim Green   
0,0,0,1, // Dim Pink   
1,0,1,0, // Dim SkyBlue   
0,1,1,0, // Dim Yellow   
1,1,1,0, // Dim White   
2,0,0,0, // Blue       
0,2,0,0, // Red           
0,0,2,0, // Green       
0,0,0,2, // Pink       
2,0,2,0, // SkyBlue       
0,2,2,0, // Yellow       
2,2,2,0, // White       
3,0,0,0, // Bright Blue   
0,3,0,0, // Bright Red   
0,0,3,0, // Bright Green
0,0,0,3, // Bright Pink   
3,0,3,0, // Bright SkyBlue
0,3,3,0, // Bright Yellow
3,3,3,0  // Bright white
);       
 
function set_ds4_led(colour) {
    set_led(LED_1, duint8(colour * 4));
    set_led(LED_2, duint8((colour * 4) + 1));
    set_led(LED_3, duint8((colour * 4) + 2));
    set_led(LED_4, duint8((colour * 4) + 3));
}
User avatar
Bapeology
Private
Private
 
Posts: 1
Joined: Mon Oct 05, 2020 3:59 pm

Re: PLZ CONVERT TO T1 (JAIWALKKIN2.9)

Postby Mad » Mon Mar 01, 2021 7:16 am

Hi,

This script is to large to convert, also missing stuff like "release" variable.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 60 guests