Convert

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

Convert

Postby josho666 » Tue Dec 03, 2019 6:54 am

Code: Select all
/*+++++++  +++++++++++++++++++++++++++++
H1Z1 :Beta Version 1.02
 
Coded by
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++(lokidagawd)++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ???     ??????   ?? ??? ???? ??????  ???        ?????  ???       ?     ????????? ++
????    ????  ??? ????? ????? ??? ?????????     ??? ?????????    ??? ? ??????? ???+++
????    ????  ????????? ????? ??   ?????  ???   ???????????  ???  ??? ? ?? ???   ??++
????    ???   ?????? ?? ????? ???   ??????????  ???  ???????????? ??? ? ?? ????   ?++
????????? ??????????? ??????? ??????  ??   ???? ???????? ??   ???????????? ??????? ++
? ???  ?? ?????? ? ?? ????    ???  ?  ??   ???? ??   ?  ??   ????? ??? ?   ???  ?  ++
? ? ?  ?  ? ? ?? ? ?? ?? ? ?  ? ?  ?   ?   ?? ?  ?   ?   ?   ?? ?  ? ? ?   ? ?  ?  ++
  ? ?   ? ? ? ?  ? ?? ?  ? ?  ? ?  ?   ?   ?   ? ?   ?   ?   ?     ?   ?   ? ?  ?  ++
    ?  ?    ? ?  ?  ?    ?      ?          ?  ?      ?       ?  ?    ?       ?     ++
                              ?                                            ?      ++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++(lokidagawd)++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+~+~~+~~+~+~++~+~+~+~+~+PLEASE TAKE A SECOND TO READ~+~+~+~+~+~~+~+~+~+~+~+~~+~
 hey everybody, thanks for using my script, ive put alot of work in this and still have much planned in the future.
 if you have any problems or find bugs please report them to me by email at [email protected] or at device.com
 my user there is lokidagawd,there you can also find this script that has swapped the X button for R3 which makes it
 easier for you to jump without taking your finger off your camera stick (basically like stick and move from cod).
 i disabled the EMOTE button in game (up arrow) because its rather annoying when you try to turn on rapid fire in a gun
 fight and have to press circle to back out of the emote screen (plus emotes suck in this game) however if you can't
 live without them you can remedy by commenting out the "unmap 13; portion i have highlighted below, to comment/void
 out a command simple put two forward slashes in front of the code like this // again thanks for downloading and enjoy.
 not that it matters that much but green thumbs ups are inspiring to make a better menu, red thumbs down.... not so much
 please bring your complaints and issues to me directly so i can better fix this script, i cant do it without you all.
 i am still working on a better LED notification system but for now its basic with a single rumble notification for mods on,
 and a double for mods off, with each mod having a single led representation, i will address this but if i spent more time
 on it now you guys suffer, so enjoy whats here now and please leave feedback in the device thread @
if you use any of the code below thats fine, but please dont be a douche, give credit where it's due, we work hard on these script
FOR FREE and having your shit stolen does not inspire more public scripts, god bless you all and stay gaming.
i have some exciting this im working on for next update... STAY TUNED!!!!!!!!!!!!!!!!
device.COM SCRIPT THREAD : https://device.com/forums/showthread ... ost1126204
/**********************************************************
AUTO STRAFE = L2+DOWN        (WORKS WELL WHEN BATTLING MID-RANGE WITH SMG)
ANTI RECOIL = L2+LEFT        (WILL MAKE ALWAYS ON, NEXT UPDATE TO MAKE ROOM FOR MORE)
STEADY AIM = L2 + TRIANGLE   (THIS IS BEST FOR AR'S, YOU NEED TO TAP FIRE THE AK, DO NOT JUST HOLD THE BUTTON DOWN, AR YOU CAN HOLD DOWN FULLY.. STILL WORKING ON THIS)
JUMP SHOT = L2 + RIGHT       (REPLACED JIGGLE MOD) SO OP!!!!!!!!! BEST WITH SHOTGUNS BUT WORKS WELL WITH SMG ALSO
RAPID FIRE = L2+UP           (THIS IS BEST FOR PISTOL'S SMG'S AND SHOTGUN'S, HELLFIRE HAS NO RECOIL WITH THIS AT ALL, CAN HOLD BUTTON DOWN FREELY)
RESET MODS = L2 + R3         (TURNS OFF ALL MODS, IF YOU HAVE DIFFICULTY DRIVING, USE THIS WHEN YOU GET IN A CAR)
AIM ASSIST = L2+ SQUARE      (TEST MODE/BUGGY, WILL RELEASE AT LATER DATE)
/*********************************************************/

//+++++++++++++++++++++++++++++++++MISC DEFINES+++++++++
define ONLY_WITH_SCOPE = TRUE;
define ANTI_RECOIL = 0;     
define ANTI_RECOIL_LEFT = 0
define ANTI_RECOIL_RIGHT = 0;
define Shoot = PS4_R2;
define Aim = PS4_L2;
define Crouch = PS4_CIRCLE;
define Jump = PS4_CROSS;
define Mod_Reset = PS4_R3;
 
//+++++++++++++++++++++COLORS+++ CREDIT device DOCUMENTATION
define Off = 0;
define On = 100;
define Dim_Blue = 1;
define Dim_Red = 2;
define Dim_Green = 3;
define Dim_Pink = 4;
define Dim_SkyBlue = 5;
define Dim_Yellow = 6;
define Dim_White = 7;
define Blue = 8;
define Red = 9;
define Green = 10;
define Pink = 11;
define SkyBlue = 12;
define Yellow = 13;
define White = 14;
define Bright_Blue = 15;
define Bright_Red = 16;
define Bright_Green = 17;
define Bright_Pink = 18;
define Bright_SkyBlue = 19;
define Bright_Yellow = 20;
define Bright_White = 21;
 
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,1, // 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,2, // 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,3  // Bright white
 
);
//+++++++++++++++++++++++++intergers
int Tap[6];
int strafeLeft, strafeRight;
int Rand = 32767;
int anti_recoil;
int anti_recoil_left;
int anti_recoil_right;
int Steady_On_Off = FALSE;
int Strafe_On_Off = FALSE;
int Recoil_On_Off = FALSE;
int Rapid_On_Off = FALSE;
int Jump_On_Off = FALSE;
//int Ds_On_Off = FALSE;
//int Aim_On_Off = FALSE;
//int Jiggle_On_Off = FALSE;
//===========================================================
unmap 13; // comment out if you want to use emote's (it's annoying when its on and setting rapid fire, thats why i have off)
init{
set_ds4_led(White);
Tap[0] = 6;
Tap[1] = 20;
}
main {
//==========================RAPID FIRE=======================
if(get_val(Aim) && event_press(PS4_UP)){
    Rapid_On_Off=!Rapid_On_Off;
        if(Rapid_On_Off == TRUE){set_ds4_led(Red);combo_run(notify_on);}
            if(Rapid_On_Off == FALSE){set_ds4_led(White);combo_run(notify_off);
            if(((Rapid_On_Off == TRUE)&&(Recoil_On_Off == TRUE))&& (Steady_On_Off == TRUE)){set_ds4_led(Bright_SkyBlue);}}}
                if (Rapid_On_Off){
                       Rapid_FIRE();       
    } 
//=============ANTI-RECOIL===================================       
if((get_val(Aim)) && (event_press(PS4_LEFT))){Recoil_On_Off=!Recoil_On_Off;
    if(Recoil_On_Off == TRUE){set_ds4_led(Pink);combo_run(notify_on);}
        if(Recoil_On_Off == FALSE){set_ds4_led(White);combo_run(notify_off);}}
             if (Recoil_On_Off){
                  combo_run(AntiRecoil);
      }
//================Jump Shot==================================
if (get_val(Aim) && event_press(PS4_RIGHT)){Jump_On_Off=!Jump_On_Off;
    if(Jump_On_Off == TRUE){set_ds4_led(Blue);combo_run(notify_on);}
        if(Jump_On_Off == FALSE){set_ds4_led(White);combo_run(notify_off);}}
              if (Jump_On_Off){
              if(get_val(Shoot)){
                         combo_run(jump_shot);
                         }
                         }
/*=============(TEST MOD)DROP SHOT==========================
if (get_val(Aim) && event_press(PS4_RIGHT)){Ds_On_Off=!Ds_On_Off;
    if(Ds_On_Off == TRUE){set_ds4_led(Blue);combo_run(notify_on);}
        if(Ds_On_Off == FALSE){set_ds4_led(White);combo_run(notify_off);}}
              if (Ds_On_Off){
                  if(get_val(Aim)){
                         drop_shot();
        }
          }
/*============TEST MOD(AIM-ASSIST===========================
if (get_val(Aim) && event_press(PS4_SQUARE)){Aim_On_Off=!Aim_On_Off;}
  if (Aim_On_Off){
        set_rumble(RUMBLE_A, 60);
          combo_run(Tap_6);
    }
*/
//================AUTO_STRAFE=============================
if(get_val(Aim) && event_press(PS4_DOWN)){Strafe_On_Off=!Strafe_On_Off;
      if(Strafe_On_Off == TRUE){set_ds4_led(Yellow);combo_run(notify_on);}
            if(Strafe_On_Off == FALSE){set_ds4_led(White);combo_run(notify_off);}}
               if(Strafe_On_Off) {
                   if((get_val(Aim)) && (get_val(Shoot))){           
                          combo_run(AutoStrafe);}
                         else {if (get_val(Shoot)){combo_run(AntiRecoil);}}
    }
//=================STEADY AIM================================
if ((get_val(Aim)) && (event_press(PS4_TRIANGLE))){Steady_On_Off=!Steady_On_Off;
     if(Steady_On_Off == TRUE){set_ds4_led(Green);combo_run(notify_on);}
          if(Steady_On_Off == FALSE){set_ds4_led(White);combo_run(notify_off);}}
             if ((Steady_On_Off)&& get_val(Shoot)) {
                combo_run(Tap_1);
                    combo_run(AntiRecoil);}   
 
//=======================AUTO_RUN============================ // feel free to change value lower if you want to start your sprint sooner, i leave at 99 to prevent problems when sending messages
if((get_val(PS4_LY)) < -99) {
     set_val(PS4_L3, 100);
    }
//=================BUNNY-HOP=================================
if (get_val(Jump)){
    combo_run(bunny_hop);
    }
//=============RESET MODS====================================
if (get_val(Aim) && event_press (PS4_R3)){reset_mods(); combo_run(notify_off); combo_run(rb_active);}   
//====END MAIN===============================================
Tap [2] = Tap[4]+Tap[1];
Tap [3] = 4;
Tap [4] = 40;
Tap [6] = T_1(Tap [3], Tap [2], Tap [0]);
}
//===========COMBO'S=========================================
combo Tap_1 {
    set_val(Shoot, On);
    wait(Tap [4] * Tap [0] - Tap [2]);
    set_val(Shoot, Off);
    wait(Tap [4] * Tap [0] - Tap [2]);
    set_val(Shoot, Off);
    }
combo AutoStrafe {
    strafeRight = Rand(500, 1000);
    set_val(PS4_LX, 40);
    wait(strafeRight);
    strafeLeft = Rand(500, 1000);
    set_val(PS4_LX, inv(40));
    wait(strafeLeft);
    set_val(PS4_LX, 40);
    }
/*combo Tap_6 {
    set_val(Aim, 100);
    wait(70);
    set_val(Aim, 100);
    wait(70);
    set_val(Aim, 100);
   }
 
combo drop_shot {
    set_val(PS4_CIRCLE, 100);
    wait (500);
    set_val(PS4_CIRCLE, 0);
    if ((get_val(PS4_LY) < -90)) {
    set_val(PS4_CIRCLE, 0);
}
}
*/

combo jump_shot { 
     set_val(Jump,60);
     wait (30);
     set_val(PS4_R2,100);
     wait (35);
     set_val(Jump, 0);
     wait (30);
     set_val(PS4_R2,100);
      }
/*
combo JiggleMod {
    set_val(Crouch, Off);
    //set_val(Aim, 20); later add for next update(jitter shot)
    wait(80);
    set_val(Crouch, 90);
    //set_val(Aim, 100);
    wait(80);
    set_val(Crouch, Off);
    //set_val(Aim, 20);
    wait(50);
    set_val(Crouch, 90);
    //set_val(Aim, 20);
    wait(50);
    set_val(Crouch, Off);
   }
   */

combo bunny_hop {
    set_val (Jump, Off);
    wait(110);
    set_val (Jump, On);
    wait(130);
    set_val (Jump, On);
    wait (110);
    }
combo rapid_aim{
    set_val(Shoot, On);
    wait(Tap [6]);
    set_val(Shoot, Off);
    wait(Tap [6]);
    set_val(Shoot, Off);
    }
combo rapid_hip {
    set_val(Shoot, On);
    wait(40);
    set_val(Shoot, Off);
    wait(40);
    set_val(Shoot, Off);
    }
combo rb_active{
    set_ds4_led(2);
    wait(110);
    set_ds4_led(3);
    wait(110);
    set_ds4_led(4);
    wait(110);
    set_ds4_led(5);
    wait(110);
    set_ds4_led(6);
    wait(110);
    set_ds4_led(7);
    wait(110);
    set_ds4_led(8);
    wait(110);
    set_ds4_led(9);
    wait(110);
    set_ds4_led(14);
    }
combo AntiRecoil {
    if(get_val(Shoot)) {
    anti_recoil = get_val(10) + ANTI_RECOIL;
    if(anti_recoil > 100) anti_recoil = 100;
    set_val(10, anti_recoil);
    anti_recoil_left = get_val(9) -ANTI_RECOIL_LEFT;
    if(anti_recoil_left > 100) anti_recoil_left = 100;
    set_val(9, anti_recoil_left);
    anti_recoil_right = get_val(9) +ANTI_RECOIL_RIGHT;
    if(anti_recoil_right > 100) anti_recoil_right = 100;
    set_val(9, anti_recoil_right);
        }
    }
 
combo notify_on {
    set_rumble(RUMBLE_B, 100);
    wait(300);
    reset_rumble();
    wait (1000);
    }
combo notify_off {
    set_rumble(RUMBLE_B, 100);
    wait(300);
    reset_rumble();
    wait (300);
    set_rumble(RUMBLE_B, 100);
    wait(300);
    reset_rumble();
    wait(300);
}
function Rand(min,max){
    Rand = Rand *8403 % 32767;
    if (min>= Off && max >= Off)
    return abs(min + (Rand && (max - min)));
    return min + (Rand % (max - min));
    }
 
function Rapid_FIRE(){
    if((get_val(TRACE_1)) == Off) {
    set_val(TRACE_1, 1);}
    else {set_val(TRACE_1, 1);
    }   
if((get_val(Shoot)) && (get_val(TRACE_1)) == 1) {   
    if(get_val(Aim)) {
    combo_run(rapid_aim);}
    else {combo_run(rapid_hip);
              }
          }
   }
function T_1(Tap_3, Tap_5, Tap_1) {
   return Tap_5 + Tap_3 + Tap_1;
 
}
function set_ds4_led(colour) {
    set_led(LED_1, dbyte(colour * 4));
    set_led(LED_2, dbyte((colour * 4) + 1));
    set_led(LED_3, dbyte((colour * 4) + 2));
    set_led(LED_4, dbyte((colour * 4) + 3));
 
}
function reset_mods(){
    //Jiggle_On_Off = FALSE;
    Rapid_On_Off = FALSE;
    Recoil_On_Off = FALSE;
    Strafe_On_Off = FALSE;
    Steady_On_Off = FALSE;
    }
    /*
    function drop_shot() {
    set_val(PS4_R2, 100);
    set_val(PS4_CIRCLE, 100);
    if (get_val(PS4_L2, 100)){
    set_val(PS4_CIRCLE,0);
    }
    }*/


If you can.. remove auto strafe, and jumpshot
User avatar
josho666
Staff Sergeant
Staff Sergeant
 
Posts: 13
Joined: Sun Nov 10, 2019 9:01 am

Re: Convert

Postby Mad » Tue Dec 03, 2019 7:20 am

Code: Select all
/*+++++++  +++++++++++++++++++++++++++++
H1Z1 :Beta Version 1.02
 
Coded by
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++(lokidagawd)++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ???     ??????   ?? ??? ???? ??????  ???        ?????  ???       ?     ????????? ++
????    ????  ??? ????? ????? ??? ?????????     ??? ?????????    ??? ? ??????? ???+++
????    ????  ????????? ????? ??   ?????  ???   ???????????  ???  ??? ? ?? ???   ??++
????    ???   ?????? ?? ????? ???   ??????????  ???  ???????????? ??? ? ?? ????   ?++
????????? ??????????? ??????? ??????  ??   ???? ???????? ??   ???????????? ??????? ++
? ???  ?? ?????? ? ?? ????    ???  ?  ??   ???? ??   ?  ??   ????? ??? ?   ???  ?  ++
? ? ?  ?  ? ? ?? ? ?? ?? ? ?  ? ?  ?   ?   ?? ?  ?   ?   ?   ?? ?  ? ? ?   ? ?  ?  ++
  ? ?   ? ? ? ?  ? ?? ?  ? ?  ? ?  ?   ?   ?   ? ?   ?   ?   ?     ?   ?   ? ?  ?  ++
    ?  ?    ? ?  ?  ?    ?      ?          ?  ?      ?       ?  ?    ?       ?     ++
                              ?                                            ?      ++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++(lokidagawd)++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+~+~~+~~+~+~++~+~+~+~+~+PLEASE TAKE A SECOND TO READ~+~+~+~+~+~~+~+~+~+~+~+~~+~
 hey everybody, thanks for using my script, ive put alot of work in this and still have much planned in the future.
 if you have any problems or find bugs please report them to me by email at [email protected] or at device.com
 my user there is lokidagawd,there you can also find this script that has swapped the X button for R3 which makes it
 easier for you to jump without taking your finger off your camera stick (basically like stick and move from cod).
 i disabled the EMOTE button in game (up arrow) because its rather annoying when you try to turn on rapid fire in a gun
 fight and have to press circle to back out of the emote screen (plus emotes suck in this game) however if you can't
 live without them you can remedy by commenting out the "unmap 13; portion i have highlighted below, to comment/void
 out a command simple put two forward slashes in front of the code like this // again thanks for downloading and enjoy.
 not that it matters that much but green thumbs ups are inspiring to make a better menu, red thumbs down.... not so much
 please bring your complaints and issues to me directly so i can better fix this script, i cant do it without you all.
 i am still working on a better LED notification system but for now its basic with a single rumble notification for mods on,
 and a double for mods off, with each mod having a single led representation, i will address this but if i spent more time
 on it now you guys suffer, so enjoy whats here now and please leave feedback in the device thread @
if you use any of the code below thats fine, but please dont be a douche, give credit where it's due, we work hard on these script
FOR FREE and having your shit stolen does not inspire more public scripts, god bless you all and stay gaming.
i have some exciting this im working on for next update... STAY TUNED!!!!!!!!!!!!!!!!
device.COM SCRIPT THREAD : https://device.com/forums/showthread ... ost1126204
/**********************************************************
AUTO STRAFE = L2+DOWN        (WORKS WELL WHEN BATTLING MID-RANGE WITH SMG)
ANTI RECOIL = L2+LEFT        (WILL MAKE ALWAYS ON, NEXT UPDATE TO MAKE ROOM FOR MORE)
STEADY AIM = L2 + TRIANGLE   (THIS IS BEST FOR AR'S, YOU NEED TO TAP FIRE THE AK, DO NOT JUST HOLD THE BUTTON DOWN, AR YOU CAN HOLD DOWN FULLY.. STILL WORKING ON THIS)
JUMP SHOT = L2 + RIGHT       (REPLACED JIGGLE MOD) SO OP!!!!!!!!! BEST WITH SHOTGUNS BUT WORKS WELL WITH SMG ALSO
RAPID FIRE = L2+UP           (THIS IS BEST FOR PISTOL'S SMG'S AND SHOTGUN'S, HELLFIRE HAS NO RECOIL WITH THIS AT ALL, CAN HOLD BUTTON DOWN FREELY)
RESET MODS = L2 + R3         (TURNS OFF ALL MODS, IF YOU HAVE DIFFICULTY DRIVING, USE THIS WHEN YOU GET IN A CAR)
AIM ASSIST = L2+ SQUARE      (TEST MODE/BUGGY, WILL RELEASE AT LATER DATE)
/*********************************************************/

//+++++++++++++++++++++++++++++++++MISC DEFINES+++++++++
define ONLY_WITH_SCOPE = TRUE;
define ANTI_RECOIL = 0;     
define ANTI_RECOIL_LEFT = 0
define ANTI_RECOIL_RIGHT = 0;
define Shoot = PS4_R2;
define Aim = PS4_L2;
define Crouch = PS4_CIRCLE;
define Jump = PS4_CROSS;
define Mod_Reset = PS4_R3;
 
//+++++++++++++++++++++COLORS+++ CREDIT device DOCUMENTATION
define Off = 0;
define On = 100;
define Dim_Blue = 1;
define Dim_Red = 2;
define Dim_Green = 3;
define Dim_Pink = 4;
define Dim_SkyBlue = 5;
define Dim_Yellow = 6;
define Dim_White = 7;
define Blue = 8;
define Red = 9;
define Green = 10;
define Pink = 11;
define SkyBlue = 12;
define Yellow = 13;
define White = 14;
define Bright_Blue = 15;
define Bright_Red = 16;
define Bright_Green = 17;
define Bright_Pink = 18;
define Bright_SkyBlue = 19;
define Bright_Yellow = 20;
define Bright_White = 21;
 
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,1, // 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,2, // 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,3  // Bright white
 
);
//+++++++++++++++++++++++++intergers
int Tap[6];
int strafeLeft, strafeRight;
int Rand = 32767;
int anti_recoil;
int anti_recoil_left;
int anti_recoil_right;
int Steady_On_Off = FALSE;
int Strafe_On_Off = FALSE;
int Recoil_On_Off = FALSE;
int Rapid_On_Off = FALSE;
int Jump_On_Off = FALSE;
//int Ds_On_Off = FALSE;
//int Aim_On_Off = FALSE;
//int Jiggle_On_Off = FALSE;
//===========================================================
unmap 13; // comment out if you want to use emote's (it's annoying when its on and setting rapid fire, thats why i have off)
init{
set_ds4_led(White);
Tap[0] = 6;
Tap[1] = 20;
}
main {
//==========================RAPID FIRE=======================
if(get_val(Aim) && event_press(PS4_UP)){
    Rapid_On_Off=!Rapid_On_Off;
        if(Rapid_On_Off == TRUE){set_ds4_led(Red);combo_run(notify_on);}
            if(Rapid_On_Off == FALSE){set_ds4_led(White);combo_run(notify_off);
            if(((Rapid_On_Off == TRUE)&&(Recoil_On_Off == TRUE))&& (Steady_On_Off == TRUE)){set_ds4_led(Bright_SkyBlue);}}}
                if (Rapid_On_Off){
                       Rapid_FIRE();       
    } 
//=============ANTI-RECOIL===================================       
if((get_val(Aim)) && (event_press(PS4_LEFT))){Recoil_On_Off=!Recoil_On_Off;
    if(Recoil_On_Off == TRUE){set_ds4_led(Pink);combo_run(notify_on);}
        if(Recoil_On_Off == FALSE){set_ds4_led(White);combo_run(notify_off);}}
             if (Recoil_On_Off){
                  combo_run(AntiRecoil);
      }
 
/*================Jump Shot==================================
if (get_val(Aim) && event_press(PS4_RIGHT)){Jump_On_Off=!Jump_On_Off;
    if(Jump_On_Off == TRUE){set_ds4_led(Blue);combo_run(notify_on);}
        if(Jump_On_Off == FALSE){set_ds4_led(White);combo_run(notify_off);}}
              if (Jump_On_Off){
              if(get_val(Shoot)){
                         combo_run(jump_shot);
                         }
                         }
 
=============(TEST MOD)DROP SHOT==========================
if (get_val(Aim) && event_press(PS4_RIGHT)){Ds_On_Off=!Ds_On_Off;
    if(Ds_On_Off == TRUE){set_ds4_led(Blue);combo_run(notify_on);}
        if(Ds_On_Off == FALSE){set_ds4_led(White);combo_run(notify_off);}}
              if (Ds_On_Off){
                  if(get_val(Aim)){
                         drop_shot();
        }
          }
/*============TEST MOD(AIM-ASSIST===========================
if (get_val(Aim) && event_press(PS4_SQUARE)){Aim_On_Off=!Aim_On_Off;}
  if (Aim_On_Off){
        set_rumble(RUMBLE_A, 60);
          combo_run(Tap_6);
    }
//================AUTO_STRAFE=============================
if(get_val(Aim) && event_press(PS4_DOWN)){Strafe_On_Off=!Strafe_On_Off;
      if(Strafe_On_Off == TRUE){set_ds4_led(Yellow);combo_run(notify_on);}
            if(Strafe_On_Off == FALSE){set_ds4_led(White);combo_run(notify_off);}}
               if(Strafe_On_Off) {
                   if((get_val(Aim)) && (get_val(Shoot))){           
                          combo_run(AutoStrafe);}
                         else {if (get_val(Shoot)){combo_run(AntiRecoil);}}
    }
*/

//=================STEADY AIM================================
if ((get_val(Aim)) && (event_press(PS4_TRIANGLE))){Steady_On_Off=!Steady_On_Off;
     if(Steady_On_Off == TRUE){set_ds4_led(Green);combo_run(notify_on);}
          if(Steady_On_Off == FALSE){set_ds4_led(White);combo_run(notify_off);}}
             if ((Steady_On_Off)&& get_val(Shoot)) {
                combo_run(Tap_1);
                    combo_run(AntiRecoil);}   
 
//=======================AUTO_RUN============================ // feel free to change value lower if you want to start your sprint sooner, i leave at 99 to prevent problems when sending messages
if((get_val(PS4_LY)) < -99) {
     set_val(PS4_L3, 100);
    }
//=================BUNNY-HOP=================================
if (get_val(Jump)){
    combo_run(bunny_hop);
    }
//=============RESET MODS====================================
if (get_val(Aim) && event_press (PS4_R3)){reset_mods(); combo_run(notify_off); combo_run(rb_active);}   
//====END MAIN===============================================
Tap [2] = Tap[4]+Tap[1];
Tap [3] = 4;
Tap [4] = 40;
Tap [6] = T_1(Tap [3], Tap [2], Tap [0]);
}
//===========COMBO'S=========================================
combo Tap_1 {
    set_val(Shoot, On);
    wait(Tap [4] * Tap [0] - Tap [2]);
    set_val(Shoot, Off);
    wait(Tap [4] * Tap [0] - Tap [2]);
    set_val(Shoot, Off);
    }
/*
combo AutoStrafe {
    strafeRight = f_Rand(500, 1000);
    set_val(PS4_LX, 40);
    wait(strafeRight);
    strafeLeft = f_Rand(500, 1000);
    set_val(PS4_LX, inv(40));
    wait(strafeLeft);
    set_val(PS4_LX, 40);
    }
/*combo Tap_6 {
    set_val(Aim, 100);
    wait(70);
    set_val(Aim, 100);
    wait(70);
    set_val(Aim, 100);
   }
 
combo drop_shot {
    set_val(PS4_CIRCLE, 100);
    wait (500);
    set_val(PS4_CIRCLE, 0);
    if ((get_val(PS4_LY) < -90)) {
    set_val(PS4_CIRCLE, 0);
}
}
 
combo jump_shot { 
     set_val(Jump,60);
     wait (30);
     set_val(PS4_R2,100);
     wait (35);
     set_val(Jump, 0);
     wait (30);
     set_val(PS4_R2,100);
      }
*/

/*
combo JiggleMod {
    set_val(Crouch, Off);
    //set_val(Aim, 20); later add for next update(jitter shot)
    wait(80);
    set_val(Crouch, 90);
    //set_val(Aim, 100);
    wait(80);
    set_val(Crouch, Off);
    //set_val(Aim, 20);
    wait(50);
    set_val(Crouch, 90);
    //set_val(Aim, 20);
    wait(50);
    set_val(Crouch, Off);
   }
   */

combo bunny_hop {
    set_val (Jump, Off);
    wait(110);
    set_val (Jump, On);
    wait(130);
    set_val (Jump, On);
    wait (110);
    }
combo rapid_aim{
    set_val(Shoot, On);
    wait(Tap [6]);
    set_val(Shoot, Off);
    wait(Tap [6]);
    set_val(Shoot, Off);
    }
combo rapid_hip {
    set_val(Shoot, On);
    wait(40);
    set_val(Shoot, Off);
    wait(40);
    set_val(Shoot, Off);
    }
combo rb_active{
    set_ds4_led(2);
    wait(110);
    set_ds4_led(3);
    wait(110);
    set_ds4_led(4);
    wait(110);
    set_ds4_led(5);
    wait(110);
    set_ds4_led(6);
    wait(110);
    set_ds4_led(7);
    wait(110);
    set_ds4_led(8);
    wait(110);
    set_ds4_led(9);
    wait(110);
    set_ds4_led(14);
    }
combo AntiRecoil {
    if(get_val(Shoot)) {
    anti_recoil = get_val(10) + ANTI_RECOIL;
    if(anti_recoil > 100) anti_recoil = 100;
    set_val(10, anti_recoil);
    anti_recoil_left = get_val(9) -ANTI_RECOIL_LEFT;
    if(anti_recoil_left > 100) anti_recoil_left = 100;
    set_val(9, anti_recoil_left);
    anti_recoil_right = get_val(9) +ANTI_RECOIL_RIGHT;
    if(anti_recoil_right > 100) anti_recoil_right = 100;
    set_val(9, anti_recoil_right);
        }
    }
 
combo notify_on {
    set_rumble(RUMBLE_B, 100);
    wait(300);
    reset_rumble();
    wait (1000);
    }
combo notify_off {
    set_rumble(RUMBLE_B, 100);
    wait(300);
    reset_rumble();
    wait (300);
    set_rumble(RUMBLE_B, 100);
    wait(300);
    reset_rumble();
    wait(300);
}
function f_Rand(min,max){
    Rand = Rand *8403 % 32767;
    if (min>= Off && max >= Off)
    return abs(min + (Rand && (max - min)));
    return min + (Rand % (max - min));
    }
 
function Rapid_FIRE(){
    if((get_val(TRACE_1)) == Off) {
    set_val(TRACE_1, 1);}
    else {set_val(TRACE_1, 1);
    }   
if((get_val(Shoot)) && (get_val(TRACE_1)) == 1) {   
    if(get_val(Aim)) {
    combo_run(rapid_aim);}
    else {combo_run(rapid_hip);
              }
          }
   }
function T_1(Tap_3, Tap_5, Tap_1) {
   return Tap_5 + Tap_3 + Tap_1;
 
}
function set_ds4_led(colour) {
    set_led(LED_1, dbyte(colour * 4));
    set_led(LED_2, dbyte((colour * 4) + 1));
    set_led(LED_3, dbyte((colour * 4) + 2));
    set_led(LED_4, dbyte((colour * 4) + 3));
 
}
function reset_mods(){
    //Jiggle_On_Off = FALSE;
    Rapid_On_Off = FALSE;
    Recoil_On_Off = FALSE;
    Strafe_On_Off = FALSE;
    Steady_On_Off = FALSE;
    }
    /*
    function drop_shot() {
    set_val(PS4_R2, 100);
    set_val(PS4_CIRCLE, 100);
    if (get_val(PS4_L2, 100)){
    set_val(PS4_CIRCLE,0);
    }
    }*/
ConsoleTuner Support Team || Discord
Mad
Captain
Captain
 
Posts: 742
Joined: Wed May 22, 2019 5:39 am

Re: Convert

Postby josho666 » Tue Dec 03, 2019 8:12 am

Thanks. This too?

Code: Select all
 
 /*
 = = = = = = = = = = = = = = = = = = =
 = /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\  =
 = /\/\/\  Made By ItzSnack  /\/\/\  =
 = /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\  =
 = = = = = = = = = = = = = = = = = = =
 
 ===============================
 === Cuisine Royale Ultimate ===
 ===============================
 
 ===================
 === Version 1.0 ===
 ===================
 
 ================
 === FEATURES ===
 ================
 Aim Assist
 Aim Abuse
 Auto Run
 Custom Sensitivity
 
 =================
 === Important ===
 ========================================================================
 === Recommended you read all the text below to understand everything ===
 ========================================================================
 
 ======================
 === In-Game Layout ===
 ===========================================
 === Defualt - Can be adjusted in Layout ===
 ===========================================
 
 =====================
 === Reset Toggles ===
 ==================================================
 === OPTIONS/MENU + SHARE/VIEW To Reset Toggles ===
 ==================================================
 
 ===================
 === Toggle Menu ===
 =============================================================================================================
 === Before being able to turn ON/OFF toggles you will have to open the toggle menu by doing the following ===
 === OPTIONS/MENU + D-PAD UP                                                                               ===
 === When ON your LED will flash Rainbow now you able to turn on any features you want                     ===
 === After you done make sure to disable the toggle menu                                                   ===
 === Your LED will be Black when your out of the toggle menu                                               ===
 =============================================================================================================
 
 ===============================================================================
 ===                          TOGGLES YOU CAN ACTIVATE                       ===
 ===============================================================================
 === Hold L2/LT And Press UP For Rapid Fire                                  ===
 === 1 Rumble = ON 2 = OFF                                                   ===
 ===============================================================================
 === Hold L2/LT And Press RIGHT For Aim Abuse                                ===
 === 1 Rumble = ON 2 = OFF                                                   ===
 ===============================================================================
 */

 
    //Layout
    define PS = 0; //XBOX
    define SHARE = 1; //VIEW
    define OPTIONS = 2; //MENU
    define R1 = 3; //RB
    define R2 = 4; //RT
    define R3 = 5; //RS
    define L1 = 6; //LB
    define L2 = 7; //LT
    define L3 = 8; //LS
    define RX = 9;
    define RY = 10;
    define LX = 11;
    define LY = 12;
    define UP = 13;
    define DOWN = 14;
    define LEFT = 15;
    define RIGHT = 16;
    define TRIANGLE = 17; //Y
    define CIRCLE = 18; //B
    define CROSS = 19; //A
    define SQUARE = 20 //X
    define TOUCHPAD = 27;
 
    //Customize
    int Flipped = OFF; //Change OFF TO ON If you play with Flipped Triggers
    int AS = ON; //Change ON TO OFF If you don't want Aim Assist
    int RUN = ON; //Change ON TO OFF If you don't want Auto Run
    int HT = ON; //Change ON TO OFF If you don't want Hair Trigger
    int CS = ON; //Change ON TO OFF If you don't want Custom Sensitivity
 
    //Customize Toggles
    int AB_Toggle = OFF; //Change OFF TO ON If you want Aim Abuse ON By Defualt
    int RF_Toggle = OFF; //Change OFF TO ON If you want Rapid Fire ON By Defualt
 
    //Speed Of Features
    int RF_Speed = 40; //Rapid Fire Speed
    /*NOTE:
    Higher values = Slower
    Lower values = Faster*/

 
    //Custom Sensitivity
    int GEN_SENS = 100;
    int ADS_SENS = 100;
    int FIRE_SENS = 100;
    int ADS_FIRE_SENS = 100;
    /*NOTE:
    Default = 100
    Ranges from 0 to 327*/

 
    //Aim Assist
    int AP = 14;
    int AM = -14;
    int Delay = 20
    int Release = 15;
    /*NOTE:
    Increase AP & AM For more Assist but it can cause shake
    Decrease AP & AM If you feel shake and don't like it
    Release is recommended to be 1 higher than AP & AM*/

 
    //Aim Abuse
    int HOLD = 80;
    int RELEASE = 20;
    /*NOTE:
    Increase HOLD For Slower Zoom in & Out
    Decrease HOLD For Faster Zoom in & Out*/

 
    //Toggles
    int USE_SENS;
    int Remove_Block;
    int Toggle_Menu;
    int Toggle_Rumble;
 
    main {
 
    if(Flipped) {
    swap(R1,R2);
    swap(L1,L2);}
 
    if(CS)
    if(!get_val(7) && !get_val(4)) {
    USE_SENS=GEN_SENS;}
    else if(get_val(7) && !get_val(4)) {
    USE_SENS=ADS_SENS;}   
    else if(!get_val(7) && get_val(4)) {
    USE_SENS=FIRE_SENS;}
    else if(get_val(7) && get_val(4)) {
    USE_SENS=ADS_FIRE_SENS;}
    sensitivity(10,NOT_USE,USE_SENS);
    sensitivity(9,NOT_USE,USE_SENS);
 
    LED(0,0,0,0);
 
    if(HT)
    deadzone(L2,R2,100,100);
 
    if(RUN)
    if(get_val(LY)<-90 && !get_val(L2)) set_val(L3,100)
 
    if(AS)
    if(get_val(L2)) combo_run(AS);
 
    if(AB_Toggle && get_val(L2))
    combo_run(AB); else combo_stop(AB);
 
    if(RF_Toggle && get_val(R2))
    combo_run(RF);
 
    if(get_val(OPTIONS) && event_press(SHARE)) {
    RF_Toggle = OFF;
    AB_Toggle = OFF;
    Toggle_Menu = OFF;
    combo_run(Menu_Rumble);}
 
    if(get_val(OPTIONS) && event_press(UP)) {
    Toggle_Menu=!Toggle_Menu;
    Toggle_Rumble=!Toggle_Rumble;}
    if(Toggle_Rumble)
    combo_run(Menu_Rumble);
 
    if(Toggle_Menu) {
    combo_run(Rainbow_Flash);
 
    if(get_val(L2) && event_press(UP)) {
    RF_Toggle=!RF_Toggle;
    if(RF_Toggle) combo_run(Flash_ON);
    else combo_run(Flash_OFF);}
 
    if(get_val(L2) && event_press(RIGHT)) {
    AB_Toggle=!AB_Toggle;
    if(AB_Toggle) combo_run(Flash_ON);
    else combo_run(Flash_OFF);}
 
    if(get_val(L2)) {
    if(event_press(UP)) {
    Remove_Block=!Remove_Block;}
    if(event_press(RIGHT)) {
    Remove_Block=!Remove_Block;}
    set_val(UP,0);set_val(RIGHT,0);}}
    if(get_val(OPTIONS)) {
    if(event_press(SHARE)) {
    Remove_Block=!Remove_Block;}
    set_val(SHARE,0);}}
 
    combo AS {
    set_val(RY,a_f(RY,AP));
    wait(Delay)
    set_val(RX,a_f(RX,AP));
    wait(Delay)
    set_val(RY,a_f(RY,AM));
    wait(Delay)
    set_val(RX,a_f(RX,AM));
    wait(Delay)}
 
    function a_f(p,m) {
    if(abs(get_val(p)) < Release)
    return m;
    return get_val(p);}
 
    combo AB {
    set_val(L2,100);
    wait(HOLD);
    set_val(L2,0);
    wait(RELEASE);}
 
    combo RF {
    set_val(R2,100);
    wait(40);
    set_val(R2,0);
    wait(RF_Speed);}
 
    combo Menu_Rumble {
    set_rumble(RUMBLE_B,100);
    wait(200);
    reset_rumble();
    Toggle_Rumble = OFF;}
 
    combo Rainbow_Flash {
    LED(2,0,2,0);
    wait(100);
    LED(0,0,0,0);
    wait(100);
    LED(0,0,0,2);
    wait(100);
    LED(0,0,0,0);
    wait(100);
    LED(0,2,2,0);
    wait(100);
    LED(0,0,0,0);
    wait(100);}
 
    combo Flash_ON {
    LED(0,0,2,0);
    set_rumble(RUMBLE_A,100);
    wait(400);
    reset_rumble();
    reset_leds();}
 
    combo Flash_OFF {
    LED(0,2,0,0);
    set_rumble(RUMBLE_B,100);
    wait(200);
    reset_rumble();
    LED(0,0,0,0);
    wait(100);
    set_rumble(RUMBLE_B,100);
    LED(0,2,0,0);
    wait(200);
    reset_rumble();
    reset_leds();}
 
    function LED(a,b,c,d) {
    set_led(LED_1,a);
    set_led(LED_2,b);
    set_led(LED_3,c);
    set_led(LED_4,d);}
 
    define ON = TRUE;
    define OFF = FALSE;
User avatar
josho666
Staff Sergeant
Staff Sergeant
 
Posts: 13
Joined: Sun Nov 10, 2019 9:01 am

Re: Convert

Postby Mad » Tue Dec 03, 2019 8:50 am

Code: Select all
 
 /*
 = = = = = = = = = = = = = = = = = = =
 = /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\  =
 = /\/\/\  Made By ItzSnack  /\/\/\  =
 = /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\  =
 = = = = = = = = = = = = = = = = = = =
 
 ===============================
 === Cuisine Royale Ultimate ===
 ===============================
 
 ===================
 === Version 1.0 ===
 ===================
 
 ================
 === FEATURES ===
 ================
 Aim Assist
 Aim Abuse
 Auto Run
 Custom Sensitivity
 
 =================
 === Important ===
 ========================================================================
 === Recommended you read all the text below to understand everything ===
 ========================================================================
 
 ======================
 === In-Game Layout ===
 ===========================================
 === Defualt - Can be adjusted in Layout ===
 ===========================================
 
 =====================
 === Reset Toggles ===
 ==================================================
 === OPTIONS/MENU + SHARE/VIEW To Reset Toggles ===
 ==================================================
 
 ===================
 === Toggle Menu ===
 =============================================================================================================
 === Before being able to turn ON/OFF toggles you will have to open the toggle menu by doing the following ===
 === OPTIONS/MENU + D-PAD UP                                                                               ===
 === When ON your LED will flash Rainbow now you able to turn on any features you want                     ===
 === After you done make sure to disable the toggle menu                                                   ===
 === Your LED will be Black when your out of the toggle menu                                               ===
 =============================================================================================================
 
 ===============================================================================
 ===                          TOGGLES YOU CAN ACTIVATE                       ===
 ===============================================================================
 === Hold L2/LT And Press UP For Rapid Fire                                  ===
 === 1 Rumble = ON 2 = OFF                                                   ===
 ===============================================================================
 === Hold L2/LT And Press RIGHT For Aim Abuse                                ===
 === 1 Rumble = ON 2 = OFF                                                   ===
 ===============================================================================
 */

 
    define ON = TRUE;
    define OFF = FALSE;
 
    //Layout
    define PS = 0; //XBOX
    define SHARE = 1; //VIEW
    define OPTIONS = 2; //MENU
    define R1 = 3; //RB
    define R2 = 4; //RT
    define R3 = 5; //RS
    define L1 = 6; //LB
    define L2 = 7; //LT
    define L3 = 8; //LS
    define RX = 9;
    define RY = 10;
    define LX = 11;
    define LY = 12;
    define UP = 13;
    define DOWN = 14;
    define LEFT = 15;
    define RIGHT = 16;
    define TRIANGLE = 17; //Y
    define CIRCLE = 18; //B
    define CROSS = 19; //A
    define SQUARE = 20; //X
    define TOUCHPAD = 27;
 
    //Customize
    int Flipped = OFF; //Change OFF TO ON If you play with Flipped Triggers
    int AS = ON; //Change ON TO OFF If you don't want Aim Assist
    int RUN = ON; //Change ON TO OFF If you don't want Auto Run
    int HT = ON; //Change ON TO OFF If you don't want Hair Trigger
    int CS = ON; //Change ON TO OFF If you don't want Custom Sensitivity
 
    //Customize Toggles
    int AB_Toggle = OFF; //Change OFF TO ON If you want Aim Abuse ON By Defualt
    int RF_Toggle = OFF; //Change OFF TO ON If you want Rapid Fire ON By Defualt
 
    //Speed Of Features
    int RF_Speed = 40; //Rapid Fire Speed
    /*NOTE:
    Higher values = Slower
    Lower values = Faster*/

 
    //Custom Sensitivity
    int GEN_SENS = 100;
    int ADS_SENS = 100;
    int FIRE_SENS = 100;
    int ADS_FIRE_SENS = 100;
    /*NOTE:
    Default = 100
    Ranges from 0 to 327*/

 
    //Aim Assist
    int AP = 14;
    int AM = -14;
    int Delay = 20;
    int Release = 15;
    /*NOTE:
    Increase AP & AM For more Assist but it can cause shake
    Decrease AP & AM If you feel shake and don't like it
    Release is recommended to be 1 higher than AP & AM*/

 
    //Aim Abuse
    int HOLD = 80;
    int RELEASE = 20;
    /*NOTE:
    Increase HOLD For Slower Zoom in & Out
    Decrease HOLD For Faster Zoom in & Out*/

 
    //Toggles
    int USE_SENS;
    int Remove_Block;
    int Toggle_Menu;
    int Toggle_Rumble;
 
    main {
 
    if(Flipped) {
    swap(R1,R2);
    swap(L1,L2);}
 
    if(CS)
    if(!get_val(7) && !get_val(4)) {
    USE_SENS=GEN_SENS;}
    else if(get_val(7) && !get_val(4)) {
    USE_SENS=ADS_SENS;}   
    else if(!get_val(7) && get_val(4)) {
    USE_SENS=FIRE_SENS;}
    else if(get_val(7) && get_val(4)) {
    USE_SENS=ADS_FIRE_SENS;}
    sensitivity(10,NOT_USE,USE_SENS);
    sensitivity(9,NOT_USE,USE_SENS);
 
    LED(0,0,0,0);
 
    if(HT)
    deadzone(L2,R2,100,100);
 
    if(RUN)
    if(get_val(LY)<-90 && !get_val(L2)) set_val(L3,100)
 
    if(AS)
    if(get_val(L2)) combo_run(cAS);
 
    if(AB_Toggle && get_val(L2))
    combo_run(AB); else combo_stop(AB);
 
    if(RF_Toggle && get_val(R2))
    combo_run(RF);
 
    if(get_val(OPTIONS) && event_press(SHARE)) {
    RF_Toggle = OFF;
    AB_Toggle = OFF;
    Toggle_Menu = OFF;
    combo_run(Menu_Rumble);}
 
    if(get_val(OPTIONS) && event_press(UP)) {
    Toggle_Menu=!Toggle_Menu;
    Toggle_Rumble=!Toggle_Rumble;}
    if(Toggle_Rumble)
    combo_run(Menu_Rumble);
 
    if(Toggle_Menu) {
    combo_run(Rainbow_Flash);
 
    if(get_val(L2) && event_press(UP)) {
    RF_Toggle=!RF_Toggle;
    if(RF_Toggle) combo_run(Flash_ON);
    else combo_run(Flash_OFF);}
 
    if(get_val(L2) && event_press(RIGHT)) {
    AB_Toggle=!AB_Toggle;
    if(AB_Toggle) combo_run(Flash_ON);
    else combo_run(Flash_OFF);}
 
    if(get_val(L2)) {
    if(event_press(UP)) {
    Remove_Block=!Remove_Block;}
    if(event_press(RIGHT)) {
    Remove_Block=!Remove_Block;}
    set_val(UP,0);set_val(RIGHT,0);}}
    if(get_val(OPTIONS)) {
    if(event_press(SHARE)) {
    Remove_Block=!Remove_Block;}
    set_val(SHARE,0);}}
 
    combo cAS {
    set_val(RY,a_f(RY,AP));
    wait(Delay)
    set_val(RX,a_f(RX,AP));
    wait(Delay)
    set_val(RY,a_f(RY,AM));
    wait(Delay)
    set_val(RX,a_f(RX,AM));
    wait(Delay)}
 
    combo AB {
    set_val(L2,100);
    wait(HOLD);
    set_val(L2,0);
    wait(RELEASE);}
 
    combo RF {
    set_val(R2,100);
    wait(40);
    set_val(R2,0);
    wait(RF_Speed);}
 
    combo Menu_Rumble {
    set_rumble(RUMBLE_B,100);
    wait(200);
    reset_rumble();
    Toggle_Rumble = OFF;}
 
    combo Rainbow_Flash {
    LED(2,0,2,0);
    wait(100);
    LED(0,0,0,0);
    wait(100);
    LED(0,0,0,2);
    wait(100);
    LED(0,0,0,0);
    wait(100);
    LED(0,2,2,0);
    wait(100);
    LED(0,0,0,0);
    wait(100);}
 
    combo Flash_ON {
    LED(0,0,2,0);
    set_rumble(RUMBLE_A,100);
    wait(400);
    reset_rumble();
    reset_leds();}
 
    combo Flash_OFF {
    LED(0,2,0,0);
    set_rumble(RUMBLE_B,100);
    wait(200);
    reset_rumble();
    LED(0,0,0,0);
    wait(100);
    set_rumble(RUMBLE_B,100);
    LED(0,2,0,0);
    wait(200);
    reset_rumble();
    reset_leds();}
 
    function a_f(p,m) {
    if(abs(get_val(p)) < Release)
    return m;
    return get_val(p);}
 
    function LED(a,b,c,d) {
    set_led(LED_1,a);
    set_led(LED_2,b);
    set_led(LED_3,c);
    set_led(LED_4,d);}
ConsoleTuner Support Team || Discord
Mad
Captain
Captain
 
Posts: 742
Joined: Wed May 22, 2019 5:39 am


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 10 guests