can someone help fix this script i cannot compile it for som

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

can someone help fix this script i cannot compile it for som

Postby faheem786 » Wed Aug 26, 2020 10:45 pm

Code: Select all
#pragma METAINFO("Last of Us Multicheats", 0, 1, "By Shygur") 
#include <xb1.gph>
 
//-- Controller Layout --//
#define RB    XB1_RB
#define RT    XB1_RT
#define RS    XB1_RS
#define LT    XB1_LT
#define RX    XB1_RX
#define RY  XB1_RY
#define LX  XB1_LX
#define LY  XB1_LY
#define Y     XB1_Y
#define B    XB1_B
#define A    XB1_A
#define X    XB1_X
#define LS    XB1_LS
 
//-- Settings --//
int AimAssist = TRUE;        // hold L2 = run aim assist.
int RapidFire = TRUE;        // hold L2 + R2 = run rapid fire.
int AutoPing  = TRUE;        // hold L2 = run auto ping / spawn R3.
 
//-- Main Block --//
main {
    if(AimAssist){
        if(get_val(LT)){
            combo_run(Aim_Assist);
        }
    }
    if(RapidFire){
        if(get_val(LT) && get_val(RT)){
            combo_run(Rapid_Fire);
        }
    }
    if(AutoPing){
        if(get_val(LT)){
            combo_run(Auto_Ping);
        }
    }
}// Main End
 
//-- List of Combos --//
combo Aim_Assist {        // circular aim assist.
    set_val(RY, 20);
    wait(20);
    set_val(RX, 20);
    wait(20);
    set_val(RY,-20);
    wait(20);
    set_val(RX,-20);
    wait(20);
}
combo Rapid_Fire {        // spam fire (10/sec).
    set_val(RT,100);
    wait(50);
    set_val(RT,0);
    wait(50);
}
combo Auto_Ping {        // auto-ping (10/sec).
    set_val(RS,100);
    wait(25);
    wait(75);
}
// Functions (N/A)
// Script End!!!
User avatar
faheem786
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Tue Aug 27, 2019 9:22 pm

Re: can someone help fix this script i cannot compile it for

Postby Mad » Wed Aug 26, 2020 11:47 pm

It's a Titan Two script, not Titan One.

Lucky for you though it uses basic functions and can run on the Titan One.
Code: Select all
//-- Settings --//
int AimAssist = TRUE; // hold L2 = run aim assist.
int RapidFire = TRUE; // hold L2 + R2 = run rapid fire.
int AutoPing = TRUE; // hold L2 = run auto ping / spawn R3.
 
//-- Main Block --//
main {
    if(AimAssist){
        if(get_val(XB1_LT)){
            combo_run(Aim_Assist);
        }
    }
    if(RapidFire){
        if(get_val(XB1_LT) && get_val(XB1_RT)){
             combo_run(Rapid_Fire);
        }
    }
     if(AutoPing){
        if(get_val(XB1_LT)){
             combo_run(Auto_Ping);
        }
    }
}// Main End
 
//-- List of Combos --//
combo Aim_Assist { // circular aim assist.
    set_val(XB1_RY, 20);
    wait(20);
    set_val(XB1_RX, 20);
    wait(20);
    set_val(XB1_RY,-20);
    wait(20);
    set_val(XB1_RX,-20);
    wait(20);
}
combo Rapid_Fire { // spam fire (10/sec).
    set_val(XB1_RT,100);
    wait(50);
    set_val(XB1_RT,0);
    wait(50);
}
combo Auto_Ping { // auto-ping (10/sec).
    set_val(XB1_RS,100);
    wait(25);
    wait(75);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

Re: can someone help fix this script i cannot compile it for

Postby faheem786 » Thu Aug 27, 2020 7:39 am

thanks bro also if i sent u a script will it be possible for u to combine it with the first script sorry i dont understand
Code: Select all
// GPC Online Library
// thelastofus.gpc
 
//                                        Made by JewFire aka JewishLuck
//                     Thanks to Baby Cham for helping me put this together and fixing a few things.
//                                   Tested With TLOU-Remastered and PS4 Controller
 
// colorled(0,0,0,0); // Off / No LED light
// colorled(1,0,0,0); // Dim Blue
// colorled(0,1,0,0); // Dim Red
// colorled(0,0,1,0); // Dim Lime/Green
// colorled(0,0,0,1); // Dim Fuchsia/Pink
// colorled(1,0,1,0); // Dim SkyBlue
// colorled(0,1,1,0); // Dim Yellow
// colorled(1,1,1,1); // Dim White
// colorled(2,0,0,0); // Blue 
// colorled(0,2,0,0); // Red
// colorled(0,0,2,0); // Lime/Green
// colorled(0,0,0,2); // Fuchsia/Pink
// colorled(2,0,2,0); // SkyBlue
// colorled(0,2,2,0); // Yellow
// colorled(2,2,2,2); // White
// colorled(3,0,0,0); // Bright Blue
// colorled(0,3,0,0); // Bright Red
// colorled(0,0,3,0); // Bright Lime/Green
// colorled(0,0,0,3); // Bright Fuchsia/Pink
// colorled(3,0,3,0); // Bright SkyBlue
// colorled(0,3,3,0); // Bright Yellow
// colorled(3,3,3,3); // Bright white
// ColorLed (1) Dim light
// ColorLed (2) Normal/Medium
// ColorLed (3) Bright light
 
//DECLARARATIONS
//--------------------------------------------------------------
define SHOOT_BUTTON      = PS4_R2;
define RAPIDFIRE_BUTTON = PS4_L2;
define RATE_OF_FIRE       = 25; // Range: 1 to 25 RPS (Round/s)
define AUTOSPOT_BUTTON  = PS4_L2;
define SPOT_BUTTON      =PS4_R3;
//VARIABLES
//--------------------------------------------------------------
//             *DO NOT EDIT/DELETE THIS SECTION*
int hold_time;
int rest_time;
int Attack                   = FALSE;
 
int Timeout_Melee            = 0;
int DbleClick_Square         = 0;
 
int shake = 38;
int AimAssist_onoff = TRUE;
 
//INITIALIZATION - init
//--------------------------------------------------------------
init {
     hold_time = 500 / RATE_OF_FIRE;
     rest_time = hold_time - 20;
     if(rest_time < 0) rest_time = 0;
}
 
//MAIN BLOCK RUTINES
//--------------------------------------------------------------
main { 
    // COLOR INDICATION FOR the RAPID FIRE ON / OFF
    if(get_val(RAPIDFIRE_BUTTON) && get_val(SHOOT_BUTTON)) {
        colorled(0,0,1,0)// OFF (Dim Lime/Green) *you can edit here*
        colorled(3,3,3,3); // (White) *you can edit here*
        combo_run(RapidFire);
    } else if(combo_running(RapidFire)) {
        combo_stop(RapidFire);
        reset_leds(); }
 
    // COLOR INDICATION FOR the RAPID SPOT ON / OFF
    if(get_val(RAPIDFIRE_BUTTON)) {
        combo_run(RapidSpot);
    } else if(combo_running(RapidSpot)) {
        combo_stop(RapidSpot);
        reset_leds(); }
 
  // Double click Square to turn off/on Melee.
    if(DbleClick_Square > 0) DbleClick_Square = DbleClick_Square - get_rtime();
    if(event_press(PS4_SQUARE) && DbleClick_Square <= 0) {
        DbleClick_Square = 300; }
        else if(event_press(PS4_SQUARE) && DbleClick_Square > 0) {
        Attack = !Attack;
        Timeout_Melee = 0;
    }
    if(Attack) {
        set_val(TRACE_1, Timeout_Melee);
        Timeout_Melee = Timeout_Melee + get_rtime();
        if(Timeout_Melee <= 350) combo_run(Brawl);
        else combo_run(StrongAttack);
    } else if(combo_running(Brawl)) {
        combo_stop(Brawl);
        reset_leds(); }
 
   // Rapid fire on Square button.
    if(get_val(PS4_SQUARE)) { combo_run(Action); }
    else if(combo_running(Action)) { combo_stop(Action); }
 
    if (get_val(PS4_SHARE)) {
        if (event_press(PS4_PS)) {
            AimAssist_onoff =! AimAssist_onoff;
        }
        set_val(PS4_PS, 0);
    }
    if (AimAssist_onoff) {
        if (get_val(PS4_L2)) combo_run(c_Auto_Aimm);
        else  combo_stop(c_Auto_Aimm);
        if (get_val(PS4_L2)) {
            if (abs(get_val(9)) > 21 || abs(get_val(10)) > 21) {
                combo_stop(c_Auto_Aimm);
            }
        }
    }
}
 
//COMBO BLOCKS
//--------------------------------------------------------------
combo RapidFire {
    set_val(SHOOT_BUTTON, 100);
    wait(hold_time);
    set_val(SHOOT_BUTTON, 0);
    wait(rest_time);
    set_val(SHOOT_BUTTON, 0);
}
 
combo RapidSpot {
    set_val(SPOT_BUTTON, 100);
    wait(hold_time);
    set_val(SPOT_BUTTON, 0);
    wait(rest_time);
    set_val(SPOT_BUTTON, 0);
}
 
combo Brawl {
    set_val(PS4_SQUARE, 100);
    set_led(LED_4, 2);
    wait(80);
    set_val(PS4_SQUARE, 0);
    set_led(LED_2, 0);
    wait(60);
    set_val(PS4_SQUARE, 0);
    set_led(LED_4, 0);
}   
 
combo StrongAttack {
    set_val(PS4_TRIANGLE, 100);
    wait(100);
    set_val(PS4_TRIANGLE, 0);
    Timeout_Melee = 0;
}
 
combo Action {
    set_val(PS4_SQUARE, 100);
    wait(40);
    set_val(PS4_SQUARE, 0);
    wait(20);
    set_val(PS4_SQUARE, 0);
}
 
combo c_Auto_Aimm {
    set_val(10, shake *- 1);
    wait(20);
    set_val(9, shake);
    wait(20);
    set_val(10, shake);
    wait(20);
    set_val(9, shake *- 1);
    wait(20);
}
 
// COLOR LED INDICATION for PS4 *NO NEED TO EDIT BELOW*
//--------------------------------------------------------------
function colorled(a,b,c,d) {
set_led(LED_1,a);
set_led(LED_2,b);
set_led(LED_3,c);
set_led(LED_4,d);
}
User avatar
faheem786
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Tue Aug 27, 2019 9:22 pm

Re: can someone help fix this script i cannot compile it for

Postby Mad » Thu Aug 27, 2020 8:52 am

That script already has rapidfire, aim assist, auto spot. :smile0517:
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

Re: can someone help fix this script i cannot compile it for

Postby faheem786 » Thu Aug 27, 2020 8:53 am

yh iknow but can u combine it with the first script? is that possible g
User avatar
faheem786
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Tue Aug 27, 2019 9:22 pm

Re: can someone help fix this script i cannot compile it for

Postby Mad » Thu Aug 27, 2020 8:55 am

faheem786 wrote:yh iknow but can u combine it with the first script? is that possible g

Both scripts has those features, there is no need to combine.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

Re: can someone help fix this script i cannot compile it for

Postby faheem786 » Thu Aug 27, 2020 9:19 am

nah on the first script the rapid is slow and the second script rapid is fast thats why im saying can u combine it and not every aim assist script works the way i play on my game
User avatar
faheem786
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Tue Aug 27, 2019 9:22 pm

Re: can someone help fix this script i cannot compile it for

Postby Mad » Thu Aug 27, 2020 9:35 pm

Code: Select all
//-- Settings --//
define AimAssist = TRUE; // hold L2 = run aim assist.
define RapidFire = TRUE; // hold L2 + R2 = run rapid fire.
define AutoPing = TRUE; // hold L2 = run auto ping / spawn R3.
define RATE_OF_FIRE = 25; // Range: 1 to 25 RPS (Round/s)
 
int hold_time;
int rest_time;
 
init {
     hold_time = 500 / RATE_OF_FIRE;
     rest_time = hold_time - 20;
     if(rest_time < 0) rest_time = 0;
}
 
//-- Main Block --//
main {
    if(AimAssist){
        if(get_val(XB1_LT)){
            combo_run(Aim_Assist);
        }
    }
    if(RapidFire){
        if(get_val(XB1_LT) && get_val(XB1_RT)){
             combo_run(Rapid_Fire);
        }
    }
     if(AutoPing){
        if(get_val(XB1_LT)){
             combo_run(Auto_Ping);
        }
    }
}// Main End
 
//-- List of Combos --//
combo Aim_Assist { // circular aim assist.
    set_val(XB1_RY, 20);
    wait(20);
    set_val(XB1_RX, 20);
    wait(20);
    set_val(XB1_RY,-20);
    wait(20);
    set_val(XB1_RX,-20);
    wait(20);
}
 
combo Rapid_Fire {
    set_val(XB1_RT, 100);
    wait(hold_time);
    set_val(XB1_RT, 0);
    wait(rest_time);
    set_val(XB1_RT, 0);
}
 
combo Auto_Ping { // auto-ping (10/sec).
    set_val(XB1_RS,100);
    wait(25);
    wait(75);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

Re: can someone help fix this script i cannot compile it for

Postby faheem786 » Fri Aug 28, 2020 7:02 pm

thx bro but last thing there is so much shake when i aim
User avatar
faheem786
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Tue Aug 27, 2019 9:22 pm

Re: can someone help fix this script i cannot compile it for

Postby Mad » Fri Aug 28, 2020 8:21 pm

I have added an adjustable value at the top of the script (AA_VALUE) it was previously 20, now 15.
If it's still to much, just disable aim assist by setting "AimAssist" to FALSE
Code: Select all
//-- Settings --//
define AimAssist = TRUE; // hold L2 = run aim assist.
define RapidFire = TRUE; // hold L2 + R2 = run rapid fire.
define AutoPing = TRUE; // hold L2 = run auto ping / spawn R3.
define RATE_OF_FIRE = 25; // Range: 1 to 25 RPS (Round/s)
define AA_VALUE = 15; // Aim assist value
 
int hold_time;
int rest_time;
 
init {
     hold_time = 500 / RATE_OF_FIRE;
     rest_time = hold_time - 20;
     if(rest_time < 0) rest_time = 0;
}
 
//-- Main Block --//
main {
    if(AimAssist){
        if(get_val(XB1_LT)){
            combo_run(Aim_Assist);
        }
    }
    if(RapidFire){
        if(get_val(XB1_LT) && get_val(XB1_RT)){
             combo_run(Rapid_Fire);
        }
    }
     if(AutoPing){
        if(get_val(XB1_LT)){
             combo_run(Auto_Ping);
        }
    }
}// Main End
 
//-- List of Combos --//
combo Aim_Assist { // circular aim assist.
    set_val(XB1_RY, AA_VALUE);
    wait(20);
    set_val(XB1_RX, AA_VALUE);
    wait(20);
    set_val(XB1_RY,-AA_VALUE);
    wait(20);
    set_val(XB1_RX,-AA_VALUE);
    wait(20);
}
 
combo Rapid_Fire {
    set_val(XB1_RT, 100);
    wait(hold_time);
    set_val(XB1_RT, 0);
    wait(rest_time);
    set_val(XB1_RT, 0);
}
 
combo Auto_Ping { // auto-ping (10/sec).
    set_val(XB1_RS,100);
    wait(25);
    wait(75);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

Next

Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 73 guests

cron