The Last Of Us Necesito ayuda con este script!!!

GPC2 script programming for Titan Two. Code examples, questions, requests.

The Last Of Us Necesito ayuda con este script!!!

Postby BrianRoby » Fri Oct 04, 2019 1:58 am

Necesito pasar este script a Titan2, Agregarle rapid fire que permita curar y auto spot si es posible.
Y que las funciones queden para apuntar y disparar con L1 y R1, les agradecería mucho.


Code: Select all
//##########################################################################################################################################
    //################################################ Aim Assist V3 ###########################################################################
    //                                                                                                  ########################################
    //##########################################################################################################################################
//##########################################################################################################################################
    //######################## C O N F I G U R A T I O N - STARTS HERE #########################################################################
    //##########################################################################################################################################
    //############## WEAPON TYPE ###############################################################################################################
    //                                                                                                  ########################################
    define ADS_SENS   = 100;       //sensitivity while aiming
 
    define SEMI         = FALSE//SEMI AUTOMATIC GUNS ex. SHEIVA                                      ########################################
    define SMG          = FALSE//SUB MACHINE GUNS ex. VMP                                            ########################################
    define AR           = TRUE//AUSSAULT RIFLES ex. MAN O WAR                                       ########################################
    //                                                                                                  ########################################
    //##########################################################################################################################################
    //############## SENSITIVITY ###############################################################################################################
    //                                                                                                  ########################################
    define SENSE_LOW    = FALSE//SENSITIVITY 1 - 4                                                   ########################################
    define SENSE_MID    = TRUE//SENSITIVITY 5 - 14                                                  ########################################
    define SENSE_MOUSE  = FALSE//SENSITIVITY 14 MOUSE                                                ########################################
    //                                                                                                  ########################################
    //##########################################################################################################################################
    //############## DEADZONE ##################################################################################################################
    //                                                                                                  ########################################
    define RECOMMENDED  = FALSE; //Recommended Settings                                                 ########################################
    define STRONGER     = TRUE; //Stronger than Recommended                                            ########################################
    define INSANE       = FALSE//Strongest Assist possible                                           ########################################
    //                                                                                                  ########################################
    //##########################################################################################################################################
    //######################## C O N F I G U R A T I O N - ENDS HERE ###########################################################################
    //##########################################################################################################################################
    //##########################################################################################################################################
    //################# !!! ## GPC CODE DO NOT CHANGE ANYTHING ## !!! ##########################################################################
    //##########################################################################################################################################
    //                                                                                                                                        ##
    define RB   = XB1_LB;
    define LB   = XB1_LB;
    define RX   = XB1_RX;                             
    define RY   = XB1_RY;
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //                                                                                                                                        ##
    int delay       = 11;
    int value       = 100;
    int value2      = -100;
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //                                                                                                                                        ##
    int negative_value_rt_first     = 0;
    int positive_value_rt_first     = 0;
    int positive_value_rt_second    = 0;
 
    int negative_value_lt_first     = 0;
    int positive_value_lt_first     = 0;
    int positive_value_lt_second    = 0;
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //                                                                                                                                        ##
    main {
 
        if(SEMI == FALSE && SMG == FALSE && AR == TRUE && SENSE_MOUSE == TRUE && SENSE_MID == FALSE && SENSE_LOW == FALSE) {
 
            negative_value_lt_first     = -16;
            positive_value_lt_first     = 16;
            positive_value_lt_second    = 16;
 
            negative_value_rt_first     = -24;
            positive_value_rt_first     = 24;
            positive_value_rt_second    = 14;
        }
 
        if(SEMI == TRUE && SMG == FALSE && AR == FALSE && SENSE_MOUSE == TRUE && SENSE_MID == FALSE && SENSE_LOW == FALSE) {
 
            negative_value_lt_first     = -14;
            positive_value_lt_first     = 14;
            positive_value_lt_second    = 14;
 
            negative_value_rt_first     = -16;
            positive_value_rt_first     = 16;
            positive_value_rt_second    = 6;
        }
 
        if(SEMI == FALSE && SMG == TRUE && AR == FALSE && SENSE_MOUSE == TRUE && SENSE_MID == FALSE && SENSE_LOW == FALSE) {
 
            negative_value_lt_first     = -22;
            positive_value_lt_first     = 22;
            positive_value_lt_second    = 12;
 
            negative_value_rt_first     = -32;
            positive_value_rt_first     = 32;
            positive_value_rt_second    = 22;
        }
 
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //                                                                                                                                        ##
 
        if(SEMI == FALSE && SMG == FALSE && AR == TRUE && SENSE_MOUSE == FALSE && SENSE_MID == FALSE && SENSE_LOW == TRUE) {
 
            negative_value_lt_first     = -22;
            positive_value_lt_first     = 22;
            positive_value_lt_second    = 22;
 
            negative_value_rt_first     = -32;
            positive_value_rt_first     = 32;
            positive_value_rt_second    = 22;
        }
 
        if(SEMI == TRUE && SMG == FALSE && AR == FALSE && SENSE_MOUSE == FALSE && SENSE_MID == FALSE && SENSE_LOW == TRUE) {
 
            negative_value_lt_first     = -20;
            positive_value_lt_first     = 20;
            positive_value_lt_second    = 20;
 
            negative_value_rt_first     = -24;
            positive_value_rt_first     = 24;
            positive_value_rt_second    = 13;
        }
 
        if(SEMI == FALSE && SMG == TRUE && AR == FALSE && SENSE_MOUSE == FALSE && SENSE_MID == FALSE && SENSE_LOW == TRUE) {
 
            negative_value_lt_first     = -30;
            positive_value_lt_first     = 30;
            positive_value_lt_second    = 20;
 
            negative_value_rt_first     = -40;
            positive_value_rt_first     = 40;
            positive_value_rt_second    = 30;
        }
 
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //                                                                                                                                        ##
 
        if(SEMI == FALSE && SMG == FALSE && AR == TRUE && SENSE_MOUSE == FALSE && SENSE_MID == TRUE && SENSE_LOW == FALSE) {
 
            negative_value_lt_first     = -17;
            positive_value_lt_first     = 17;
            positive_value_lt_second    = 17;
 
            negative_value_rt_first     = -27;
            positive_value_rt_first     = 27;
            positive_value_rt_second    = 17;
        }
 
        if(SEMI == TRUE && SMG == FALSE && AR == FALSE && SENSE_MOUSE == FALSE && SENSE_MID == TRUE && SENSE_LOW == FALSE) {
 
            negative_value_lt_first     = -16;
            positive_value_lt_first     = 16;
            positive_value_lt_second    = 16;
 
            negative_value_rt_first     = -19;
            positive_value_rt_first     = 19;
            positive_value_rt_second    = 10;
        }
 
        if(SEMI == FALSE && SMG == TRUE && AR == FALSE && SENSE_MOUSE == FALSE && SENSE_MID == TRUE && SENSE_LOW == FALSE) {
 
            negative_value_lt_first     = -25;
            positive_value_lt_first     = 25;
            positive_value_lt_second    = 15;
 
            negative_value_rt_first     = -35;
            positive_value_rt_first     = 35;
            positive_value_rt_second    = 25;
        }
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //                                                                                                                                        ##
        if(INSANE == TRUE && STRONGER == FALSE && RECOMMENDED == FALSE) {
            value  = 45;
            value2 = -45;
        }
 
        if(INSANE == FALSE && STRONGER == TRUE && RECOMMENDED == FALSE) {
            value  = 39;
            value2 = -39;
        }
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //                                                                                                                                        ##
        if(SENSE_LOW == FALSE && SENSE_MID == TRUE && SENSE_MOUSE == FALSE && RECOMMENDED == TRUE && STRONGER == FALSE && INSANE == FALSE) {
 
            value   = 33;
            value2  = -33;
        }
 
        if(SENSE_LOW == TRUE && SENSE_MID == FALSE && SENSE_MOUSE == FALSE && RECOMMENDED == TRUE && STRONGER == FALSE && INSANE == FALSE) {
 
            value   = 33;
            value2  = -33;
        }
 
        if(SENSE_LOW == FALSE && SENSE_MID == FALSE && SENSE_MOUSE == TRUE && RECOMMENDED == TRUE && STRONGER == FALSE && INSANE == FALSE) {
 
            value   = 20;
            value2  = -20;
        }
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //                                                                                                                                        ## 
        if(get_val(LB) && (SEMI == TRUE || AR == TRUE || SMG == TRUE)) {
            combo_run(LB_C);
        }
 
        if(get_val(RB) && get_val(LB) && (SEMI == TRUE || AR == TRUE || SMG == TRUE)) {
            sensitivity(9,NOT_USE,ADS_SENS);
            sensitivity(10,NOT_USE,ADS_SENS);
            combo_stop(LB_C);
            combo_run(RB_C);
        }
 
        if(get_val(RX) < value2 || get_val(RX) > value || get_val(RY) < value2 || get_val(RY) > value
        || get_val(RX) < value2 || get_val(RX) > value || get_val(RY) < value2 || get_val(RY) > value){
            combo_stop(LB_C);
            combo_stop(RB_C);
        }
    }
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //                                                                                                                                        ##
 
    combo LB_C {
       set_val(RY, negative_value_lt_first);         
       wait(delay)
       set_val(RX, positive_value_lt_first);
       set_val(RY, positive_value_lt_second);
       wait(delay)
       set_val(RY, positive_value_lt_second);
       wait(delay)                 
       set_val(RX, negative_value_lt_first);
       set_val(RY, positive_value_lt_second);
       wait(delay)
    }
 
    combo RB_C {
       set_val(RY, negative_value_rt_first);             
       wait(delay)
       set_val(RX, positive_value_rt_first);
       set_val(RY, positive_value_rt_second);
       wait(delay)
       set_val(RY, positive_value_rt_second);
       wait(delay)                 
       set_val(RX, negative_value_rt_first);
       set_val(RY, positive_value_rt_second);
       wait(delay)
    }
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //##########################################################################################################################################
User avatar
BrianRoby
Master Sergeant
Master Sergeant
 
Posts: 26
Joined: Tue Aug 06, 2019 12:46 am

Re: The Last Of Us Necesito ayuda con este script!!!

Postby Mad » Fri Oct 04, 2019 2:22 am

Code: Select all
#include <titanone.gph>
 //##########################################################################################################################################
    //################################################ Aim Assist V3 ###########################################################################
//##########################################################################################################################################
########################################
    //##########################################################################################################################################
    //######################## C O N F I G U R A T I O N - STARTS HERE #########################################################################
    //##########################################################################################################################################
    //############## WEAPON TYPE ###############################################################################################################
    //                                                                                                  ########################################
    define ADS_SENS   = 100;       //sensitivity while aiming
 
    define SEMI         = FALSE//SEMI AUTOMATIC GUNS ex. SHEIVA                                      ########################################
    define SMG          = FALSE//SUB MACHINE GUNS ex. VMP                                            ########################################
    define AR           = TRUE//AUSSAULT RIFLES ex. MAN O WAR                                       ########################################
    //                                                                                                  ########################################
    //##########################################################################################################################################
    //############## SENSITIVITY ###############################################################################################################
    //                                                                                                  ########################################
    define SENSE_LOW    = FALSE//SENSITIVITY 1 - 4                                                   ########################################
    define SENSE_MID    = TRUE//SENSITIVITY 5 - 14                                                  ########################################
    define SENSE_MOUSE  = FALSE//SENSITIVITY 14 MOUSE                                                ########################################
    //                                                                                                  ########################################
    //##########################################################################################################################################
    //############## DEADZONE ##################################################################################################################
    //                                                                                                  ########################################
    define RECOMMENDED  = FALSE; //Recommended Settings                                                 ########################################
    define STRONGER     = TRUE; //Stronger than Recommended                                            ########################################
    define INSANE       = FALSE//Strongest Assist possible                                           ########################################
    //                                                                                                  ########################################
    //##########################################################################################################################################
    //######################## C O N F I G U R A T I O N - ENDS HERE ###########################################################################
    //##########################################################################################################################################
    //##########################################################################################################################################
    //################# !!! ## GPC CODE DO NOT CHANGE ANYTHING ## !!! ##########################################################################
    //##########################################################################################################################################
    //                                                                                                                                        ##
    define RB   = XB1_LB;
    define LB   = XB1_LB;
    define RX   = XB1_RX;                             
    define RY   = XB1_RY;
 
    define RT    =   4;
    define LT    =   7;
    define R3 = 5;
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //              ##
 
    int rapidfire = TRUE; // enable rapid fire
    int spot      = TRUE; // enable auto spot
 
    int delay       = 11;
    int value       = 100;
    int value2      = -100;
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //                                                                                                                                        ##
    int negative_value_rt_first     = 0;
    int positive_value_rt_first     = 0;
    int positive_value_rt_second    = 0;
 
    int negative_value_lt_first     = 0;
    int positive_value_lt_first     = 0;
    int positive_value_lt_second    = 0;
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //                                                                                                                                        ##
    main {
        if(rapidfire && get_val(RT)) combo_run(cRapidFire);
        if(spot && get_val(LT)) combo_run(AP);
 
        if(SEMI == FALSE && SMG == FALSE && AR == TRUE && SENSE_MOUSE == TRUE && SENSE_MID == FALSE && SENSE_LOW == FALSE) {
 
            negative_value_lt_first     = -16;
            positive_value_lt_first     = 16;
            positive_value_lt_second    = 16;
 
            negative_value_rt_first     = -24;
            positive_value_rt_first     = 24;
            positive_value_rt_second    = 14;
        }
 
        if(SEMI == TRUE && SMG == FALSE && AR == FALSE && SENSE_MOUSE == TRUE && SENSE_MID == FALSE && SENSE_LOW == FALSE) {
 
            negative_value_lt_first     = -14;
            positive_value_lt_first     = 14;
            positive_value_lt_second    = 14;
 
            negative_value_rt_first     = -16;
            positive_value_rt_first     = 16;
            positive_value_rt_second    = 6;
        }
 
        if(SEMI == FALSE && SMG == TRUE && AR == FALSE && SENSE_MOUSE == TRUE && SENSE_MID == FALSE && SENSE_LOW == FALSE) {
 
            negative_value_lt_first     = -22;
            positive_value_lt_first     = 22;
            positive_value_lt_second    = 12;
 
            negative_value_rt_first     = -32;
            positive_value_rt_first     = 32;
            positive_value_rt_second    = 22;
        }
 
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //                                                                                                                                        ##
 
        if(SEMI == FALSE && SMG == FALSE && AR == TRUE && SENSE_MOUSE == FALSE && SENSE_MID == FALSE && SENSE_LOW == TRUE) {
 
            negative_value_lt_first     = -22;
            positive_value_lt_first     = 22;
            positive_value_lt_second    = 22;
 
            negative_value_rt_first     = -32;
            positive_value_rt_first     = 32;
            positive_value_rt_second    = 22;
        }
 
        if(SEMI == TRUE && SMG == FALSE && AR == FALSE && SENSE_MOUSE == FALSE && SENSE_MID == FALSE && SENSE_LOW == TRUE) {
 
            negative_value_lt_first     = -20;
            positive_value_lt_first     = 20;
            positive_value_lt_second    = 20;
 
            negative_value_rt_first     = -24;
            positive_value_rt_first     = 24;
            positive_value_rt_second    = 13;
        }
 
        if(SEMI == FALSE && SMG == TRUE && AR == FALSE && SENSE_MOUSE == FALSE && SENSE_MID == FALSE && SENSE_LOW == TRUE) {
 
            negative_value_lt_first     = -30;
            positive_value_lt_first     = 30;
            positive_value_lt_second    = 20;
 
            negative_value_rt_first     = -40;
            positive_value_rt_first     = 40;
            positive_value_rt_second    = 30;
        }
 
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //                                                                                                                                        ##
 
        if(SEMI == FALSE && SMG == FALSE && AR == TRUE && SENSE_MOUSE == FALSE && SENSE_MID == TRUE && SENSE_LOW == FALSE) {
 
            negative_value_lt_first     = -17;
            positive_value_lt_first     = 17;
            positive_value_lt_second    = 17;
 
            negative_value_rt_first     = -27;
            positive_value_rt_first     = 27;
            positive_value_rt_second    = 17;
        }
 
        if(SEMI == TRUE && SMG == FALSE && AR == FALSE && SENSE_MOUSE == FALSE && SENSE_MID == TRUE && SENSE_LOW == FALSE) {
 
            negative_value_lt_first     = -16;
            positive_value_lt_first     = 16;
            positive_value_lt_second    = 16;
 
            negative_value_rt_first     = -19;
            positive_value_rt_first     = 19;
            positive_value_rt_second    = 10;
        }
 
        if(SEMI == FALSE && SMG == TRUE && AR == FALSE && SENSE_MOUSE == FALSE && SENSE_MID == TRUE && SENSE_LOW == FALSE) {
 
            negative_value_lt_first     = -25;
            positive_value_lt_first     = 25;
            positive_value_lt_second    = 15;
 
            negative_value_rt_first     = -35;
            positive_value_rt_first     = 35;
            positive_value_rt_second    = 25;
        }
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //                                                                                                                                        ##
        if(INSANE == TRUE && STRONGER == FALSE && RECOMMENDED == FALSE) {
            value  = 45;
            value2 = -45;
        }
 
        if(INSANE == FALSE && STRONGER == TRUE && RECOMMENDED == FALSE) {
            value  = 39;
            value2 = -39;
        }
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //                                                                                                                                        ##
        if(SENSE_LOW == FALSE && SENSE_MID == TRUE && SENSE_MOUSE == FALSE && RECOMMENDED == TRUE && STRONGER == FALSE && INSANE == FALSE) {
 
            value   = 33;
            value2  = -33;
        }
 
        if(SENSE_LOW == TRUE && SENSE_MID == FALSE && SENSE_MOUSE == FALSE && RECOMMENDED == TRUE && STRONGER == FALSE && INSANE == FALSE) {
 
            value   = 33;
            value2  = -33;
        }
 
        if(SENSE_LOW == FALSE && SENSE_MID == FALSE && SENSE_MOUSE == TRUE && RECOMMENDED == TRUE && STRONGER == FALSE && INSANE == FALSE) {
 
            value   = 20;
            value2  = -20;
        }
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //                                                                                                                                        ## 
        if(get_val(LB) && (SEMI == TRUE || AR == TRUE || SMG == TRUE)) {
            combo_run(LB_C);
        }
 
        if(get_val(RB) && get_val(LB) && (SEMI == TRUE || AR == TRUE || SMG == TRUE)) {
            sensitivity(9,NOT_USE,ADS_SENS);
            sensitivity(10,NOT_USE,ADS_SENS);
            combo_stop(LB_C);
            combo_run(RB_C);
        }
 
        if(get_val(RX) < value2 || get_val(RX) > value || get_val(RY) < value2 || get_val(RY) > value
        || get_val(RX) < value2 || get_val(RX) > value || get_val(RY) < value2 || get_val(RY) > value){
            combo_stop(LB_C);
            combo_stop(RB_C);
        }
    }
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //                                                                                                                                        ##
 
    combo LB_C {
       set_val(RY, negative_value_lt_first);         
       wait(delay);
       set_val(RX, positive_value_lt_first);
       set_val(RY, positive_value_lt_second);
       wait(delay);
       set_val(RY, positive_value_lt_second);
       wait(delay);                 
       set_val(RX, negative_value_lt_first);
       set_val(RY, positive_value_lt_second);
       wait(delay);
    }
 
    combo RB_C {
       set_val(RY, negative_value_rt_first);             
       wait(delay);
       set_val(RX, positive_value_rt_first);
       set_val(RY, positive_value_rt_second);
       wait(delay);
       set_val(RY, positive_value_rt_second);
       wait(delay);                 
       set_val(RX, negative_value_rt_first);
       set_val(RY, positive_value_rt_second);
       wait(delay);
    }
 
    combo cRapidFire {
       set_val(RT, 100);
       wait(33);
       set_val(RT, 0);
       wait(64);
       set_val(RT, 0);
    }
 
    combo AP {
       set_val(R3,100);
       wait(40);
       set_val(R3,0);
       wait(40);
    }
    //                                                                                                                                        ##
    //##########################################################################################################################################
    //##########################################################################################################################################
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am

Re: The Last Of Us Necesito ayuda con este script!!!

Postby BrianRoby » Fri Oct 04, 2019 11:32 pm

Este rapid fire no me permite curar en el juego, hay alguna solución?
Gracias!!!
User avatar
BrianRoby
Master Sergeant
Master Sergeant
 
Posts: 26
Joined: Tue Aug 06, 2019 12:46 am

Re: The Last Of Us Necesito ayuda con este script!!!

Postby shygur » Thu Oct 10, 2019 4:46 am

BrianRoby wrote:Este rapid fire no me permite curar en el juego, hay alguna solución?
Gracias!!!

prueba este
Attachments
Last of Us v0.1 By Shygur (XB1 PS4 PC) (Titan2).gpc
(1.19 KiB) Downloaded 60 times
User avatar
shygur
Sergeant
Sergeant
 
Posts: 8
Joined: Wed Sep 11, 2019 12:36 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 48 guests