TPP PUBG aim acceleration in game mod

has mods with what title says
Version1.0
Authornorge1
Publish DateMon, 12 Feb 2018 - 21:35
Last UpdateMon, 12 Feb 2018 - 21:35
Downloads388
RATE


1

0

Code: Select all
//
// Sat Dec 23 2017 17:23:26
// Script generated by Visual to GPC
//----------------------------------------
 
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   
 
// VARIABLES
// ---------------------------------------------------------
 
int AutoSpotOnOff;
int toggle;
int anti_recoil;
int anti_recoil_left;
int anti_recoil_right;
int RunSens = 75;
int AimSens = 75;
int menumode; 
int tens, digits;
int _flashstate;
int ledv;
int mode;
int aimsens;
int runsens;
int run;
 
init
{
    RunSens = get_pvar(SPVAR_1, 0, 100, 75);
    AimSens = get_pvar(SPVAR_2, 0, 100, 50);
}
 
 
/* ----------------------------------------------------------------------------------------------------------------------
 *  MAIN
**/

main {
    // If RT is pressed, jitter will run//
    if(get_val(XB1_RT)){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);
        }
    }
    if (get_val(XB1_RIGHT)) toggle =  TRUE; // Turn it on when you press DPAD LEFT
    if (get_val(XB1_A)) toggle = FALSE; // turn it off when you press DPAD LEFT
    if (toggle) {
    }else combo_stop(jitter);
    if (toggle) {
    }else combo_stop(rapidfire);
    if (toggle) {
    }else combo_stop(quickscope);
    if (toggle) {
    }else combo_stop(quickscope2);
 
    set_val(TRACE_1, RunSens);
    set_val(TRACE_2, AimSens);
 
    if(event_release(0) )
    {
        _flashstate = 1;
        menumode = !menumode
        combo_run(menurumble2);
    }
    if(get_val(0))
        block(0,1000);
 
    if (flash_state())
        {
 
        // Sensitivity Settings START
 
        // ADS
        if (get_val(7))
        {       
            sensitivity( 9, 68, AimSens);       
            sensitivity(10, 68, AimSens);
        }
        else
        {       
        // HipFire
            sensitivity( 9, 68, RunSens);
            sensitivity(10, 68, RunSens);
        }
        // Sensitivity Settings END
    }
}
 
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 menurumble {
    set_rumble(RUMBLE_A, (100));
    set_rumble(RUMBLE_B, (100));
    wait(200);
    reset_rumble();
}
 
combo menurumble2 {
    set_rumble(RUMBLE_A, (100));
    set_rumble(RUMBLE_B, (100));
    wait(200);
    reset_rumble();
    set_rumble(RUMBLE_A, (100));
    set_rumble(RUMBLE_B, (100));
    wait(200);
    reset_rumble();
}
 
 
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(10) + ANTI_RECOIL;
    if(anti_recoil > 100) anti_recoil = 100;
    set_val(10, anti_recoil);
    anti_recoil_left = get_val(9) -ANTI_RECOIL_LEFT;
    if(anti_recoil_left > 100) anti_recoil_left = 100;
    set_val(9, anti_recoil_left);
    anti_recoil_right = get_val(9) +ANTI_RECOIL_RIGHT;
    if(anti_recoil_right > 100) anti_recoil_right = 100;
    set_val(9, anti_recoil_right);
    }
 }
 
function flash_state()
{
    if (menumode)
    {
 
        if(event_press(1))
        {
            run = FALSE;
            combo_run(menurumble);
        }
 
        if(event_press(2))
        {
            run = TRUE;
            combo_run(menurumble);
        }
 
        if(!run)
        {
            RunSens = AdjustVar(RunSens, 0, 100);
            mode = RunSens;
        }
        else
        {
            AimSens = AdjustVar(AimSens, 0, 100);
            mode = AimSens;
        }
 
        tens = (mode / 10) % 10;
        digits = mode % 10;
 
        if (!get_ledx())
        {
 
            if ((_flashstate == 1) || (_flashstate == 3))
            {
                ledv = ledv - get_rtime();
                if (ledv <= 0)
                    _flashstate = _flashstate + 1;
            }
            if (_flashstate == 2)
            {
                set_ledx(2, tens);
                ledv = 300;
                _flashstate = 3;
            }
            if (_flashstate == 4)
            {
                if (digits)
                    set_ledx(3, digits);
                ledv = 600;
                _flashstate = 1;
            }
        }
        return 0;
 
    }     
    else if (!menumode && _flashstate)
    {
        _flashstate = 0;
        set_pvar(SPVAR_1, RunSens);
        set_pvar(SPVAR_2, AimSens);
        reset_leds();
    }   
    return 1;
}
 
function AdjustVar(var, min, max)
{
    if(event_press(13) && var < max)
        var = var + 1;
    if(event_press(14) && var > min)
        var = var - 1;
    if(event_press(16) && var < max)
        var = var + 10;
    if(event_press(15) && var > min)
        var = var - 10;
    if(var > 100)
        var = 100;
    if(var < 0)
        var = 0;
    return var;
}