Can you convert this to T1
2 posts
• Page 1 of 1
Can you convert this to T1
- Code: Select all
//███████████████████████████████████████████
/*██*/ int Center_onoff = TRUE; ///////// CHANGE TRUE IF CENTER SHOOTING ON OR FALSE FOR OFF
/*██*/ int AdvDef_onoff = FALSE; ///////// CHANGE TRUE IF CENTER SHOOTING ON OR FALSE FOR OFF
/*██*/ int Dribbles_onoff = TRUE; ///////// CHANGE TRUE IF CENTER SHOOTING ON OR FALSE FOR OFF
/*██*/
/*██*/
/*██*/ int Career_onoff = FALSE; ///////// CHANGE TRUE IF YOU WANT CAREER FALSE FOR ONLINE
/*██*/
/*██*/
/*██*/
//███████████████████████████████████████████
//███████████████████████████████████████████████████████████████████████████████████████████████████████████
/*██*/ int Recording; /*██*/ int Color_Identification; /*██*/ /*██*/
/*██*/ int StandingStill; /*██*/ int Script_onoff = TRUE;
/*██*/ int RecordedTime; /*██*/ int DribbleSet_onoff = 1;
/*██*/ int catch_and_shoot; /*██*/ int RX_Shot; /*██*/ /*██*/
/*██*/ int CanUse; /*██*/ int Shooting; /*██*/ /*██*/
/*██*/ int Edit_On; /*██*/ /*██*/ /*██*/
/*██*/ int BlockOutput; /*██*/ /*██*/ /*██*/
/*██/ int Fade; /*██*/ /*██*/ /*██*/
/*██/ int Screen_Saver; /*██*/ /*██*/ /*██*/
/*██/ int Refresh_Display; /*██*/ /*██*/ /*██*/
/*██/ int count_black; /*██*/ /*██*/ /*██*/
/*██/ int Fast_Blink_Led = 3; /*██*/ /*██*/ /*██*/
//███████████████████████████████████████████████████████████████████████████████████████████████████████████
int RX_Start = -26208;
int RX_End = 6039;
int stepWait = 330;
/*██*/ define R1 = PS4_R1; define TOUCH = PS4_TOUCH; define CIRCLE = PS4_CIRCLE; define UP = PS4_UP; /*██*/
/*██*/ define CROSS = PS4_CROSS; define DOWN = PS4_DOWN; define L1 = PS4_L1; /*██*/
/*██*/ define L2 = PS4_L2; define L3 = PS4_L3; define LEFT = PS4_LEFT; /*██*/
/*██*/ define LX = PS4_LX; define LY = PS4_LY; define OPTIONS = PS4_OPTIONS; /*██*/
/*██*/ define PS = PS4_PS; define R2 = PS4_R2; define R3 = PS4_R3; /*██*/
/*██*/ define RIGHT = PS4_RIGHT; define RX = PS4_RX; define RY = PS4_RY; /*██*/
/*██*/ define SHARE = PS4_SHARE; define SQUARE = PS4_SQUARE; define TRIANGLE = PS4_TRIANGLE; /*██*/
//██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
/*██*/ define Off = 0; /*██/ define BLACK_COLOR = 0; /*██*/ define HoldTime = 100; /*██*/
/*██*/ define Blue = 8; /*██/ define WHITE_COLOR = 1; /*██*/ define TimeLimit = 300; /*██*/
/*██*/ define Red = 9; /*██/ define SMALL_FONT = 0; /*██*/ define MAX_RANGE = 330; /*██*/
/*██*/ define Green = 10; /*██/ define MEDIUM_FONT = 1; /*██/ define MAX_MODS_COUNT = 3; /*██*/
/*██*/ define Pink = 11; /*██/ define LARGE_FONT = 2; /*██*/ /*██*/
/*██*/ define SkyBlue = 12; /*██/ define FONT_WIDTH = 0; /*██*/ /*██*/
/*██*/ define Yellow = 13; /*██/ define FONT_HEIGHT = 1; /*██*/ /*██*/
/*██*/ define White = 14; /*██/ define FONT_LENGTH = 2; /*██*/ /*██*/
init
{
catch_and_shoot = get_pvar(SPVAR_1, 0,4000,0);
StandingStill = get_pvar(SPVAR_2, 0,4000,0);
RecordedTime = get_pvar(SPVAR_4, 0,4000,0);
}
main
{
set_val(TRACE_1,catch_and_shoot/1);//--
set_val(TRACE_2,StandingStill/1);//--Tracks StandingStill
set_val(TRACE_4,RecordedTime/1);//--
set_val(TRACE_5,DribbleSet_onoff);//--
if(StandingStill > HoldTime && Script_onoff == TRUE) //--Standing Jumpshot is greater than holdtime
{
if(get_val(PS4_SQUARE) && get_ptime(PS4_SQUARE) >= StandingStill)
{
set_val(PS4_SQUARE,0);
}
}
if((get_val(PS4_SQUARE)) && get_ptime(PS4_SQUARE) > HoldTime)Recording = TRUE; //--Record Time Holding Square
if(Recording)
{
if(event_release(PS4_SQUARE))
{
Recording = FALSE;
RecordedTime=get_ptime(20);
}
}
//Excellent Shot Career (Offline) Mode
if((get_val(PS4_OPTIONS)) && Script_onoff == TRUE)
{
BlockOutput = PS4_DOWN;
if(event_press(PS4_DOWN) && Career_onoff == TRUE)
{
Career_onoff = FALSE;
set_ds4_led(Green);
StandingStill = StandingStill + 153;
catch_and_shoot = catch_and_shoot + 153;
}
BlockOutput = PS4_UP;
if(event_press(PS4_UP) && Career_onoff == FALSE)
{
Career_onoff = TRUE;
set_ds4_led(White);
StandingStill = StandingStill - 153;
catch_and_shoot = catch_and_shoot - 153;
}
}
if(get_val(PS4_R1))
{
BlockOutput = RIGHT;
if(event_press(RIGHT))
{
DribbleSet_onoff++;
if (DribbleSet_onoff >6)
DribbleSet_onoff = 1;
}BlockOutput = LEFT;
if(event_press(LEFT))
{
DribbleSet_onoff--;
if (DribbleSet_onoff <1)
DribbleSet_onoff = 6;
}
}
if(get_val(PS4_R2) && get_val(PS4_R2) && event_press(TRIANGLE))//--Save Recorded Timing
{
AdvDef_onoff = !AdvDef_onoff;
combo_run(RUMBLE);
}
if(get_val(PS4_R2) && Script_onoff == TRUE)//--Catch & Shoot Jumpshot Combo
{BlockOutput = PS4_SQUARE;
if(event_press(PS4_SQUARE))
{
combo_run(RELEASE_SQ);
}
}
if(get_val(PS4_SHARE) && Script_onoff == TRUE)//--Save Recorded Timing
{
if(event_press(PS4_SQUARE) && Script_onoff == TRUE)
{
StandingStill = RecordedTime;
catch_and_shoot = StandingStill - 115;
combo_run(Save_Timing);
combo_run(RUMBLE);
}
if(event_press(PS4_SQUARE))
{
if(StandingStill > HoldTime) CanUse=TRUE;
}
if(event_press(PS4_OPTIONS) && Script_onoff == TRUE)//--Reset Recording
{
StandingStill = 0;
catch_and_shoot = 0;
combo_run(RUMBLE);
}
set_val(PS4_SHARE,0);
set_val(PS4_OPTIONS,0);
set_val(PS4_SQUARE,0);
}
if(get_val(PS4_R2) && get_val(PS4_L2) && Script_onoff == TRUE)//--Recorded Shot Modifier
{
if(event_press(PS4_LEFT))
{
StandingStill = StandingStill - 1;
catch_and_shoot = catch_and_shoot - 1;
Edit_On = TRUE;
combo_run(RUMBLE);
}
if(event_press(PS4_RIGHT))
{
StandingStill = StandingStill + 1;
catch_and_shoot = catch_and_shoot + 1;
Edit_On = TRUE;
combo_run(RUMBLE);
}
if(event_press(PS4_UP))
{
StandingStill = StandingStill + 15;
catch_and_shoot = catch_and_shoot + 15;
Edit_On = TRUE;
combo_run(RUMBLE);
}
if(event_press(PS4_DOWN))
{
StandingStill = StandingStill - 15;
catch_and_shoot = catch_and_shoot - 15;
Edit_On = TRUE;
combo_run(RUMBLE);
}
set_val(PS4_UP,0);
set_val(PS4_DOWN,0);
set_val(PS4_LEFT,0);
set_val(PS4_RIGHT,0);
}
else if(Edit_On)
{
combo_run(Save_Timing);
}
if( Center_onoff == TRUE)
{BlockOutput = PS4_L1;
if(event_press(PS4_L1))
{
RX_Shot = RX_Start;
Shooting = TRUE;
}
if(Shooting)
{
combo_run(Perfect_Aim);
combo_run(Aim_Adjust);
}
}
if(BlockOutput) //--block output
{
if(event_release(BlockOutput))
{
BlockOutput = 0;
}
else
{
set_val(BlockOutput,0);
}
}
if(Dribbles_onoff == TRUE && DribbleSet_onoff == 1)
{ set_ds4_led(Red);
if((get_val(PS4_LX))<0 && event_press(PS4_L3))
combo_run(QuickStopLeftHand);
if((get_val(PS4_LX))>0 && event_press(PS4_L3))
combo_run(QuickStopRightHand);
if (get_val(R3))
combo_run(R_MOMENTUM_BTB);
}
if(Dribbles_onoff == TRUE && DribbleSet_onoff == 2)
{set_ds4_led(White);
if (event_press(L3))
combo_run(L_MOMENTUM_CURRYSLIDE);
if (event_press(R3))
combo_run(R_MOMENTUM_CURRYSLIDE);
}
if(Dribbles_onoff == TRUE && DribbleSet_onoff == 3)
{set_ds4_led(Blue);
if (event_press(L3))
combo_run(L_CURRY_SLIDE);
if (event_press(R3))
combo_run(R_CURRY_SLIDE);
}
if(Dribbles_onoff == TRUE && DribbleSet_onoff == 4)
{set_ds4_led(Pink);
if (event_press(L3))
combo_run(L_HANDED_EXPLOSIVE_BTB);
if (event_press(R3))
combo_run(R_HANDED_EXPLOSIVE_BTB);
}
if(Dribbles_onoff == TRUE && DribbleSet_onoff == 5)
{set_ds4_led(SkyBlue);
if (event_press(L3))
combo_run(L_SPINBACK);
if (event_press(R3))
combo_run(R_SPINBACK);
}
if(Dribbles_onoff == TRUE && DribbleSet_onoff == 6)
{set_ds4_led(Yellow);
if (event_press(L3))
combo_run(L_HANDED_HALF_SPIN);
if (event_press(R3))
combo_run(R_HANDED_HALF_SPIN);
}
if(AdvDef_onoff == TRUE)
{
if(get_val(L2))
{
stepWait = MAX_RANGE - (FindMax(abs(get_val(LX)),abs(get_val(LY))) * 3);
combo_run(ALTERNATE_STEP);
}
}
}
combo Aim_Adjust
{
wait(10);
if(RX_Shot < 6040)
{
RX_Shot = RX_Shot + 1308;
if(RX_Shot > RX_End)
{
RX_Shot = RX_End;
}
}
}
combo Perfect_Aim
{
set_val(PS4_RY,100)
set_val(POLAR_RX,RX_Shot)
wait(1700);
Shooting = FALSE;
}
combo RELEASE_SQ
{
set_val(PS4_SQUARE,100);
wait(catch_and_shoot);
set_val(PS4_SQUARE,0);
wait(1000);
}
combo RUMBLE
{
if(Script_onoff == TRUE)
set_rumble(RUMBLE_A, 100);
set_rumble(RUMBLE_B, 100);
wait(100);
set_rumble(RUMBLE_A, 0);
set_rumble(RUMBLE_B, 0);
}
combo Save_Timing
{
if(StandingStill > HoldTime)
set_pvar(SPVAR_1, catch_and_shoot);
set_pvar(SPVAR_2, StandingStill);
set_pvar(SPVAR_4, RecordedTime);
Edit_On = FALSE;
}
combo L_HANDED_HALF_SPIN
{
set_val(RX, -100);
wait(10);
set_val(RX, -100);
set_val(RY, -30);
wait(10);
set_val(RX, -20);
set_val(RY, -100);
wait(10);
set_val(RY, -100);
wait(10);
}
combo R_HANDED_HALF_SPIN
{
set_val(RX, 100);
wait(10);
set_val(RX, 100);
set_val(RY, -30);
wait(10);
set_val(RX, 20);
set_val(RY, -100);
wait(10);
set_val(RY, -100);
wait(10);
}
combo L_SPINBACK
{
set_val(RY, -100); // 12 'o Clock
set_val(LY, 100);
wait(30); ////testing 30 from 60
set_val(LY, 100);
set_val(RX, -100); // 9 'o Clock
wait(30); ////same
set_val(LY, 100);
set_val(RY, 100);// 6 'o Clock
wait(30);//////60 from 120
set_val(LY, 100);
wait(800);
}
combo R_SPINBACK
{
set_val(RY, -100); // 12 'o Clock
set_val(LY, 100);
wait(30);
set_val(LY, 100);
set_val(RX, 100); // 3 'o Clock
wait(30);
set_val(LY, 100);
set_val(RY, 100);// 6 'o Clock
wait(30);
set_val(LY, 100);
wait(800);
}
combo QuickStopLeftHand
{
set_val(PS4_RX, 100);
wait(100);
}
combo QuickStopRightHand
{
set_val(PS4_RX, -100);
wait(100);
}
combo R_MOMENTUM_BTB
{
set_val(XB1_RY, -100);
wait(10);
set_val(XB1_RY, 0);
wait(10);
}
combo L_MOMENTUM_CURRYSLIDE
{
set_val(RX, 100);
wait(30);
set_val(LX, 75);
set_val(LY, -75);
wait(150);
set_val(RX, -100);
set_val(RY, 75);
wait(200);
}
combo R_MOMENTUM_CURRYSLIDE
{
set_val(RX, -100);
wait(30);
set_val(LX, -75);
set_val(LY, -75);
wait(150);
set_val(RX, 100);
set_val(RY, 75);
wait(200);
}
combo L_CURRY_SLIDE
{
set_val(RX, 100);
set_val(RY, 75);
wait(200);
}
combo R_CURRY_SLIDE
{
set_val(RX, -100);
set_val(RY, 75);
wait(200);
}
combo L_HANDED_EXPLOSIVE_BTB
{
set_val(RX, 75);
set_val(RY, 75);
wait(150);
set_val(RX, 75);
set_val(RY, 75);
set_val(LX, 75);
set_val(LY, -75);
wait(200);
set_val(LX, 75);
set_val(LY, -70);
wait(200);
}
combo R_HANDED_EXPLOSIVE_BTB
{
set_val(RX, -75);
set_val(RY, 75);
wait(150);
set_val(LX, -75);
set_val(LY, -75);
wait(200);
set_val(LX, -75);
set_val(LY, -75);
wait(200);
}
combo ALTERNATE_STEP
{
set_val(R2,0);
set_val(L2,100);
wait(100);
set_val(R2,100);
set_val(L2,0);
wait(stepWait);
}
//██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
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));
}
function FindMax(a,b) {
if(a > b){
return a;
}
return b;
}
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
);
-
nba223 - Private
- Posts: 1
- Joined: Thu Mar 25, 2021 6:00 pm
Re: Can you convert this to T1
Hi,
This script is missing the inbuilt functions (POLAR_*) so it cannot be converted.
This script is missing the inbuilt functions (POLAR_*) so it cannot be converted.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
- Mad
- Major General
- Posts: 4533
- Joined: Wed May 22, 2019 5:39 am
2 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 89 guests