FIFA 16 ALL Skills - Can someone help me update this script?

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

FIFA 16 ALL Skills - Can someone help me update this script?

Postby riribibi » Mon Dec 07, 2015 5:39 pm

This brilliant script was from Fifa 14. I was wondering if someone could help me update it by adding the following two skills:

Spin Move (Left & Right) - Performed by flicking the RS diagonal back x 2 (ie: either 730 or 430 oclock; Left & right respectively)

Heel Flick Turn - Performed by holding rb and then flicking the RS Up then Down

(both moves, as all fifa moves are direction you are currently facing relative)

Thank you so much in advance, I appreciate it!


Code: Select all
// GPC Online Library
// turn_and_spin__feint_lampr__step_over__rainbow__ronaldo_chop__fake_shoot__rabona_fake.gpc

 
// GPC Online Library
// turn_and_spin__feint_lampr__step_over__rainbow__ronaldo_chop__fake_shoot__rabona_fake.gpc

/*
******************************************************************************************
                                                                                 
 #######  ######   #######    ##                 ##       ##   
 ##         ##     ##         ##                ###      ###   
 ##         ##     ##        ####                ##     ####   
 #####      ##     #####     ## #                ##    ## ##   
 ##         ##     ##       ######               ##    ###### 
 ##         ##     ##       ##   #               ##       ##   
 ##       ######   ##      ###   ##              ##      #### 

******************************************************************************************

#######  ##  ##     ####     ##     ##       ######   ######   ##   ##  ###### 
 ##       ##  ##    ##  ##    ##     ##         ##     ##   ##  ##   ##  ##   ##
 ##        ####    ##        ####    ##         ##     ##   ##  ##   ##  ##   ##
 #####      ##     ##        ## #    ##         ##     ######   ##   ##  ###### 
 ##        ####    ##       ######   ##         ##     ##   ##  ##   ##  ## ##   
 ##       ##  ##    ##  ##  ##   #   ##         ##     ##   ##  ##   ##  ##  ## 
 #######  ##  ##     ####  ###   ##  ######   ######   ######    #####   ##   ##

******************************************************************************************
// TURN AND SPIN / FEINT L&R / STEP OVER / RAINBOW / RONALDO CHOP / FAKE SHOOT / RABONA FAKE
///////////////////////////////////////////////////////////////|
// System: XB1, XB 360, PS3, PS4 (with TITAN ONE)//////////////|
// Controller: XB1, XB 360, PS3, PS4 //////////////////////////|
// Game : FIFA 14 /////////////////////////////////////////////|
/* *
* GPC SCRIPT
*  v. 1.40  ahtor:EXCALIBUR
*
*
*  How to activate :
*  for * TurnANDspin-FEINT-STEP OVER* use :
*  ==> Double click LB (LEFT bumper-6)   to activate to the 'LEFT'
*  ==> Double click RB (RIGHT bumper -3) to activate to the 'RIGHT'
*
*  for RONALDO CHOP / FAKE SHOOT /RABONA FAKE
*  ==> Double click RB (RIGHT bumper -3)
*  RONALDO CHOP -> Double click RB and then move left stick to the Left or to the Right.
*
*  RABONA FAKE -> Double click RB and then move left stick downwards.
*
*  FALSE SHOOT -> Double click RB
*
*  for * Rainbow * ==> Press RIGHT STICK-(5) for more than 100 millisecons.
*
* FAKE_SHOT ON / OFF use RT (RIGHT TRIGGER) + D-pad UP [ switch ON / OFF ] FAKE_SHOT
*  if FAKE_SHOT=TRUE then TURN & SPIN falow by RONALDO CHOP or SCOOP TURN
* HOW TO CHANGE SKILLS:
* hold LEFT TRIGGER (7) and press D-pad UP    - TURN and SPIN with ON/ OFF combination of FAKE SHOT
* hold LEFT TRIGGER (7) and press D-pad RIGHT - FEINT L&R
* hold LEFT TRIGGER (7) and press D-pad DOWN  - STEP OVER L&R with repeate
* hold LEFT TRIGGER (7) and press D-pad LEFT  - RONALDO Chop
* *********************************************************** */

//// define ///////////////////////////////////////////////////|

define RIGHT_BUTTON=3;
define LEFT_BUTTON =6;
define Menu_BUTTON =1;
define HoldBttn=2;
define Dpad_UP=13;
define Dpad_RIGHT=16;
define Dpad_DOWN=14;
define Dpad_LEFT=15;
define RS_X= 9;
define RS_Y=10;
define LS_X=11;
define LS_Y=12;
define L_Triger=7;
define R_Triger=4;
define L_Stick=8;
define R_Stick=5;
define DOnotUSE=1;
define BTN_A=19;
define BTN_X=20;
define BTN_B=18;
define BTN_Y=17;
data(DOnotUSE,0,-100,100,-100,100,0,100,100,0,100,-100,100,-100,0,-100,-100,0,-100,100,-100,100,0,100,100,0,100,-100,100,-100,0,-100,-100);

// 

int DelayNormal=80;
int DelayRnbwHOLD=160;
int Vreme=30;
int LX, LY, ZX=0, ZY=0;                    // Direction of Left Stick
int RightON =FALSE, CHReg=FALSE;
int indx_CW, indx_CCW;
int timelimit=300; //Double Click time - increase if is to fast
int time_to_DblClick_R=0;
int time_to_DblClick_L=0;
int Ind=0;// Ind we use with dbyte(Ind+ ..);
int Skill=1;
int Zone;// Zone=1 ( this is UP ) ; Zone=3 ( this is RIGHT ) and so on;
int DirLS=0;
int FAKE_SHOT=FALSE;
int Repeate_ON=FALSE;
main {

     LX = get_val(LS_X);

     LY = get_val(LS_Y);


// Repeate ON / OFF
   if(get_val(R_Triger)>70 || get_val(BTN_A)||get_val(BTN_X)||get_val(BTN_B)|| get_val(BTN_Y))Repeate_ON=FALSE;

// FAKE_SHOT ON / OFF  if FAKE_SHOT=TRUE then TURN & SPIN falow by RONALDO CHOP or SCOOP TURN
   if(get_val(R_Triger) && event_press(Dpad_UP))FAKE_SHOT=!FAKE_SHOT;

// Check if RS is pressed -> run Rainbow Skill

   if(get_val( R_Stick) && get_ptime(R_Stick)>100)combo_run(Rainbow );

// Change Other Skills FEINT / Turn & Spin / STEP OVER / Ronaldo Chop
   if(get_val( L_Triger) && event_press(Dpad_UP)) {Skill=1;}  // Turn & Spin
   if(get_val( L_Triger) && event_press(Dpad_RIGHT)) Skill=2; // STEP OVER
   if(get_val( L_Triger) && event_press(Dpad_DOWN)) {Skill=3;}// FEINT
   if(get_val( L_Triger) && event_press(Dpad_LEFT)) Skill=4// Ronaldo Chop / RABONA FAKE / FAKE SHOOT

//   time to R buton Double click
    if (time_to_DblClick_R>0) time_to_DblClick_R=time_to_DblClick_R - get_rtime();
//   time to L buton Double click
    if (time_to_DblClick_L>0) time_to_DblClick_L=time_to_DblClick_L - get_rtime();
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    if (event_press(RIGHT_BUTTON) && time_to_DblClick_R<=0 ) {time_to_DblClick_R =timelimit;}
    else if (event_press(RIGHT_BUTTON)&& time_to_DblClick_R>0){RightON= TRUE;combo_run(Check);}

// Left button
    if (event_press(LEFT_BUTTON) && time_to_DblClick_L<=0) {time_to_DblClick_L=timelimit;}
    else if (event_press(LEFT_BUTTON)&& time_to_DblClick_L>0 ){RightON= FALSE;combo_run(Check);} 

}// end of mine

//****************************** COMBOS ***********************************

combo Check {
  Repeate_ON=TRUE;
  if (!combo_running(FoundDirection) && !combo_running(FEINT_LEFT)&& !combo_running(FEINT_RIGHT))combo_run(FoundDirection);
}

// find direction of the Player ( for Rulette - 8 direction) for Turn & Spin (Up_Right), (Up_Left),(Left_Down),(Right_Down)
combo FoundDirection {
    if ((LX>-40 && LX<41)&& LY>=-100)               Zone=1; // LS ->1
    if ((LX>40 && LX<=100)&&(LY<-40 && LY>=-100))   Zone=2; // LS==>2
    if (LX==100 &&(LY>=-40 && LY<=40))              Zone=3; // LS==>3
    if ((LX<=100 && LX>40)&&(LY<=100 && LY>40))     Zone=4; // LS==>4
    if ((LX<=40 && LX>=-40)&&LY==100 )              Zone=5; // LS==>5
    if ((LX>=-100 && LX<-40)&&(LY<=100 && LY>=40))  Zone=6; // LS==>6
    if (LX==-100 &&(LY<40 && LY>=-40))              Zone=7; // LS==>7
    if ((LX>=-100 && LX<-40)&&(LY>=-100 && LY<=-40))Zone=8; // LS==>8
       
    DirLS=Zone;

   
      if (LY==-100 && LX>0) {ZX=inv(LY); ZY=100-LX; if (!RightON) {ZX=LY; ZY=-100+(abs(LX));} }  // Up and Right
    if (LY==-100 && LX==0) {ZX=inv(LY); ZY= 0; if (!RightON) {ZX=-100; ZY=0;}}            //only  UP
    if (LX==100 && LY<0) {ZX=100+LY; ZY=LX; if (!RightON) {ZX=-100+abs(LY); ZY=inv(LX) ;} } // Right and Up
    if ((LX>0 && LX<100)&&(LY<0 && LY>-100)) {ZX=inv(LY); ZY=LX ; if (!RightON){ZX=LY; ZY=inv(LX);} } // Midle Up_Right
    if (LY==0 && LX==100) {ZX=0; ZY=LX; if (!RightON){ZX=0; ZY=inv(LX);} }           // only Right
    if (LY==-100 && LX<0) {ZX= inv(LY); ZY= LX; if (!RightON){ZX=LY; ZY=-100+abs(LX);}} // Up and little Left
    if (LX==-100 && LY==0) {ZX= 0; ZY= -100;if (!RightON){ZX=0; ZY=100;} } // only Left
    if (LX==-100 && LY<0) {ZX= inv(LY); ZY= LX; if (!RightON){ZX=-100+abs(LY); ZY=100;}} //  Left and little UP
    if ((LX<0 && LX>-100) && (LY<0 && LY>-100)) {ZX=inv(LY); ZY= LX;if (!RightON){ZX=LY; ZY=inv(LX);} }
     if ((LX<0 && LY>50)&& LY<=100) {ZX= inv(LY); ZY= LX;if (!RightON){ZX=0; ZY=100;} }    // Left_Down
    if (LX==0 && LY==100) {ZX=-100; ZY=0;if (!RightON){ZX=LY; ZY=inv(LX);}}  // only Down
     if (LX>0&& LY>50) {ZX=inv(LY); ZY=LX;if (!RightON){ZX=LY; ZY=inv(LX);}} // Right_Down

    if(Skill==1 && Zone>0)combo_run(Scill_Move_1 );        // Turn & Spin
    if(Skill==3 && Zone>0)combo_run(STEPOVER_DIRECTION );  // STEP OVER
    if(Skill==2 && Zone>0)combo_run(FEINT_SKILL);          // FEINT
    if(Skill==4 )combo_run(RONALDO_CHOP);                  // FAKE SHOT / RONALDO CHOP
}

// if RightON=TRUE  CCW circle   |  RightON=FALSE  CW circle

combo FEINT_SKILL {
 
  if (Zone>0 && RightON) combo_run(FEINT_RIGHT );
  if (Zone>0 && !RightON) combo_run(FEINT_LEFT);
}
combo STEPOVER_DIRECTION {
  if (Zone>0 && RightON) combo_run(STEPOVER_CCW );
  if (Zone>0 && !RightON) combo_run(STEPOVER_CW);
}
combo STEPOVER_CCW {
Ind=(Zone+8)*2;
set_val(RS_Y,dbyte(Ind-0));
set_val(RS_X,dbyte(Ind-1)); //
wait(30);
set_val(RS_Y,dbyte(Ind-2));
set_val(RS_X,dbyte(Ind-3)); //
wait(30);
set_val(RS_Y,dbyte(Ind-4));
set_val(RS_X,dbyte(Ind-5)); //
if (Repeate_ON)combo_run( STEPOVER_CW);
}

combo STEPOVER_CW {
Ind=(Zone*2)-1;
set_val(RS_X,dbyte(Ind+0));
set_val(RS_Y,dbyte(Ind+1)); //
wait(30);
set_val(RS_X,dbyte(Ind+2));
set_val(RS_Y,dbyte(Ind+3)); //
wait(30);
set_val(RS_X,dbyte(Ind+4));
set_val(RS_Y,dbyte(Ind+5)); //
if(Repeate_ON)combo_run( STEPOVER_CCW);
}


// FEINT LEFT  (CW movement)
combo FEINT_LEFT {
Ind=((Zone+2)*2)-1; //Zone= 1
set_val(9,dbyte(Ind+0)); //
set_val(10,dbyte(Ind+1)); //RIGHT
wait(40); //
set_val(9,dbyte(Ind+2)); //
set_val(10,dbyte(Ind+3)); //Down-Right
wait(40); //
set_val(9,dbyte(Ind+4)); //
set_val(10,dbyte(Ind+5)); //DOWN
wait(40); //
set_val(9,dbyte(Ind+6)); //
set_val(10,dbyte(Ind+7)); //Down-Left
wait(40); //
set_val(9,dbyte(Ind+8)); //
set_val(10,dbyte(Ind+9)); //LEFT
wait(40); //
}


// FEINT RIGHT  (CCW movement)
combo FEINT_RIGHT {
Ind=(Zone+6)*2; //Zone= 1
set_val(10,dbyte(Ind-0)); //
set_val(9,dbyte(Ind-1)); //LEFT
wait(40); //
set_val(10,dbyte(Ind-2)); //
set_val(9,dbyte(Ind-3)); //Down-Left
wait(40); //
set_val(10,dbyte(Ind-4)); //
set_val(9,dbyte(Ind-5)); //DOWN
wait(40); //
set_val(10,dbyte(Ind-6)); //
set_val(9,dbyte(Ind-7)); //Down-Right
wait(40); //
set_val(10,dbyte(Ind-8)); //
set_val(9,dbyte(Ind-9)); //RIGHT
wait(40); //
}

///////////////////////////////////////////////////////////////////
/// Turn & Spin OR Elastico  //////////////////////////////////////
//if OnOff=FALSE => Turn and Spin / if OnOff=TRUE => Elastico Chop
combo Scill_Move_1 {
   
    set_val(RS_X, LX);
    set_val(RS_Y, LY);     // RS go forvard

    wait(40);
    set_val(RS_X, 0);
    set_val(RS_Y, 0);
    wait(40);
    set_val(RS_X, ZX);      // RS go in 90 degree (left or Right)
    set_val(RS_Y, ZY);
    wait(40);
if (FAKE_SHOT)combo_run(RONALDO_CHOP);
}

// Rainbow Skill
combo Rainbow {

    set_val(RS_X, inv(LX));set_val(RS_Y, inv(LY));// Rainbow  -back-
    wait(DelayNormal);
    set_val(RS_X, 0);      // RS rest
    set_val(RS_Y, 0);
    wait(DelayNormal);
    set_val(RS_X, LX); set_val(RS_Y, LY);// Rainbow -Forvard
    wait(DelayRnbwHOLD);      // Hold forvard
    set_val(RS_X, 0);       // RS rest
    set_val(RS_Y, 0);
    wait(DelayNormal);
    set_val(RS_X, LX);      // RS go forvard
    set_val(RS_Y, LY);
    wait(DelayNormal);
    set_val(RS_X, 0);       // RS rest
    set_val(RS_Y, 0);
}

combo RONALDO_CHOP {
// hold LEFT TRIGGER  ==> BTN_X + BTN_A
    set_val(L_Triger,100);
    set_val(BTN_X,100); //
    wait(40); //
    set_val(L_Triger,100);
    set_val(BTN_X,100); //
    set_val(BTN_A,100); //
    wait(100); //
    set_val(L_Triger,100);
    wait(200);
}
User avatar
riribibi
Command Sergeant Major
Command Sergeant Major
 
Posts: 134
Joined: Fri Oct 31, 2014 12:33 pm

Re: FIFA 16 ALL Skills - Can someone help me update this scr

Postby J2Kbr » Mon Dec 07, 2015 5:48 pm

Hi, to help us (as I don't have the game to test) could you be able to perform the skills using the Combo Magick plugin. This plugin to coverts your inputs to a combo code. thanks.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: FIFA 16 ALL Skills - Can someone help me update this scr

Postby riribibi » Thu Dec 10, 2015 3:36 pm

this is spin to the left (the right would just be the opposite)

Code: Select all
combo magick {
    set_val(XB1_RY, 33);
    set_val(XB1_LY, -100);
    wait(10);
    set_val(XB1_RX, -30);
    set_val(XB1_RY, 63);
    set_val(XB1_LY, -100);
    wait(10);
    set_val(XB1_RX, -63);
    set_val(XB1_RY, 88);
    set_val(XB1_LY, -100);
    wait(90);
    set_val(XB1_RX, 0);
    set_val(XB1_RY, 0);
    set_val(XB1_LY, -100);
    wait(60);
    set_val(XB1_RX, -40);
    set_val(XB1_LY, -100);
    wait(10);
    set_val(XB1_RX, -63);
    set_val(XB1_RY, 52);
    set_val(XB1_LY, -100);
    wait(10);
    set_val(XB1_RX, -67);
    set_val(XB1_RY, 73);
    set_val(XB1_LY, -100);
    wait(30);
    set_val(XB1_RX, 0);
    set_val(XB1_RY, 0);
    set_val(XB1_LY, -100);
    wait(490);
    set_val(XB1_LY, 0);
}


this is heel flick turn:

Code: Select all
combo magick {
    set_val(XB1_RB, 100);
    wait(300);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -62);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -89);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -100);
    wait(160);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -76);
    wait(20);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -50);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, 0);
    wait(40);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, 74);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, 99);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, 100);
    wait(50);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -43);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, 0);
    wait(200);
    set_val(XB1_RB, 0);
}
User avatar
riribibi
Command Sergeant Major
Command Sergeant Major
 
Posts: 134
Joined: Fri Oct 31, 2014 12:33 pm

Re: FIFA 16 ALL Skills - Can someone help me update this scr

Postby J2Kbr » Fri Dec 11, 2015 12:14 pm

Thank your posting the combos .... I've added both to the original script. Please let me know you want to trigger each combo? for example, a combination of button.

In addition, there is any combo from the original script that you are not using? It may be necessarily reduce the code to not exceed the maximum bytecode size.

Code: Select all
// GPC Online Library
// turn_and_spin__feint_lampr__step_over__rainbow__ronaldo_chop__fake_shoot__rabona_fake.gpc

 
// GPC Online Library
// turn_and_spin__feint_lampr__step_over__rainbow__ronaldo_chop__fake_shoot__rabona_fake.gpc

/*
******************************************************************************************
                                                                                 
 #######  ######   #######    ##                 ##       ##   
 ##         ##     ##         ##                ###      ###   
 ##         ##     ##        ####                ##     ####   
 #####      ##     #####     ## #                ##    ## ##   
 ##         ##     ##       ######               ##    ######
 ##         ##     ##       ##   #               ##       ##   
 ##       ######   ##      ###   ##              ##      ####

******************************************************************************************

#######  ##  ##     ####     ##     ##       ######   ######   ##   ##  ######
 ##       ##  ##    ##  ##    ##     ##         ##     ##   ##  ##   ##  ##   ##
 ##        ####    ##        ####    ##         ##     ##   ##  ##   ##  ##   ##
 #####      ##     ##        ## #    ##         ##     ######   ##   ##  ######
 ##        ####    ##       ######   ##         ##     ##   ##  ##   ##  ## ##   
 ##       ##  ##    ##  ##  ##   #   ##         ##     ##   ##  ##   ##  ##  ##
 #######  ##  ##     ####  ###   ##  ######   ######   ######    #####   ##   ##

******************************************************************************************
// TURN AND SPIN / FEINT L&R / STEP OVER / RAINBOW / RONALDO CHOP / FAKE SHOOT / RABONA FAKE
///////////////////////////////////////////////////////////////|
// System: XB1, XB 360, PS3, PS4 (with TITAN ONE)//////////////|
// Controller: XB1, XB 360, PS3, PS4 //////////////////////////|
// Game : FIFA 14 /////////////////////////////////////////////|
/* *
* GPC SCRIPT
*  v. 1.40  ahtor:EXCALIBUR
*
*
*  How to activate :
*  for * TurnANDspin-FEINT-STEP OVER* use :
*  ==> Double click LB (LEFT bumper-6)   to activate to the 'LEFT'
*  ==> Double click RB (RIGHT bumper -3) to activate to the 'RIGHT'
*
*  for RONALDO CHOP / FAKE SHOOT /RABONA FAKE
*  ==> Double click RB (RIGHT bumper -3)
*  RONALDO CHOP -> Double click RB and then move left stick to the Left or to the Right.
*
*  RABONA FAKE -> Double click RB and then move left stick downwards.
*
*  FALSE SHOOT -> Double click RB
*
*  for * Rainbow * ==> Press RIGHT STICK-(5) for more than 100 millisecons.
*
* FAKE_SHOT ON / OFF use RT (RIGHT TRIGGER) + D-pad UP [ switch ON / OFF ] FAKE_SHOT
*  if FAKE_SHOT=TRUE then TURN & SPIN falow by RONALDO CHOP or SCOOP TURN
* HOW TO CHANGE SKILLS:
* hold LEFT TRIGGER (7) and press D-pad UP    - TURN and SPIN with ON/ OFF combination of FAKE SHOT
* hold LEFT TRIGGER (7) and press D-pad RIGHT - FEINT L&R
* hold LEFT TRIGGER (7) and press D-pad DOWN  - STEP OVER L&R with repeate
* hold LEFT TRIGGER (7) and press D-pad LEFT  - RONALDO Chop
* *********************************************************** */

//// define ///////////////////////////////////////////////////|

define RIGHT_BUTTON=3;
define LEFT_BUTTON =6;
define Menu_BUTTON =1;
define HoldBttn=2;
define Dpad_UP=13;
define Dpad_RIGHT=16;
define Dpad_DOWN=14;
define Dpad_LEFT=15;
define RS_X= 9;
define RS_Y=10;
define LS_X=11;
define LS_Y=12;
define L_Triger=7;
define R_Triger=4;
define L_Stick=8;
define R_Stick=5;
define DOnotUSE=1;
define BTN_A=19;
define BTN_X=20;
define BTN_B=18;
define BTN_Y=17;
data(DOnotUSE,0,-100,100,-100,100,0,100,100,0,100,-100,100,-100,0,-100,-100,0,-100,100,-100,100,0,100,100,0,100,-100,100,-100,0,-100,-100);

//

int DelayNormal=80;
int DelayRnbwHOLD=160;
int Vreme=30;
int LX, LY, ZX=0, ZY=0;                    // Direction of Left Stick
int RightON =FALSE, CHReg=FALSE;
int indx_CW, indx_CCW;
int timelimit=300; //Double Click time - increase if is to fast
int time_to_DblClick_R=0;
int time_to_DblClick_L=0;
int Ind=0;// Ind we use with dbyte(Ind+ ..);
int Skill=1;
int Zone;// Zone=1 ( this is UP ) ; Zone=3 ( this is RIGHT ) and so on;
int DirLS=0;
int FAKE_SHOT=FALSE;
int Repeate_ON=FALSE;

int  spinDirection = 1;


main {

     LX = get_val(LS_X);

     LY = get_val(LS_Y);


// Repeate ON / OFF
   if(get_val(R_Triger)>70 || get_val(BTN_A)||get_val(BTN_X)||get_val(BTN_B)|| get_val(BTN_Y))Repeate_ON=FALSE;

// FAKE_SHOT ON / OFF  if FAKE_SHOT=TRUE then TURN & SPIN falow by RONALDO CHOP or SCOOP TURN
   if(get_val(R_Triger) && event_press(Dpad_UP))FAKE_SHOT=!FAKE_SHOT;

// Check if RS is pressed -> run Rainbow Skill

   if(get_val( R_Stick) && get_ptime(R_Stick)>100)combo_run(Rainbow );

// Change Other Skills FEINT / Turn & Spin / STEP OVER / Ronaldo Chop
   if(get_val( L_Triger) && event_press(Dpad_UP)) {Skill=1;}  // Turn & Spin
   if(get_val( L_Triger) && event_press(Dpad_RIGHT)) Skill=2; // STEP OVER
   if(get_val( L_Triger) && event_press(Dpad_DOWN)) {Skill=3;}// FEINT
   if(get_val( L_Triger) && event_press(Dpad_LEFT)) Skill=4// Ronaldo Chop / RABONA FAKE / FAKE SHOOT

//   time to R buton Double click
    if (time_to_DblClick_R>0) time_to_DblClick_R=time_to_DblClick_R - get_rtime();
//   time to L buton Double click
    if (time_to_DblClick_L>0) time_to_DblClick_L=time_to_DblClick_L - get_rtime();
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    if (event_press(RIGHT_BUTTON) && time_to_DblClick_R<=0 ) {time_to_DblClick_R =timelimit;}
    else if (event_press(RIGHT_BUTTON)&& time_to_DblClick_R>0){RightON= TRUE;combo_run(Check);}

// Left button
    if (event_press(LEFT_BUTTON) && time_to_DblClick_L<=0) {time_to_DblClick_L=timelimit;}
    else if (event_press(LEFT_BUTTON)&& time_to_DblClick_L>0 ){RightON= FALSE;combo_run(Check);}

}// end of mine

//****************************** COMBOS ***********************************

combo Check {
  Repeate_ON=TRUE;
  if (!combo_running(FoundDirection) && !combo_running(FEINT_LEFT)&& !combo_running(FEINT_RIGHT))combo_run(FoundDirection);
}

// find direction of the Player ( for Rulette - 8 direction) for Turn & Spin (Up_Right), (Up_Left),(Left_Down),(Right_Down)
combo FoundDirection {
    if ((LX>-40 && LX<41)&& LY>=-100)               Zone=1; // LS ->1
    if ((LX>40 && LX<=100)&&(LY<-40 && LY>=-100))   Zone=2; // LS==>2
    if (LX==100 &&(LY>=-40 && LY<=40))              Zone=3; // LS==>3
    if ((LX<=100 && LX>40)&&(LY<=100 && LY>40))     Zone=4; // LS==>4
    if ((LX<=40 && LX>=-40)&&LY==100 )              Zone=5; // LS==>5
    if ((LX>=-100 && LX<-40)&&(LY<=100 && LY>=40))  Zone=6; // LS==>6
    if (LX==-100 &&(LY<40 && LY>=-40))              Zone=7; // LS==>7
    if ((LX>=-100 && LX<-40)&&(LY>=-100 && LY<=-40))Zone=8; // LS==>8
       
    DirLS=Zone;

   
      if (LY==-100 && LX>0) {ZX=inv(LY); ZY=100-LX; if (!RightON) {ZX=LY; ZY=-100+(abs(LX));} }  // Up and Right
    if (LY==-100 && LX==0) {ZX=inv(LY); ZY= 0; if (!RightON) {ZX=-100; ZY=0;}}            //only  UP
    if (LX==100 && LY<0) {ZX=100+LY; ZY=LX; if (!RightON) {ZX=-100+abs(LY); ZY=inv(LX) ;} } // Right and Up
    if ((LX>0 && LX<100)&&(LY<0 && LY>-100)) {ZX=inv(LY); ZY=LX ; if (!RightON){ZX=LY; ZY=inv(LX);} } // Midle Up_Right
    if (LY==0 && LX==100) {ZX=0; ZY=LX; if (!RightON){ZX=0; ZY=inv(LX);} }           // only Right
    if (LY==-100 && LX<0) {ZX= inv(LY); ZY= LX; if (!RightON){ZX=LY; ZY=-100+abs(LX);}} // Up and little Left
    if (LX==-100 && LY==0) {ZX= 0; ZY= -100;if (!RightON){ZX=0; ZY=100;} } // only Left
    if (LX==-100 && LY<0) {ZX= inv(LY); ZY= LX; if (!RightON){ZX=-100+abs(LY); ZY=100;}} //  Left and little UP
    if ((LX<0 && LX>-100) && (LY<0 && LY>-100)) {ZX=inv(LY); ZY= LX;if (!RightON){ZX=LY; ZY=inv(LX);} }
     if ((LX<0 && LY>50)&& LY<=100) {ZX= inv(LY); ZY= LX;if (!RightON){ZX=0; ZY=100;} }    // Left_Down
    if (LX==0 && LY==100) {ZX=-100; ZY=0;if (!RightON){ZX=LY; ZY=inv(LX);}}  // only Down
     if (LX>0&& LY>50) {ZX=inv(LY); ZY=LX;if (!RightON){ZX=LY; ZY=inv(LX);}} // Right_Down

    if(Skill==1 && Zone>0)combo_run(Scill_Move_1 );        // Turn & Spin
    if(Skill==3 && Zone>0)combo_run(STEPOVER_DIRECTION );  // STEP OVER
    if(Skill==2 && Zone>0)combo_run(FEINT_SKILL);          // FEINT
    if(Skill==4 )combo_run(RONALDO_CHOP);                  // FAKE SHOT / RONALDO CHOP
}

// if RightON=TRUE  CCW circle   |  RightON=FALSE  CW circle

combo FEINT_SKILL {
 
  if (Zone>0 && RightON) combo_run(FEINT_RIGHT );
  if (Zone>0 && !RightON) combo_run(FEINT_LEFT);
}
combo STEPOVER_DIRECTION {
  if (Zone>0 && RightON) combo_run(STEPOVER_CCW );
  if (Zone>0 && !RightON) combo_run(STEPOVER_CW);
}
combo STEPOVER_CCW {
Ind=(Zone+8)*2;
set_val(RS_Y,dbyte(Ind-0));
set_val(RS_X,dbyte(Ind-1)); //
wait(30);
set_val(RS_Y,dbyte(Ind-2));
set_val(RS_X,dbyte(Ind-3)); //
wait(30);
set_val(RS_Y,dbyte(Ind-4));
set_val(RS_X,dbyte(Ind-5)); //
if (Repeate_ON)combo_run( STEPOVER_CW);
}

combo STEPOVER_CW {
Ind=(Zone*2)-1;
set_val(RS_X,dbyte(Ind+0));
set_val(RS_Y,dbyte(Ind+1)); //
wait(30);
set_val(RS_X,dbyte(Ind+2));
set_val(RS_Y,dbyte(Ind+3)); //
wait(30);
set_val(RS_X,dbyte(Ind+4));
set_val(RS_Y,dbyte(Ind+5)); //
if(Repeate_ON)combo_run( STEPOVER_CCW);
}


// FEINT LEFT  (CW movement)
combo FEINT_LEFT {
Ind=((Zone+2)*2)-1; //Zone= 1
set_val(9,dbyte(Ind+0)); //
set_val(10,dbyte(Ind+1)); //RIGHT
wait(40); //
set_val(9,dbyte(Ind+2)); //
set_val(10,dbyte(Ind+3)); //Down-Right
wait(40); //
set_val(9,dbyte(Ind+4)); //
set_val(10,dbyte(Ind+5)); //DOWN
wait(40); //
set_val(9,dbyte(Ind+6)); //
set_val(10,dbyte(Ind+7)); //Down-Left
wait(40); //
set_val(9,dbyte(Ind+8)); //
set_val(10,dbyte(Ind+9)); //LEFT
wait(40); //
}


// FEINT RIGHT  (CCW movement)
combo FEINT_RIGHT {
Ind=(Zone+6)*2; //Zone= 1
set_val(10,dbyte(Ind-0)); //
set_val(9,dbyte(Ind-1)); //LEFT
wait(40); //
set_val(10,dbyte(Ind-2)); //
set_val(9,dbyte(Ind-3)); //Down-Left
wait(40); //
set_val(10,dbyte(Ind-4)); //
set_val(9,dbyte(Ind-5)); //DOWN
wait(40); //
set_val(10,dbyte(Ind-6)); //
set_val(9,dbyte(Ind-7)); //Down-Right
wait(40); //
set_val(10,dbyte(Ind-8)); //
set_val(9,dbyte(Ind-9)); //RIGHT
wait(40); //
}

///////////////////////////////////////////////////////////////////
/// Turn & Spin OR Elastico  //////////////////////////////////////
//if OnOff=FALSE => Turn and Spin / if OnOff=TRUE => Elastico Chop
combo Scill_Move_1 {
   
    set_val(RS_X, LX);
    set_val(RS_Y, LY);     // RS go forvard

    wait(40);
    set_val(RS_X, 0);
    set_val(RS_Y, 0);
    wait(40);
    set_val(RS_X, ZX);      // RS go in 90 degree (left or Right)
    set_val(RS_Y, ZY);
    wait(40);
if (FAKE_SHOT)combo_run(RONALDO_CHOP);
}

// Rainbow Skill
combo Rainbow {

    set_val(RS_X, inv(LX));set_val(RS_Y, inv(LY));// Rainbow  -back-
    wait(DelayNormal);
    set_val(RS_X, 0);      // RS rest
    set_val(RS_Y, 0);
    wait(DelayNormal);
    set_val(RS_X, LX); set_val(RS_Y, LY);// Rainbow -Forvard
    wait(DelayRnbwHOLD);      // Hold forvard
    set_val(RS_X, 0);       // RS rest
    set_val(RS_Y, 0);
    wait(DelayNormal);
    set_val(RS_X, LX);      // RS go forvard
    set_val(RS_Y, LY);
    wait(DelayNormal);
    set_val(RS_X, 0);       // RS rest
    set_val(RS_Y, 0);
}

combo RONALDO_CHOP {
// hold LEFT TRIGGER  ==> BTN_X + BTN_A
    set_val(L_Triger,100);
    set_val(BTN_X,100); //
    wait(40); //
    set_val(L_Triger,100);
    set_val(BTN_X,100); //
    set_val(BTN_A,100); //
    wait(100); //
    set_val(L_Triger,100);
    wait(200);
}

combo SpinLeftRight {
    set_val(XB1_RY, 33);
    set_val(XB1_LY, -100);
    wait(10);
    set_val(XB1_RX, -30 * spinDirection);
    set_val(XB1_RY, 63);
    set_val(XB1_LY, -100);
    wait(10);
    set_val(XB1_RX, -63 * spinDirection);
    set_val(XB1_RY, 88);
    set_val(XB1_LY, -100);
    wait(90);
    set_val(XB1_RX, 0 * spinDirection);
    set_val(XB1_RY, 0);
    set_val(XB1_LY, -100);
    wait(60);
    set_val(XB1_RX, -40 * spinDirection);
    set_val(XB1_LY, -100);
    wait(10);
    set_val(XB1_RX, -63 * spinDirection);
    set_val(XB1_RY, 52);
    set_val(XB1_LY, -100);
    wait(10);
    set_val(XB1_RX, -67 * spinDirection);
    set_val(XB1_RY, 73);
    set_val(XB1_LY, -100);
    wait(30);
    set_val(XB1_RX, 0 * spinDirection);
    set_val(XB1_RY, 0);
    set_val(XB1_LY, -100);
    wait(490);
    set_val(XB1_LY, 0);
}

combo HeelFlickTurn {
    set_val(XB1_RB, 100);
    wait(300);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -62);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -89);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -100);
    wait(160);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -76);
    wait(20);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -50);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, 0);
    wait(40);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, 74);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, 99);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, 100);
    wait(50);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -43);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, 0);
    wait(200);
    set_val(XB1_RB, 0);
}
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: FIFA 16 ALL Skills - Can someone help me update this scr

Postby riribibi » Sat Dec 12, 2015 4:23 pm

Can you please remove the first 39 lines of coding to save space? they are completely unnecessary (although I do appreciate xcalibur's work on this!!)

You can also remove the Ronaldo chop too, to save room.


is it possible to have the:

TURN and SPIN with ON/ OFF combination of FAKE SHOT
and
Spin Left/Right

activated by double clicking the left/right bumpers respectively? (depending on which one I activate of course)


and then the rest of the combos be activating by double tapping the left or right triggers?


for instance:

left/right bumpers: turn and spin w/combo fake shot OR spin left/right
Left trigger: FEINT L&R or STEP OVER L&R with repeate
Right trigger: heel flick turn
RS click & hold (Keep as is please): rainbow


i'll explain what I mean and how I would like to activate (if possible) below:
LT + dpad up for turn and spin w/combo fake shot for the two bumpers (same as currently is)
LT + dpad left for the spin left/right (replacing the Ronaldo chop) for the two bumpers

LT + dpad right for Feint L&R (same as before, but now activated by pushing LT twice?)
LT + dpad down for STEP OVER L&R with repeate (same as before but now activated by pushing LT twice?)

RT + dpad up for fake shot on/off (same as before, no changes)

and finally,

permanently assign Heel Flick Turn to double tapping the right trigger? (or the ability to turn it on/off with RT + dpad down?)

please let me know if this is possible/would work? it would be greatly appreciated. thank you so much in advance for any answers/help on this.
User avatar
riribibi
Command Sergeant Major
Command Sergeant Major
 
Posts: 134
Joined: Fri Oct 31, 2014 12:33 pm

Re: FIFA 16 ALL Skills - Can someone help me update this scr

Postby riribibi » Mon Dec 14, 2015 8:17 am

I hope the above is not too much to ask? thanks again and let me know!
User avatar
riribibi
Command Sergeant Major
Command Sergeant Major
 
Posts: 134
Joined: Fri Oct 31, 2014 12:33 pm

Re: FIFA 16 ALL Skills - Can someone help me update this scr

Postby J2Kbr » Tue Dec 15, 2015 5:19 pm

I'm sorry for not reply you early. I'll work in your script yet today.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: FIFA 16 ALL Skills - Can someone help me update this scr

Postby J2Kbr » Tue Dec 15, 2015 7:10 pm

Alright ... below you can find a script with the new combos you requested. It is not yet on the original script because I was not able to make enough room to accommodate the new code. I'll probably need rewrite the original script as it is very confusing and bad structured.

What I want you to do is test the script posted below and let me know how it worked for you.

Recapping:
LEFT SPIN (Double tap left bumper)
RIGHT SPIN (Double tap right bumper)
HELL FLICK TURN (Right trigger)

Code: Select all
int spinDirection;
int leftspin_stage, leftspin_timing;
int rightspin_stage, rightspin_timing;

main {
    // LEFT SPIN (Double tap left bumper)
    if(leftspin_stage == 0) {
        if(get_val(XB1_LB)) { leftspin_timing = 0; leftspin_stage = 1; }
    } else if(leftspin_stage == 1) {
        if(!get_val(XB1_LB)) { leftspin_timing = 0; leftspin_stage = 2; }
        else leftspin_check_timeout();
    } else if(leftspin_stage == 2) {
        if(get_val(XB1_LB)) {
            leftspin_stage = 0;
            spinDirection = 1;
            combo_run(SpinLeftRight);
        } else leftspin_check_timeout();
    }
   
    // RIGHT SPIN (Double tap right bumper)
    if(rightspin_stage == 0) {
        if(get_val(XB1_RB)) { rightspin_timing = 0; rightspin_stage = 1; }
    } else if(rightspin_stage == 1) {
        if(!get_val(XB1_RB)) { rightspin_timing = 0; rightspin_stage = 2; }
        else rightspin_check_timeout();
    } else if(rightspin_stage == 2) {
        if(get_val(XB1_RB)) {
            rightspin_stage = 0;
            spinDirection = -1;
            combo_run(SpinLeftRight);
        } else rightspin_check_timeout();
    }

    // HELL FLICK TURN (Right trigger)
    if(event_press(XB1_RT)) {
        combo_run(HeelFlickTurn);
    }
   
    if(combo_running(SpinLeftRight)) {
        set_val(XB1_RB, 0);
        set_val(XB1_LB, 0);
    }
    if(combo_running(HeelFlickTurn)) {
        set_val(XB1_RT, 0);
    }
}

combo SpinLeftRight {
    set_val(XB1_RY, 33);
    set_val(XB1_LY, -100);
    wait(10);
    set_val(XB1_RX, -30 * spinDirection);
    set_val(XB1_RY, 63);
    set_val(XB1_LY, -100);
    wait(10);
    set_val(XB1_RX, -63 * spinDirection);
    set_val(XB1_RY, 88);
    set_val(XB1_LY, -100);
    wait(90);
    set_val(XB1_RX, 0 * spinDirection);
    set_val(XB1_RY, 0);
    set_val(XB1_LY, -100);
    wait(60);
    set_val(XB1_RX, -40 * spinDirection);
    set_val(XB1_LY, -100);
    wait(10);
    set_val(XB1_RX, -63 * spinDirection);
    set_val(XB1_RY, 52);
    set_val(XB1_LY, -100);
    wait(10);
    set_val(XB1_RX, -67 * spinDirection);
    set_val(XB1_RY, 73);
    set_val(XB1_LY, -100);
    wait(30);
    set_val(XB1_RX, 0 * spinDirection);
    set_val(XB1_RY, 0);
    set_val(XB1_LY, -100);
    wait(490);
    set_val(XB1_LY, 0);
}

combo HeelFlickTurn {
    set_val(XB1_RB, 100);
    wait(300);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -62);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -89);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -100);
    wait(160);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -76);
    wait(20);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -50);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, 0);
    wait(40);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, 74);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, 99);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, 100);
    wait(50);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, -43);
    wait(10);
    set_val(XB1_RB, 100);
    set_val(XB1_RY, 0);
    wait(200);
    set_val(XB1_RB, 0);
}


function leftspin_check_timeout() {
    leftspin_timing = leftspin_timing + get_rtime();
    if(leftspin_timing > 150) leftspin_stage = 0;
}

function rightspin_check_timeout() {
    rightspin_timing = rightspin_timing + get_rtime();
    if(rightspin_timing > 150) rightspin_stage = 0;
}
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: FIFA 16 ALL Skills - Can someone help me update this scr

Postby Tinobell1978 » Wed Dec 16, 2015 3:38 pm

Hi mate this works left spin and right spin but the heel flick turn is no use as the right trigger is finesse or sprint so using that
mucks up the rest of that control. but see what riribibi wants to do with it.
User avatar
Tinobell1978
Sergeant
Sergeant
 
Posts: 7
Joined: Mon Nov 30, 2015 6:23 pm

Re: FIFA 16 ALL Skills - Can someone help me update this scr

Postby J2Kbr » Thu Dec 17, 2015 9:21 am

Thanks for the feedback. Let's see what riribibi has to say about that.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Next

Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 28 guests