(FIXED) Delete some part of the script so it still works
3 posts
• Page 1 of 1
(FIXED) Delete some part of the script so it still works
So I found this script for FIFA 19 from norge and I just want to have the shooting part. I even tried to change the PS4_L3 Button (which starts the skill script part that I dont want) to PS Home button but still was on PS4_R3 mapped.
Can someone help me out. I am very new as you see. I happy for any advice, thanks.
**UPDATE: I managed to remap the button for Skills On/Off from R3 to L3
Can someone help me out. I am very new as you see. I happy for any advice, thanks.
**UPDATE: I managed to remap the button for Skills On/Off from R3 to L3
- Code: Select all
#include <titanone.gph>
/////////////////// SKILLS \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//-----------------------------------------------------------------------
///\ 31. Cruyff Turn//\3. Revers Step Over 2*//\5. Giovinco Tornado 4*//\6. Elastico 5*//\
///\ default Skill : 9. Spin New 4*-5*
///\ One Way Direction Skill : 18. Heel to Heel
// DESCRIPTIONS - INSTRUCTION
// Switch Skills
//
// hold button : XB1_LB and then press :
// button : will switch to Skill :
// D-pad UP => 31
// D-pad RIGHT => 3
// D-pad DOWN => 5
// D-pad LEFT => 6
// will switch to default Skill :
// hold button :XB1_LB + (PS4 SHARE / XB1 VIEW) => 9. Spin New
//
// ACTIVATE SKILLS
// Skills with Left and Right exit ( direction )
// Double tap : XB1_LB Modifier Button to activate skill to the Left
// Double tap : XB1_RB Modifier Button to activate skill to the Right
//
// Skills with one direction ( no exit )
//
// = 0. None
//-----------------------------------------------------------------------
//--------------------------------------------------------------
// DECLARATIONS
//--------------------------------------------------------------
define DOnotUSE = 1;
define DelayNormal = 80;
define DelayRnbwHOLD = 160;
define DelayRest = 200;
define DelayLeft_move= 500;
define timelimit = 300; // Time to Double click
//////////////////////////////////////////////////////////////////
// YOUR BUTTON LAYOUT
define PaceCtrol = PS4_L2; // Pace Control
define FinesseShot = PS4_R1; // Finesse Shot
define PlayerRun = PS4_L1; // Player Run
define ShotBtn = PS4_CIRCLE; // Shot Btn
define SprintBtn = PS4_R2; // Sprint Btn
define MOVE_X = PS4_LX;
define MOVE_Y = PS4_LY;
define SKILL_STICK_X = PS4_RX;
define SKILL_STICK_Y = PS4_RY;
define holdBtnA = XB1_LB; // hold btn for choice A SKill
define Lbtn = XB1_LB;// Modifier Button to activate skill to the Left
define Rbtn = XB1_RB;// Modifier Button to activate skill to the Right
define OneDirectBtn = XB1_RS;// Modifier Button to activate Skill with One Direction
define DopBTN = XB1_LT;// Modifier Button to activate Aditional Skill
define SPRINT = XB1_LS;// Modifier Button to activate Aditional Skill
define time_to_dblclick = 300; // Time to Double click
define defaultSkill = 9;// 9. Spin New 4*-5*
define Best_SKILL = 1; // BestFIFAmove
define StepOver_SKILL = 2; // STEPOVER_DIRECTION
define ReversStepOver_SKILL = 3; // REVERS_STEPOVER
define DoubleTouch_EXIT_SKILL = 4; // REVERS_STEPOVER and EXIT
define Advanced_Elastico_SKILL = 5; // dob=97; Elastico=TRUE; TURNandSPIN_ELASTICO
define Elastico_SKILL = 6; // dob=97; Elastico=TRUE; TURNandSPIN_ELASTICO
define Turn_AND_Spin_SKILL = 7; //
define HocusPocus_SKILL = 8; // HOCUS_POCUS
define Spin_NEW_SKILL = 9; // Elastico=0;dob=100;combo_run(TURNandSPIN_ELASTICO);
define Feint_L_R_SKILL =10; // FEINT_SKILL
define Roulette_SKILL =11; // ROULETTE
define Ball_Roll_Flick =12; // BalRollFlick
define OP_Skill =13; // OP Skill
define Ball_Roll_Rock_and_Roll =14; // Ball Roll Rock and Roll
define Bolasie_Flick_SKILL =15; // Bolasie Flick dob=97; Elastico=FALSE;
define Fake_Shot_SKILL =16; // Fake Shot
define HeelFlickTurn_SKILL =17; // Heel Flick Turn
define Heel_to_Heel_SKILL =18; // HEELtoHEEL
define Rainbow_SKILL =19; // RAINBOW
define RonaldoHeelChop =20; // Ronaldo Heel Chop
define Fake_Pass_SKILL =21; // Fake Pass
define In_Air_Rainbow =22; // standing = InAirRainbow / running = RAINBOW
define In_Air_Elastico =23; // InAirElastico
define Sombrero_Flick =24; // standing =Sombrero Flick / running = Heel to Heel
define Juggling_Ball =25; // Juggling Ball
define Chest_Flick_Skill =26; // Juggling Ball + Chest Flick
define V_DragBack_Skill =27; // V Drag Back
define Body_Feint_Universal =28; //
define Ball_Roll =29; //
define Ball_Roll_SpeedBoost =30; //
define Cruyff_Turn =31; //
//--------------------------------------------------------------
// DATA SEGMENT
//--------------------------------------------------------------
data(DOnotUSE,
// 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
0,-100,50,-100,100,-100,100,-50,100, 0, 100, 50, 100,100, 50,100, 0,100, -50,100,-100,100,-100, 50,-100, 0, -100, -50, -100, -100, -50, -100,
// 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
0,-100,50,-100,100,-100,100,-50,100, 0, 100, 50, 100,100, 50,100, 0,100, -50,100,-100,100,-100, 50,-100, 0, -100, -50, -100, -100, -50, -100,
// 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
0,-100,50,-100,100,-100,100,-50,100, 0, 100, 50, 100,100, 50,100, 0,100, -50,100,-100,100,-100, 50,-100, 0, -100, -50, -100, -100, -50, -100,
// 97 98 99 100
4, 12, 6, 10 //
);// end of data
//--------------------------------------------------------------
//--------------------------------------------------------------
// VARIABLES
//--------------------------------------------------------------
int ZX, ZY;
int LX, LY; // Direction of Left Stick
int RightON =FALSE;
int Elastico =FALSE;
int Ind =0; // IndL for LEFT ANALOG we use with dbyte(Ind+ ..);
int Zone; //
int mX,mY;
int IndL;
int OnOff = FALSE;
int OnOffMods =FALSE;
int dob;
int w_AdvancedElastico =10;
int SKill = defaultSkill;
int b_Standing;
int flick_up;
int flick_d;
int flick_l;
int flick_r;
int ShootPower = 110; // Shot Power
int TempShotPower;
int btn_tap;
int tap;
int dbl_w = 300;
init {
ShootPower = 210 ;
colorled(2,0,0,0); // clBlue
TempShotPower = ShootPower ;
}
int Points =0;
//--------------------------------------------------------------
// MAIN BLOCK
//--------------------------------------------------------------
main {
/////////////////////////////////////////////////////////////////////
// Low Driven Shot
//if(event_press(PS4_TOUCH)) combo_run(DRIVEN_SHOT);
/////////////////////////////////////////////////////////////////////
// Shot Power Switch
if ( get_val(PS4_L1)) {
if(event_press(XB1_UP)) {ShootPower = 130; colorled(2,0,0,0);} // Blue
if(event_press(XB1_RIGHT)) {ShootPower = 170; colorled(0,0,2,0);} // Green
if(event_press(XB1_DOWN)) {ShootPower = 310; colorled(0,2,0,0);} // Red
if(event_press(XB1_LEFT)) {ShootPower = 210; colorled(2,2,2,2);} // White
Null_Directional_btns ();
TempShotPower = ShootPower;
}
///////////////////////////////////////////////
// Finesse shot
if(get_val(FinesseShot) ) {
ShootPower = 201;
}else ShootPower = TempShotPower;
////////////////////////////////////////////////
//
if(get_val(ShotBtn) && get_ptime(ShotBtn)>= ShootPower) { // Shot Power Restriction
set_val(ShotBtn, 0);
}
if(get_val(ShotBtn)) set_val(SprintBtn,0);
if(OnOff){//-------------------------------------------------
if(abs(get_val(MOVE_X))< 60 && abs(get_val(MOVE_Y))< 60){
b_Standing = TRUE;
}else{
LX = get_val(MOVE_X);
LY = get_val(MOVE_Y);
b_Standing = FALSE;
get_Zone(LX,LY);
ZX = LY; ZY = inv(LX);// 90 degre
}
}//----------------------------------------------------------
// ON / OFF All Skills
if(get_val(1)){
if(event_press(19))OnOffMods=!OnOffMods;
set_val(19,0);
}
if(event_press(PS4_R3)){OnOffMods = !OnOffMods;}
if(OnOff){//-------------------------------------------------
if(abs(get_val(MOVE_X))< 60 && abs(get_val(MOVE_Y))< 60){
b_Standing = TRUE;
}else{
LX = get_val(MOVE_X);
LY = get_val(MOVE_Y);
b_Standing = FALSE;
get_Zone(LX,LY);
ZX = LY; ZY = inv(LX);// 90 degre
}
}//--------------------------------------------------------
set_val(TRACE_1,OnOffMods);
set_val(TRACE_2,mX);
set_val(TRACE_3,mY);
if(OnOffMods) { // all Skills mode
// NEW SPIN right
if( get_val(PS4_RY) < -70 && !flick_up ) {
flick_up = TRUE;
direction( 1 );
OnOff = FALSE;
Elastico=0;
dob=99;
combo_run(TURNandSPIN_ELASTICO);//9. New Spin
}
// NEW SPIN left
if( get_val(PS4_RY) > 70 && !flick_d ) {
flick_d = TRUE;
direction( 0 );
OnOff = FALSE;
Elastico=0;
dob=99;
combo_run(TURNandSPIN_ELASTICO);//9. New Spin
}
// CRUYFF TURN
if( get_val(PS4_RX) < -70 && !flick_l ) {
flick_l = TRUE;
combo_run(CRUYFF_TURN);//9. Cruyff Turn
}
// Roulette
if( get_val(PS4_RX) > 70 && !flick_r ) {
flick_r = TRUE;
combo_run(ROULETTE); // 11. Roulette
}
if(abs(get_val(PS4_RY))<20 && abs(get_val(PS4_RX))<20){
flick_up = 0;
flick_d = 0;
flick_l = 0;
flick_r = 0;
}
if(event_press(PS4_L3)){
RightON= FALSE;
get_Zone(LX,LY);
OnOff = FALSE;
calc_90degree();
combo_run(DRAG_BACK);
}
// Skills with one direction press : XB1_RS / PS4_R3
//--------------------------------------------------------------
if(event_press(PS4_R3)){
RightON= FALSE;
get_Zone(LX,LY);
OnOff = FALSE;
calc_90degree();
combo_run(BallRollSpeed);
}
set_val(PS4_R3,0);
set_val(PS4_L3,0);
set_val(PS4_RX,0);
set_val(PS4_RY,0);
}// ON / OFF mods
//--------------------------------------------------------------
//--------------------------------------------------------------
} // end of main block
////////////////////////////////////////////////////////////////
// COMBO BLOCKS //////////////////////////////////////////////
////////////////////////////////////////////////////////////////
combo dbl_tap{
tap = TRUE;
wait(dbl_w);
tap = FALSE;
btn_tap = FALSE;
}
///////////////////////////////////////////////////////////////////
// 17. Heel to Heel ///////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
combo BallRollSpeed {
RA_CW(ZX,ZY);
wait(202);//
RA_CW(0,0);
wait(202);//
set_val(PlayerRun,100) ;
set_val(SprintBtn,100);
wait(175);
set_val(SprintBtn,100);
wait(750);
OnOff=TRUE;
}
combo DRIVEN_SHOT {
set_val(ShotBtn,100);
wait(215);
set_val(ShotBtn, 0);
wait(60);
set_val(ShotBtn,100);
wait(220);
}
combo ROULETTE {
if (RightON){Ind=((Zone + 8)*2)+ 32;} // Zone 9
else {Ind=((Zone + 8)*2)- 1;}
Points=5;
combo_run(MimicCircle);
}
combo MimicCircle {
if(Points>=1){
if (RightON){RA_CCW(dbyte(Ind),dbyte(Ind - 1));}
else {RA_CW(dbyte(Ind),dbyte(Ind + 1));}
}
wait(40);
if(Points>=3){
if (RightON){RA_CCW(dbyte(Ind - 8),dbyte(Ind - 9));}
else {RA_CW(dbyte(Ind + 8),dbyte(Ind + 9));}
}
wait(40);
if(Points>=5){
if (RightON){RA_CCW(dbyte(Ind - 16),dbyte(Ind - 17));}
else {RA_CW(dbyte(Ind + 16),dbyte(Ind + 17));}
}
wait(40);
OnOff=TRUE;
}
combo DRAG_BACK {
set_val(FinesseShot,100);
set_val(PS4_LX, inv(LX));
set_val(PS4_LY, inv(LY));
wait(230);
}
combo CRUYFF_TURN {
set_val(XB1_X,100);
wait(40);
left_stick ( LX,LY);
set_val(XB1_X,100);
set_val(XB1_A,100);
wait(150);
set_val(XB1_A,100);
left_stick ( LX,LY);
wait(60);
}
function left_stick (val_X, val_Y){
set_val(PS4_LX,inv(val_X));
set_val(PS4_LY,inv(val_Y));
}
///////////////////////////////////////////////////////////////////
/// Turn & Spin OR Elastico //////////////////////////////////////
//dob=97 /if Elastico=FALSE => Turn and Spin / if Elastico=TRUE => Elastico Chop
// NEW SPIN dob=100; Elastico=FALSE;
// 97 98 99 100
// 4, 12, 6, 10 //
combo TURNandSPIN_ELASTICO {
if(SKill==Bolasie_Flick_SKILL){// 16
f_RB_LT_RT(1,0,0);
w_AdvancedElastico=100;
}else if(SKill==Advanced_Elastico_SKILL){
f_RB_LT_RT(0,1,0);
w_AdvancedElastico=400;
}else{
w_AdvancedElastico=10;
}
wait(w_AdvancedElastico);
if(SKill==Bolasie_Flick_SKILL){f_RB_LT_RT(1,0,0);}// 16
if(SKill==Advanced_Elastico_SKILL){f_RB_LT_RT(0,1,0);}
if (RightON){Ind=((Zone + dbyte(dob))*2)- 1;}
else{Ind=((Zone + dbyte(dob + 1))*2)- 1;}
if(dob==97){//-------------------------------------------
if (Elastico){ RA_CW(inv(mX), inv(mY));}
else {RA_CW( mX , mY);} // RS go forvard
}//-------------------------------------------
if(dob==99){
RA_CW(dbyte(Ind),dbyte(Ind + 1));
}
wait(40);
if(SKill==Bolasie_Flick_SKILL){f_RB_LT_RT(1,0,0);}// 16
if(SKill==Advanced_Elastico_SKILL){f_RB_LT_RT(0,1,0);}
RA_CW(0,0);
wait(40);
if(SKill==Bolasie_Flick_SKILL){f_RB_LT_RT(1,0,0);}// 16
if(SKill==Advanced_Elastico_SKILL){f_RB_LT_RT(0,1,0);}
RA_CW(dbyte(Ind),dbyte(Ind + 1));
wait(40);
OnOff = TRUE;
}
function direction (dir) {
if(dir){
RightON = TRUE;
ZX = inv(LY); ZY = LX; // Zone 3
}else {
RightON = FALSE;
ZX = LY; ZY = inv(LX); // Zone 7
}
block(SprintBtn,500);
block(MOVE_X,1000);block(MOVE_Y,1000);
}
function get_Zone (X,Y) {
if ((Y < -80 )&& (X>= -20 && X< 20 )) {Zone= 1;} // LS==>1
else if ((Y < -80 )&& (X>= 20 && X<= 70 )) {Zone= 2;} // LS==>2
else if ( Y< -70 && X> 70 ) {Zone= 3;} // LS==>2
else if ((X > 80 )&& (Y>= -70 && Y<= -20 )) {Zone= 4;} // LS==>2
else if ((X > 80 )&& (Y> -20 && Y< 20 )) {Zone= 5;} // LS==>2
else if ((X > 80 )&& (Y>= 20 && Y<= 70 )) {Zone= 6;} // LS==>2
else if ((X > 70 )&& ( Y> 70 )) {Zone= 7;} // LS==>2
else if ((X < 70 && X>20)&& ( Y== 100 )) {Zone= 8;} // LS==>2
else if ((Y > 80 )&& (X>= -20 && X<= 20 )) {Zone= 9;} // LS==>2
else if ((Y > 80 )&& (X< -20 && X> -70 )) {Zone=10;} // LS==>2
else if ((Y > 70 )&& ( X< -70 )) {Zone=11;} // LS==>2
else if ((X < -80 )&& (Y>= 20 && Y<= 70 )) {Zone=12;} // LS==>2
else if ((X < -80 )&& (Y> -20 && Y< 20 )) {Zone=13;} // LS==>2
else if ((X < -80 )&& (Y< -20 && Y> -70 )) {Zone=14;} // LS==>2
else if ((X < -70 )&& ( Y< -70 )) {Zone=15;} // LS==>2
else if ((Y < -80 )&& (X< -20 && X> -70 )) {Zone=16;} // LS==>2
IndL = (Zone * 2)- 1;
mX = dbyte(IndL);
mY = dbyte(IndL + 1);
}// func end
//--------------------------------------------------------------
//Right Analog Functions
//--------------------------------------------------------------
function RA_CW(X,Y) {
set_val(SKILL_STICK_X,X );
set_val(SKILL_STICK_Y,Y);
}
function RA_CCW(Y,X) {
set_val(SKILL_STICK_Y,Y );
set_val(SKILL_STICK_X,X);
}
function f_RB_LT_RT (a,b,c){
if(a) set_val(FinesseShot,100); //RB
if(b) set_val(PaceCtrol,100); //LT
if(c) set_val(SprintBtn,100); //RT
}// func end
function Null_Directional_btns (){
set_val(13,0);
set_val(16,0);
set_val(14,0);
set_val(15,0);
}
function calc_90degree (){
if(RightON){
ZX=inv(LY);ZY=LX; // Zone 3
}else {
ZX=LY;ZY=inv(LX); // Zone 7
}
}
function colorled(a,b,c,d) {
set_led(LED_1,a);
set_led(LED_2,b);
set_led(LED_3,c);
set_led(LED_4,d);
}// func end
Last edited by GOLAZO on Tue May 28, 2019 11:50 am, edited 1 time in total.
-
GOLAZO - Staff Sergeant
- Posts: 15
- Joined: Mon May 20, 2019 9:46 am
Re: Delete some part of the script so it still works
Do you need any other help?
-
UK_Wildcats - Brigadier General
- Posts: 2243
- Joined: Thu Jan 08, 2015 6:53 pm
Re: Delete some part of the script so it still works
Its okay I finally learned how to do it.
-
GOLAZO - Staff Sergeant
- Posts: 15
- Joined: Mon May 20, 2019 9:46 am
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 63 guests