Convert xronusmax script to titan two

Gtuner IV general support. Operation, questions, updates, feature request.

Convert xronusmax script to titan two

Postby nightfox_exe » Sun May 12, 2019 7:07 am

Hi Guys,

Can anyone please help me convert the below device script to titan 2:
Code: Select all
// GPC Online Library
// red_dead_redemption_2_(rdr2)_headshot/spamaim/pvpsprint/deadeyetoggle.gpc
 
// Script was modified by * Script Manipulator *  ver.14.0 | on date : 4/5/2019 11:11:04 PM
//Script was modified by * Script Manipulator * ver.14.0 /on date: time:
define off   = 1;
define MEDIUM  = 2;
define Standard    = 3;
define shot = 4;
define WAIT_MEDIUM  = 140;
define Off            = 1;
define Yellow           = 2;
define Red            = 3;
define Green = 4;
define WHITE = 8;
 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
 
data (1,
0,0,0,0, // 1.  Off
0,2,2,0, // 2.  Blue
0,2,0,0, // 3.  Red
0,0,2,0, // 4. Green
0,0,0,2, // 5. Pink                               
2,0,2,0, // 6. SkyBlue
0,2,2,0, // 7. Yellow
2,2,2,2  // 8. White
);
 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
int Col_ind;               // For device color
int Button;                // For Spam Button
int Time_value;            // For Spam Button
int wx_v,wy_v;             // For Weapon selection
int Melee_onoff;           // For Melee Spam
int Lasso_onoff;           // For Cut the Rope Spam
int crouch_onoff = FALSE;
 
 
int BTN_Tap;               // For Double Tap
int Timer; 
int dive_onoff;
 
int slot;
int eye_onoff;
int flatfoot = TRUE;
int colour_led = 8;
 
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
remap PS4_TOUCH -> PS4_R1;
unmap PS4_TOUCH;
 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
main
{
 
 
if (get_val(PS4_DOWN) && get_ptime(PS4_DOWN) >= 1500)
    {
    load_slot(1);
    }
 
if (get_val(PS4_UP) && get_ptime(PS4_UP) >= 1500)
    {
    load_slot(2);
    }
 
if((get_val(PS4_L2)) && (get_val(PS4_R1)) && (event_release(PS4_CROSS)))
    {
    load_slot(5);
    }           
 
if((get_val(PS4_L2)) && (get_val(PS4_R1)) && (get_val(PS4_RIGHT) && get_ptime(PS4_RIGHT) >= 500) && event_release(PS4_CIRCLE))
        {
    load_slot(5);
    }
 
 
if (get_val(PS4_R1) && get_ptime(PS4_R1) >= 500    && get_val(PS4_L1) && get_ptime(PS4_L1) >= 500)
                {
        load_slot(9);
        }
 
if (get_val(PS4_L2) == 100)
   {combo_stop(aimStandard2);
   set_val(PS4_L2,100);
   }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///timer////////////////////// 
 
if (Timer > 0)
    {
        Timer = Timer - get_rtime();
            if(Timer <= 0) BTN_Tap = FALSE;
    } 
 
///////////////////////Hair Trigger/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
if(get_val(PS4_R2) >= 85)
    {
        set_val(PS4_L2, 100);
    }
 
 
 if(get_val(PS4_R2) <= 85 && get_val(PS4_R2 >= 5 ))
    {
        set_val(PS4_R2, 85);
    }
///////////////////////////////////////////////////////////////////////////////////////////////////       
if(get_val(PS4_L2) == 100 && event_press(PS4_SQUARE))
    {
   dive_onoff = !dive_onoff
   }
 
 
if (dive_onoff)
{   
 if(event_release(PS4_L2))
  {
  combo_run(dive);
   }     
 } 
 
////////////////////////////////////////////////////////////////////////////////////////
 
 
 
 if(event_press(PS4_L3))
   {
   combo_run(holdd);
   crouch_onoff = TRUE;
   flatfoot = FALSE;
  combo_stop(PVPSPRINT);
    }
 if(event_press(PS4_CIRCLE) && crouch_onoff = TRUE)
   {
   combo_stop(holdd);
   combo_stop(crouch);
   flatfoot = TRUE;
    }   
 
 
////////////////////////////////////////////////////////////////////////////////////
if (flatfoot)
{
 
if ((abs(get_val(PS4_LY)) < 30) && (abs(get_val(PS4_LX)) < 30))
        {
        set_val(PS4_LY, 0);
        }
 
 
if ((abs(get_val(PS4_LY)) < 30) && (abs(get_val(PS4_LX)) < 30))
        {
        set_val(PS4_LX, 0);
        }
 
 
if ((abs(get_val(PS4_LY)) > 90) || (abs(get_val(PS4_LX)) > 90))
   {
   combo_run(PVPSPRINT)
   }       
 
}
 
 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  // Switch Weapons - Hold L1 and press: 
 
 
if(get_val(PS4_L1))
    {
            // TRIANGLE/Y for pistol
            if(event_press(PS4_TRIANGLE))
            {
                wx_v = 0; wy_v = -100;
            }
 
            // SQUARE/X for 9 o'clock weapon
            if(event_press(PS4_SQUARE))
            {
                wx_v = -100; wy_v =  0;
            }
 
            // CROSS/A for 6 o'clock weapon
            if(event_press(PS4_CROSS))
            {
                wx_v =  0; wy_v = 100;
            }
 
            // CIRCLE/B for knife
            if(event_press(PS4_CIRCLE))
            {
                wx_v = 75; wy_v = 75;
            }
 
            // DOWN for lasso
            if(event_press(PS4_DOWN))
            {
                wx_v = -75; wy_v = 75;
            }
 
                    if(wx_v || wy_v)
                    {
                        combo_run(WEAPON);
                    }
if(get_val(PS4_TRIANGLE) && (get_ptime(PS4_TRIANGLE) >= 500))
    {
        set_val(PS4_TRIANGLE, 100);
    }
        else{set_val(PS4_TRIANGLE, 0);}
 
    set_val(PS4_SQUARE, 0);
    set_val(PS4_CROSS, 0);
    set_val(PS4_CIRCLE, 0);
    set_val(PS4_DOWN, 0);
    }
 
 
 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
 
if((get_val(PS4_CIRCLE) && get_ptime(PS4_CIRCLE) >= 150))
        {
            Melee_onoff = TRUE;
        }
 
 
    if(event_release(PS4_CIRCLE))
    {
        Melee_onoff = FALSE;
    }
 
    if(Melee_onoff)
    {
        Button = PS4_CIRCLE;
        Time_value = 50;
 
        if(get_val(PS4_CIRCLE))
        {
            combo_run(Spam);
            combo_run(Flash);
        }
            else
            {
                combo_stop(Spam);
                combo_stop(Flash);
            }
    }
 
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
 
if((get_val(PS4_SQUARE) && get_ptime(PS4_SQUARE) >= 150))
        {
            Lasso_onoff = TRUE;
 
        }
 
 
    if(event_release(PS4_SQUARE))
    {
        Lasso_onoff = FALSE;
    }
 
    if(Lasso_onoff)
    {
        Button = PS4_SQUARE;
        Time_value = 50;
 
        if(get_val(PS4_SQUARE))
        {
            combo_run(Spam);
            combo_run(Flash);
        }
            else
            {
                combo_stop(Spam);
                combo_stop(Flash);
            }
    }
 
 
 
 
 
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 //keeps r2 spam if L2 slightly presses but holds aim if l2 presses 100%
 
 
 if (get_val(PS4_L2)< 56 && get_val(PS4_L2) > 5)
     {
    set_val(PS4_L2,55)
    }
 
 
if (combo_running(aim))
            {set_val(PS4_L2,100);
            combo_stop(aimStandard2);
            combo_stop(shootStandard);}
 
  if (get_val(PS4_L2) == 55 && (get_val(PS4_R2) <= 90))
      {
   combo_run(aimStandard2)
       }
 
 if (get_val(PS4_L2) == 100 && (get_val(PS4_R2) > 90))
        {
        combo_stop(aimStandard2);
        set_val(PS4_L2,100);
                    }
 
 
 
  if (get_val(PS4_R2) == 100 &&  get_val(PS4_L2) == 100)
        {
        combo_run(shootStandard);
        }
 
 
 
 
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////sets the r1 to acts as a r2 and get a headshot on the press
 
 if (get_val(PS4_L2) && event_press(PS4_RIGHT))
          {eye_onoff = !eye_onoff}
 
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
{
if (!eye_onoff)
{
 colour_led(7);
if(get_val(PS4_L2)){  // If A / Cross is held...
   // combo_stop(AimFind);   
        if(event_press(PS4_R1)){  // When first pressed....
            set_val(PS4_R2, 0);
            set_val(PS4_L2, 100);
             if(!eye_onoff)
                   combo_run(aim);// Run combo single jump
        }
        block(PS4_R2, 600); // Block the forwarding of A / Cross from the controller for 500 ms
         if (event_release(PS4_R2))
               {set_val(PS4_R2,0)}         // Block the forwarding of A / Cross from the controller for 500 ms
 
  }
 
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if (eye_onoff)
{
combo_run(Flash2);
if(get_val(PS4_L2)){  // If A / Cross is held...
   // combo_stop(AimFind);   
        if(event_press(PS4_R1)){  // When first pressed....
            set_val(PS4_R2, 0);
            set_val(PS4_L2, 100);
             if(eye_onoff)
                   combo_run(aim2);// Run combo single jump
        }
        block(PS4_R2, 600); // Block the forwarding of A / Cross from the controller for 500 ms
         if (event_release(PS4_R2))
               {set_val(PS4_R2,0)}         // Block the forwarding of A / Cross from the controller for 500 ms
 
  }
 
 
 
}
}
 
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
}
 
combo holdd
{
set_val(PS4_CROSS,100)
wait(4000);
set_val(PS4_CROSS,100)
wait(4000);
set_val(PS4_CROSS,100)
wait(4000);
set_val(PS4_CROSS,100)
wait(4000);
}
 
combo aim2{
set_val(PS4_L2,100);
set_val(PS4_RY,-100);
wait(150);
set_val(PS4_L2,100);
set_val(PS4_RY,0)
wait(200)/// Change this value for medium range
set_val(PS4_L2,100);
set_val(PS4_R2,100);
wait(60);
set_val(PS4_L2,100);
set_val(PS4_RY,100);
wait(155);
set_val(PS4_L2,100);
set_val(PS4_R2,100);
wait(40);
}
 
 combo Flash2 {
    colour_led(0);
    wait(300);
    colour_led(3);
    wait(300);
    }
 
combo PVPSPRINT
{
set_val(PS4_CROSS, 100);
wait(40);
set_val(PS4_CROSS, 0);
wait(40);
}
 
combo aim {
set_val(PS4_R3,100);
set_val(PS4_L2,100);
set_val(PS4_RY,-100);
wait(150);
set_val(PS4_L2,100);
set_val(PS4_RY,0)
wait(200)/// Change this value for medium range
set_val(PS4_L2,100);
set_val(PS4_R2,100);
wait(60);
set_val(PS4_L2,100);
set_val(PS4_RY,100);
wait(155);
set_val(PS4_R3,100);
set_val(PS4_L2,100);
set_val(PS4_R2,100);
wait(40);
}
 
combo aimStandard2
{
set_val(PS4_L2,100);
wait(180);
set_val(PS4_L2,0);
wait(50);
}
 
 
combo shootStandard
 {
 set_val(PS4_L2,100);
 set_val(PS4_R2,100);
wait(120);
set_val(PS4_L2,0);
set_val(PS4_R2,0);
wait(50);
set_val(PS4_L2,0);
set_val(PS4_R2,0);
 }
 
 
 combo crouch
 {
if (get_val(PS4_L2, 100))
    {set_val(PS4_L3, 100);}
    else
        set_val(PS4_L3, 0);
 combo_stop(crouch);
 }
 
 
 
combo Spam
 {
  wait(Time_value);
    set_val(Button, 0);
    wait(Time_value);
 }
 
combo Flash
{
    wait(500);
    colour_led(WHITE);
    wait(500);
}
 
combo dive
{set_val(PS4_L2,100)
 set_val(PS4_SQUARE,100)
 wait(500);
 set_val(PS4_L2,0)
 set_val(PS4_SQUARE,0)
 wait(80);}
 
 
combo WEAPON
{
    set_val(PS4_RX,wx_v);
    set_val(PS4_RY,wy_v);
    wait(200);
    set_val(PS4_RX,wx_v);
    set_val(PS4_RY,wy_v);
    wait(40);
    wx_v = 0;
    wy_v = 0;
}
 
 
 
 
function colour_led(Colour) {  // COLOR LED function
    Col_ind=(Colour*4) - 3;
    set_led(LED_1,dbyte(Col_ind));
    set_led(LED_2,dbyte(Col_ind + 1));
    set_led(LED_3,dbyte(Col_ind + 2));
    set_led(LED_4,dbyte(Col_ind + 3));
}
 
 
 
 
User avatar
nightfox_exe
Private First Class
Private First Class
 
Posts: 3
Joined: Mon Dec 31, 2018 1:16 pm

Re: Convert xronusmax script to titan two

Postby J2Kbr » Sun May 12, 2019 10:45 am

Converted and errors fixed:
Code: Select all
#include <titanone.gph> 
 
// GPC Online Library
// red_dead_redemption_2_(rdr2)_headshot/spamaim/pvpsprint/deadeyetoggle.gpc
 
// Script was modified by * Script Manipulator *  ver.14.0 | on date : 4/5/2019 11:11:04 PM
//Script was modified by * Script Manipulator * ver.14.0 /on date: time:
define off   = 1;
define MEDIUM  = 2;
define Standard    = 3;
define shot = 4;
define WAIT_MEDIUM  = 140;
define Off            = 1;
define Yellow           = 2;
define Red            = 3;
define Green = 4;
define WHITE = 8;
 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
 
data (1,
0,0,0,0, // 1.  Off
0,2,2,0, // 2.  Blue
0,2,0,0, // 3.  Red
0,0,2,0, // 4. Green
0,0,0,2, // 5. Pink                               
2,0,2,0, // 6. SkyBlue
0,2,2,0, // 7. Yellow
2,2,2,2  // 8. White
);
 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
int Col_ind;               // For device color
int Button;                // For Spam Button
int Time_value;            // For Spam Button
int wx_v,wy_v;             // For Weapon selection
int Melee_onoff;           // For Melee Spam
int Lasso_onoff;           // For Cut the Rope Spam
int crouch_onoff = FALSE;
 
 
int BTN_Tap;               // For Double Tap
int Timer; 
int dive_onoff;
 
int slot;
int eye_onoff;
int flatfoot = TRUE;
int colour_led = 8;
 
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
remap PS4_TOUCH -> PS4_R1;
unmap PS4_TOUCH;
 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
main
{
 
 
if (get_val(PS4_DOWN) && get_ptime(PS4_DOWN) >= 1500)
    {
    load_slot(1);
    }
 
if (get_val(PS4_UP) && get_ptime(PS4_UP) >= 1500)
    {
    load_slot(2);
    }
 
if((get_val(PS4_L2)) && (get_val(PS4_R1)) && (event_release(PS4_CROSS)))
    {
    load_slot(5);
    }           
 
if((get_val(PS4_L2)) && (get_val(PS4_R1)) && (get_val(PS4_RIGHT) && get_ptime(PS4_RIGHT) >= 500) && event_release(PS4_CIRCLE))
        {
    load_slot(5);
    }
 
 
if (get_val(PS4_R1) && get_ptime(PS4_R1) >= 500    && get_val(PS4_L1) && get_ptime(PS4_L1) >= 500)
                {
        load_slot(9);
        }
 
if (get_val(PS4_L2) == 100)
   {combo_stop(aimStandard2);
   set_val(PS4_L2,100);
   }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///timer////////////////////// 
 
if (Timer > 0)
    {
        Timer = Timer - get_rtime();
            if(Timer <= 0) BTN_Tap = FALSE;
    } 
 
///////////////////////Hair Trigger/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
if(get_val(PS4_R2) >= 85)
    {
        set_val(PS4_L2, 100);
    }
 
 
 if(get_val(PS4_R2) <= 85 && get_val(PS4_R2 >= 5 ))
    {
        set_val(PS4_R2, 85);
    }
///////////////////////////////////////////////////////////////////////////////////////////////////       
if(get_val(PS4_L2) == 100 && event_press(PS4_SQUARE))
    {
   dive_onoff = !dive_onoff;
   }
 
 
if (dive_onoff)
{   
 if(event_release(PS4_L2))
  {
  combo_run(dive);
   }     
 } 
 
////////////////////////////////////////////////////////////////////////////////////////
 
 
 
 if(event_press(PS4_L3))
   {
   combo_run(holdd);
   crouch_onoff = TRUE;
   flatfoot = FALSE;
  combo_stop(PVPSPRINT);
    }
 if(event_press(PS4_CIRCLE) && crouch_onoff)
   {
   combo_stop(holdd);
   combo_stop(crouch);
   flatfoot = TRUE;
    }   
 
 
////////////////////////////////////////////////////////////////////////////////////
if (flatfoot)
{
 
if ((abs(get_val(PS4_LY)) < 30) && (abs(get_val(PS4_LX)) < 30))
        {
        set_val(PS4_LY, 0);
        }
 
 
if ((abs(get_val(PS4_LY)) < 30) && (abs(get_val(PS4_LX)) < 30))
        {
        set_val(PS4_LX, 0);
        }
 
 
if ((abs(get_val(PS4_LY)) > 90) || (abs(get_val(PS4_LX)) > 90))
   {
   combo_run(PVPSPRINT);
   }       
 
}
 
 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  // Switch Weapons - Hold L1 and press: 
 
 
if(get_val(PS4_L1))
    {
            // TRIANGLE/Y for pistol
            if(event_press(PS4_TRIANGLE))
            {
                wx_v = 0; wy_v = -100;
            }
 
            // SQUARE/X for 9 o'clock weapon
            if(event_press(PS4_SQUARE))
            {
                wx_v = -100; wy_v =  0;
            }
 
            // CROSS/A for 6 o'clock weapon
            if(event_press(PS4_CROSS))
            {
                wx_v =  0; wy_v = 100;
            }
 
            // CIRCLE/B for knife
            if(event_press(PS4_CIRCLE))
            {
                wx_v = 75; wy_v = 75;
            }
 
            // DOWN for lasso
            if(event_press(PS4_DOWN))
            {
                wx_v = -75; wy_v = 75;
            }
 
                    if(wx_v || wy_v)
                    {
                        combo_run(WEAPON);
                    }
if(get_val(PS4_TRIANGLE) && (get_ptime(PS4_TRIANGLE) >= 500))
    {
        set_val(PS4_TRIANGLE, 100);
    }
        else{set_val(PS4_TRIANGLE, 0);}
 
    set_val(PS4_SQUARE, 0);
    set_val(PS4_CROSS, 0);
    set_val(PS4_CIRCLE, 0);
    set_val(PS4_DOWN, 0);
    }
 
 
 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
 
if((get_val(PS4_CIRCLE) && get_ptime(PS4_CIRCLE) >= 150))
        {
            Melee_onoff = TRUE;
        }
 
 
    if(event_release(PS4_CIRCLE))
    {
        Melee_onoff = FALSE;
    }
 
    if(Melee_onoff)
    {
        Button = PS4_CIRCLE;
        Time_value = 50;
 
        if(get_val(PS4_CIRCLE))
        {
            combo_run(Spam);
            combo_run(Flash);
        }
            else
            {
                combo_stop(Spam);
                combo_stop(Flash);
            }
    }
 
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
 
if((get_val(PS4_SQUARE) && get_ptime(PS4_SQUARE) >= 150))
        {
            Lasso_onoff = TRUE;
 
        }
 
 
    if(event_release(PS4_SQUARE))
    {
        Lasso_onoff = FALSE;
    }
 
    if(Lasso_onoff)
    {
        Button = PS4_SQUARE;
        Time_value = 50;
 
        if(get_val(PS4_SQUARE))
        {
            combo_run(Spam);
            combo_run(Flash);
        }
            else
            {
                combo_stop(Spam);
                combo_stop(Flash);
            }
    }
 
 
 
 
 
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 //keeps r2 spam if L2 slightly presses but holds aim if l2 presses 100%
 
 
 if (get_val(PS4_L2)< 56 && get_val(PS4_L2) > 5)
     {
    set_val(PS4_L2,55);
    }
 
 
if (combo_running(aim))
            {set_val(PS4_L2,100);
            combo_stop(aimStandard2);
            combo_stop(shootStandard);}
 
  if (get_val(PS4_L2) == 55 && (get_val(PS4_R2) <= 90))
      {
   combo_run(aimStandard2);
       }
 
 if (get_val(PS4_L2) == 100 && (get_val(PS4_R2) > 90))
        {
        combo_stop(aimStandard2);
        set_val(PS4_L2,100);
                    }
 
 
 
  if (get_val(PS4_R2) == 100 &&  get_val(PS4_L2) == 100)
        {
        combo_run(shootStandard);
        }
 
 
 
 
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////sets the r1 to acts as a r2 and get a headshot on the press
 
 if (get_val(PS4_L2) && event_press(PS4_RIGHT))
          {eye_onoff = !eye_onoff;}
 
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
{
if (!eye_onoff)
{
 colour_led_f(7);
if(get_val(PS4_L2)){  // If A / Cross is held...
   // combo_stop(AimFind);   
        if(event_press(PS4_R1)){  // When first pressed....
            set_val(PS4_R2, 0);
            set_val(PS4_L2, 100);
             if(!eye_onoff)
                   combo_run(aim);// Run combo single jump
        }
        block(PS4_R2, 600); // Block the forwarding of A / Cross from the controller for 500 ms
         if (event_release(PS4_R2))
               {set_val(PS4_R2,0);}         // Block the forwarding of A / Cross from the controller for 500 ms
 
  }
 
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if (eye_onoff)
{
combo_run(Flash2);
if(get_val(PS4_L2)){  // If A / Cross is held...
   // combo_stop(AimFind);   
        if(event_press(PS4_R1)){  // When first pressed....
            set_val(PS4_R2, 0);
            set_val(PS4_L2, 100);
             if(eye_onoff)
                   combo_run(aim2);// Run combo single jump
        }
        block(PS4_R2, 600); // Block the forwarding of A / Cross from the controller for 500 ms
         if (event_release(PS4_R2))
               {set_val(PS4_R2,0);}         // Block the forwarding of A / Cross from the controller for 500 ms
 
  }
 
 
 
}
}
 
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
}
 
combo holdd
{
set_val(PS4_CROSS,100);
wait(4000);
set_val(PS4_CROSS,100);
wait(4000);
set_val(PS4_CROSS,100);
wait(4000);
set_val(PS4_CROSS,100);
wait(4000);
}
 
combo aim2{
set_val(PS4_L2,100);
set_val(PS4_RY,-100);
wait(150);
set_val(PS4_L2,100);
set_val(PS4_RY,0);
wait(200);/// Change this value for medium range
set_val(PS4_L2,100);
set_val(PS4_R2,100);
wait(60);
set_val(PS4_L2,100);
set_val(PS4_RY,100);
wait(155);
set_val(PS4_L2,100);
set_val(PS4_R2,100);
wait(40);
}
 
 combo Flash2 {
    colour_led_f(0);
    wait(300);
    colour_led_f(3);
    wait(300);
    }
 
combo PVPSPRINT
{
set_val(PS4_CROSS, 100);
wait(40);
set_val(PS4_CROSS, 0);
wait(40);
}
 
combo aim {
set_val(PS4_R3,100);
set_val(PS4_L2,100);
set_val(PS4_RY,-100);
wait(150);
set_val(PS4_L2,100);
set_val(PS4_RY,0);
wait(200);/// Change this value for medium range
set_val(PS4_L2,100);
set_val(PS4_R2,100);
wait(60);
set_val(PS4_L2,100);
set_val(PS4_RY,100);
wait(155);
set_val(PS4_R3,100);
set_val(PS4_L2,100);
set_val(PS4_R2,100);
wait(40);
}
 
combo aimStandard2
{
set_val(PS4_L2,100);
wait(180);
set_val(PS4_L2,0);
wait(50);
}
 
 
combo shootStandard
 {
 set_val(PS4_L2,100);
 set_val(PS4_R2,100);
wait(120);
set_val(PS4_L2,0);
set_val(PS4_R2,0);
wait(50);
set_val(PS4_L2,0);
set_val(PS4_R2,0);
 }
 
 
 combo crouch
 {
if (get_val(PS4_L2))
    {set_val(PS4_L3, 100);}
    else
        set_val(PS4_L3, 0);
 combo_stop(crouch);
 }
 
 
 
combo Spam
 {
  wait(Time_value);
    set_val(Button, 0);
    wait(Time_value);
 }
 
combo Flash
{
    wait(500);
    colour_led_f(WHITE);
    wait(500);
}
 
combo dive
{set_val(PS4_L2,100);
 set_val(PS4_SQUARE,100);
 wait(500);
 set_val(PS4_L2,0);
 set_val(PS4_SQUARE,0);
 wait(80);}
 
 
combo WEAPON
{
    set_val(PS4_RX,wx_v);
    set_val(PS4_RY,wy_v);
    wait(200);
    set_val(PS4_RX,wx_v);
    set_val(PS4_RY,wy_v);
    wait(40);
    wx_v = 0;
    wy_v = 0;
}
 
function colour_led_f(Colour) {  // COLOR LED function
    Col_ind=(Colour*4) - 3;
    set_led(LED_1,dbyte(Col_ind));
    set_led(LED_2,dbyte(Col_ind + 1));
    set_led(LED_3,dbyte(Col_ind + 2));
    set_led(LED_4,dbyte(Col_ind + 3));
}
 
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm


Return to Gtuner IV Support

Who is online

Users browsing this forum: No registered users and 26 guests