Page 1 of 1

apex legends script testing discussion

PostPosted: Wed Feb 13, 2019 2:02 am
by norge1
i have a script for apex legends if someone wants to test.
pm me and let me know.
dont forget to mention here if it works!!
if it works ill publish in gpc archive in gtuner iv

heres the script:
ignore some stuf like autospot just left in there from another script
turn on=dpad right
turn off=A or X
it has basic essentials for all shooters,
but i wanted to see if binding ping would work with this game like in siege.
EDITED well i tested myself since no one wanted to tell me if it works, it doesnt work - confirmed.
if someone wants to fix feel free

Code: Select all
#pragma METAINFO("apex legends", 1, 0, "norge1")
#include <titanone.gph>
 
//
// Sat Dec 23 2017 17:23:26
// Script generated by Visual to GPC
//----------------------------------------
define SHOOT_BTN         = XB1_RT;
define ONLY_WITH_SCOPE   = TRUE; // Use Anti-recoil only when scoping
define ANTI_RECOIL       = 80;   //change "0" to compensate vertical recoil (0 - 100)
define ANTI_RECOIL_LEFT  = 80;   //change this value to compensate to the left (0 - 100)
define ANTI_RECOIL_RIGHT = 80;   //change this value to compensate to the right (0 - 100)
define INSTA_FIRE        = 95;   // The % at which it boosts the SHOOT button when pressed - i.e. 95% means when pressed 5%
define INSTA_AIM         = 95;   // The % at which it boosts the ADS button when pressed - i.e. 95% means when pressed 5%
define ADS_SPEED         = 20;   // The % at which it boosts your aiming speed when using ADS   
define PING_BTN          = XB1_RB; // PING
 
// VARIABLES
// ---------------------------------------------------------
int AutoSpotOnOff;
int toggle;
int anti_recoil;
int anti_recoil_left;
int anti_recoil_right;
 
/* ----------------------------------------------------------------------------------------------------------------------
 *  MAIN
**/

main {
    if(get_val(XB1_RIGHT)) toggle = TRUE; // Turn it on when you press DPAD LEFT
    else if(get_val(XB1_A)) toggle = FALSE; // turn it off when you press DPAD LEFT
    if(toggle) {
        if(get_val(XB1_RT)) { // If RT is pressed, jitter will run
            combo_run(jitter);
        }
        if(get_val(XB1_RT)) {
            combo_run(rapidfire);
        }   
        if(get_val(XB1_LT)) {
            if(get_val(XB1_LT)) {
                combo_run(quickscope);
            } else {
                combo_run(quickscope2);
            }
        }
    } else {
        combo_stop(jitter);
        combo_stop(rapidfire);
        combo_stop(quickscope);
        combo_stop(quickscope2);
    }
    if(get_val(XB1_RB) && event_press(XB1_RT)) {
        combo_run(LOCATION_MARKER);
    }
}
 
combo RumbleNotifier {
    set_rumble(RUMBLE_A, 100);
    wait(300);
    reset_rumble();
}
 
combo jitter{
    set_val(XB1_RT, 40);
    wait (20);
    set_val(XB1_RT, 40);
    wait (20);
    set_val(XB1_RT, 40);
    wait (20);
    set_val(XB1_RT, 40);
    wait (20);
    set_val(XB1_RT, 40);
    wait (20);
    set_val(XB1_RT, 0);
}
 
combo rapidfire {
    set_val(XB1_RT, 40);
    wait(40);
    set_val(XB1_RT, 0);
}
 
combo FastReloadIMR {
    set_val(XB1_X, 100);
    wait(40);
    set_val(XB1_X, 0);
    wait(500); // << Adjustable timing
    set_val(XB1_X, 0);
    set_val(XB1_LX, 0);
    set_val(XB1_LY, -100);
    wait(40);
}
 
combo quickscope {
    set_val(XB1_LT, 100);
    wait(10);
    set_val(XB1_LT, 0);
}
 
combo quickscope2 {
    set_val(XB1_LT, 100);
    wait(20);
    set_val(XB1_LT, 0);
    wait(10);
    set_val(XB1_LT, 0);
}
 
combo LOCATION_MARKER {
    set_val(PING_BTN, 100);
    wait(100);
}
 
combo AntiRecoil { // This combo must be the last one
    // Look Inversion Enabled
    anti_recoil = get_val(XB1_RY) - ANTI_RECOIL;            // SUBTRACT anti_recoil when LOOK INVERSION is ENABLED
    if(anti_recoil > 100) anti_recoil = 100;
    set_val(XB1_RY, anti_recoil);
    anti_recoil_left = get_val(XB1_RX) - ANTI_RECOIL_LEFT;
    if(anti_recoil_left < -100) anti_recoil_left = -100;
    set_val(XB1_RX, anti_recoil_left);
    anti_recoil_right = get_val(XB1_RX) + ANTI_RECOIL_RIGHT;
    if(anti_recoil_right > 100) anti_recoil_right = 100;
    set_val(XB1_RX, anti_recoil_right);
    if(get_val(XB1_RT)) {
        anti_recoil = get_val(XB1_RY) + ANTI_RECOIL;
        if(anti_recoil > 100) anti_recoil = 100;
        set_val(XB1_RY, anti_recoil);
        anti_recoil_left = get_val(XB1_RX) -ANTI_RECOIL_LEFT;
        if(anti_recoil_left > 100) anti_recoil_left = 100;
        set_val(XB1_RX, anti_recoil_left);
        anti_recoil_right = get_val(XB1_RX) +ANTI_RECOIL_RIGHT;
        if(anti_recoil_right > 100) anti_recoil_right = 100;
        set_val(XB1_RX, anti_recoil_right);
    }
 }
 

Re: apex legends script testing discussion

PostPosted: Thu Feb 14, 2019 12:27 pm
by J2Kbr
thank you for sharing your script with us. :smile0517: