Looking for script

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

Looking for script

Postby Corbylove » Tue Dec 10, 2019 7:10 pm

Hi

I had this pretty basic script for rapid fire and anti recoil but I had to wipe my pc 2 days ago and now I cant find it.

It was something like hold ADS and press up on the dpad to activate anti-recoil and rapidfire
hold ADS and press down on the dpad for on anti-recoil
and hols ADS and press left on the dpad to shut off all mods

If any one knows where this script is and could link it it to me I would be grateful.

Thank
Corbs
User avatar
Corbylove
Sergeant
Sergeant
 
Posts: 9
Joined: Mon Mar 26, 2018 5:39 am

Re: Looking for script

Postby Mad » Tue Dec 10, 2019 8:45 pm

Is this the one you were looking for?
Code: Select all
// GPC Online Library
// rapid_fire_anti_recoil_rize_v10.gpc
 
// GPC Online Library
// Rapid_Fire_Anti_Recoil_Rize_V1.1.gpc
/*
FPS Rapid Fire Anti Recoil Suite
Try three different fire modes:
-------------------------------------------------------------------------
Mode 1 Rapid Fire [ ACTIVATE BY L2 + LEFT ON THE D PAD  ] | PS4
RAPID FIRE. DS4 LIGHTBAR & TITAN ONE LED TURN RED WHEN ACTIVATED
-------------------------------------------------------------------------
Mode 2 ANTI RECOIL ONE [ ACTIVATE BY L2 + UP ON THE D PAD  ] | PS4
ANTI RECOIL. YOU CAN SET THIS FOR A SPECIFIC CLASS OR WEAPON EG. ASSULT RIFLES
SD4 LIGHTBAR & TITAN ONE LED TURN GREEN WHEN ACTIVATED
-------------------------------------------------------------------------
Mode 3 ANTI RECOIL TWO [ ACTIVATE BY L2 + RIGHT ON THE D PAD  ] | PS4
ANTI RECOIL. YOU CAN SET THIS FOR A SPECIFIC CLASS OR WEAPON EG. SMG'S
DS4 LIGHTBAR & TITAN ONE LED TURN PURPLE WHEN ACTIVATED
-------------------------------------------------------------------------
 
To return back to Neutral firing or Regular mode just De-Activate the mode
by pressing the same activation sequence. EG.
if you turned on rapid fire with L2 + LEFT ON THE D PAD,
deactivate with L2 + LEFT ON THE D PAD.
 
It is SAFE to switch modes directly, i.e. moving from Rapid Fire to
Anti Recoil One or Two without first deactivating.
 
The LED indicator on the back of your PS4 controller will describe the mode
BLUE - Neutral, no mods active [except hair trigger.. comeonnow]
RED - Rapid Fire
GREEN - Anti Recoil One
PURPLE - Anti Recoil Two
 
 
 
Feel Free Share And Modify This Script As Needed
 
Rapid_Fire_Anti_Recoil_Rize_V1.1
 
-Rize
 
 
QUESTIONS OR COMMENTS YOU CAN FIND THREAD LOCATED AT
http://www.consoletuner.com/forum/viewt ... f=6&t=2296
 
Special Thanks To
Neil Amouyal & Knightmare
*/

 
 
 
//Rapid Fire Settings
//===================================================================================================================================================
define RATE_OF_FIRE            = 19;      // Range: 1 to 25 Rate Of Fire this varies for each weapon and configuration (i.e type, variant, attachments)
//===================================================================================================================================================
// Anti Recoil One
//===================================================================================================================================================
define ANTI_RECOIL_1           = 15;      //change this value to compensate to the vertical recoil
define ANTI_RECOIL_LEFT_1      = 0;       //change this value to compensate to the left
define ANTI_RECOIL_RIGHT_1     = 0;       //change this value to compensate to the right
//===================================================================================================================================================
//Anti Recoil Two
//===================================================================================================================================================
define ANTI_RECOIL_2           = 20;      //change this value to compensate to the vertical recoil
define ANTI_RECOIL_LEFT_2      = 0;       //change this value to compensate to the left
define ANTI_RECOIL_RIGHT_2     = 0;       //change this value to compensate to the right
//===================================================================================================================================================
//Triggers
//===================================================================================================================================================
define FIRE_BUTTON             = PS4_R2//change this to R1 if you're using flipped triggers
define ADS                     = PS4_L2//change this to L1 if you're using flipped triggers
//===================================================================================================================================================
 
//No Need To Change Anything Below This Line
//==========================================
int RAPID_FIRE = FALSE;
int ANTI_RECOIL_ONE = FALSE;
int ANTI_RECOIL_TWO = FALSE;
 
int anti_recoil_1;
int anti_recoil_left_1;
int anti_recoil_right_1;
 
int anti_recoil_2;
int anti_recoil_left_2;
int anti_recoil_right_2;
 
int hold_time, rest_time;
 
init {
    hold_time = 500 / RATE_OF_FIRE;
    rest_time = hold_time - 20;
    if(rest_time < 0) rest_time = 0;
    }
 
 
main {
    //hair trigger mod
    if ( get_val(FIRE_BUTTON) >= 30 )
    {
        set_val(FIRE_BUTTON, 100);
    }
 
    if ( get_val(PS4_L2) && get_val(PS4_LEFT))
    {
        if (RAPID_FIRE)
        {
            RAPID_FIRE = FALSE;
            set_led(LED_2, 0);
            set_led(LED_1, 1);
        }
        else
        {
            RAPID_FIRE = TRUE;
            ANTI_RECOIL_ONE = FALSE;
            ANTI_RECOIL_TWO = FALSE;
            set_led(LED_3, 0);
            set_led(LED_1, 0);
            set_led(LED_2, 1);
            set_led(LED_4, 0);
        }
    }
    else if (get_val(PS4_L2) && get_val(PS4_UP) )
    {
        if (ANTI_RECOIL_ONE)
        {
            ANTI_RECOIL_ONE = FALSE;
            set_led(LED_3, 0);
            set_led(LED_1, 1);
        }
        else
        {
            ANTI_RECOIL_ONE = TRUE;
            RAPID_FIRE = FALSE;
            ANTI_RECOIL_TWO = FALSE;
            set_led(LED_2, 0);
            set_led(LED_1, 0);
            set_led(LED_3, 1);
            set_led(LED_4, 0);
        }
    }
 
    else if ( get_val(PS4_L2) && get_val(PS4_RIGHT) )
    {
        if (ANTI_RECOIL_TWO)
        {
            ANTI_RECOIL_TWO = FALSE;
            set_led(LED_4, 0);
            set_led(LED_1, 1);
        }
        else
        {
            ANTI_RECOIL_TWO = TRUE;
            RAPID_FIRE = FALSE;
            ANTI_RECOIL_ONE= FALSE;
            set_led(LED_4, 1);
            set_led(LED_3, 0);
            set_led(LED_2, 0);
            set_led(LED_1, 0);
        }
    }
 
    if ( get_val(FIRE_BUTTON) && RAPID_FIRE )
    {
        combo_run(AutoFire);
    }
    else if ( get_val(FIRE_BUTTON) && ANTI_RECOIL_ONE )
    {
        combo_run(AntiRecoil1);
    }
    else if ( get_val(FIRE_BUTTON) && ANTI_RECOIL_TWO )
    {
        combo_run(AntiRecoil2);
    }
}
 
combo AutoFire {
    set_val(FIRE_BUTTON, 100);
    wait(hold_time);
    set_val(FIRE_BUTTON, 0);
    wait(rest_time);
    set_val(FIRE_BUTTON, 0);
}
combo AntiRecoil1 {
    if(get_val(FIRE_BUTTON) && get_val(ADS)) {
    anti_recoil_1 = get_val(10) + ANTI_RECOIL_1;
    if(anti_recoil_1 > 100) anti_recoil_1 = 100;
    set_val(10, anti_recoil_1);
    anti_recoil_left_1 = get_val(9) -ANTI_RECOIL_LEFT_1;
    if(anti_recoil_left_1 > 100) anti_recoil_left_1 = 100;
    set_val(9, anti_recoil_left_1);
    anti_recoil_right_1 = get_val(9) +ANTI_RECOIL_RIGHT_1;
    if(anti_recoil_right_1 > 100) anti_recoil_right_1 = 100;
    set_val(9, anti_recoil_right_1);}
 
 
}
combo AntiRecoil2 {
    if(get_val(FIRE_BUTTON) && get_val(ADS)) {
    anti_recoil_2 = get_val(10) + ANTI_RECOIL_2;
    if(anti_recoil_2 > 100) anti_recoil_2 = 100;
    set_val(10, anti_recoil_2);
    anti_recoil_left_2 = get_val(9) -ANTI_RECOIL_LEFT_2;
    if(anti_recoil_left_2 > 100) anti_recoil_left_2 = 100;
    set_val(9, anti_recoil_left_2);
    anti_recoil_right_2 = get_val(9) +ANTI_RECOIL_RIGHT_2;
    if(anti_recoil_right_2 > 100) anti_recoil_right_2 = 100;
    set_val(9, anti_recoil_right_2);}
 
 
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 73 guests

cron