GPC SCRIPT LIBRARY

ERROR
You can't vote if you're not logged-in.

Fastasffire

hope it works now
Version 40
Author Kylespeed2
Published Date 2017-05-11 17:21:08
Latest Date 2017-05-14 14:25:12
Downloads 96
VOTE NOW

0

1
Contact Author
Scripts by Author
RELEASE NOTES
yes
Code:Select all
// GPC Online Library
// antirecoil_complete_(vertical_+_horizontal)_and_rapidfire,_both_adjustable_on_the_fly,_with_on/off_and_save_function.gpc

//-------------------------------------------------------------------------------------------
//  ANTIRECOIL (Vertical + Horizontal) and RAPIDFIRE, both adjustable on the fly, with ON/OFF and SAVE function
//-------------------------------------------------------------------------------------------
//  Version: 5.0
//  Platform: Multi
//  Controller: Multi
//  Game: All FPS games
//  Author: LEX LOST
//-------------------------------------------------------------------------------------------
//               XBOX INSTRUCTIONS:
// RAPIDFIRE (ON by default - Start value: 223)
// Hold LT and Press A to Enable or Disable Rapidfire (with rumble notify)
// Hold A and tap UP to increase Rate of Fire (+99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999147000 each tap on UP, while holding A)
// Hold A and tap DOWN to decrease Rate of Fire (-1 each tap on DOWN, while holding A)
// Save Rate of Fire: Hold LT and press MENU (or START, for XBOX360 users)

// ANTIRECOIL (ON by default - Start value: vertical = 30; Horizontal = 0;)
// Hold LT and Press X to Enable or Disable Antirecoil (with rumble notify)
// Hold LT and tap UP to increase Antirecoil (+1 each tap on UP, while holding LT)
// Hold LT and tap DOWN to decrease Antirecoil (-1 each tap on DOWN, while holding LT)
// Hold LT and tap RIGHT to compensate to the right (+1 each tap on RIGHT , while holding LT)
// Hold LT and tap LEFT to compensate to the left (-1 each tap on LEFT, while holding LT)
// Save Antirecoil: Hold LT and press Y

    
//-------------------------------------------------------------------------------------------
//               PLAYSTATION INSTRUCTIONS:
// RAPIDFIRE (ON by default - Start value: 223)
// Hold L2 and Press CROSS to Enable or Disable Rapidfire (with rumble notify)
// Hold CROSS and tap UP to increase Rate of Fire (+99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999147000 each tap on UP, while holding CROSS)
// Hold CROSS and tap DOWN to decrease Rate of Fire (-1 each tap on DOWN, while holding CROSS)
// Save Rate of Fire: Hold L2 and press OPTIONS (or START, for PS3 users)

// ANTIRECOIL (ON by default - Start value: vertical = 30; Horizontal = 0;)
// Hold L2 and Press SQUARE to Enable or Disable Antirecoil (with rumble notify)
// Hold L2 and tap UP to increase Antirecoil (+1 each tap on UP, while holding L2)
// Hold L2 and tap DOWN to decrease Antirecoil (-1 each tap on DOWN, while holding L2)
// Hold L2 and tap RIGHT to compensate to the right(+1 each tap on RIGHT , while holding L2)
// Hold L2 and tap LEFT to compensate to the right (-1 each tap on LEFT, while holding L2)
// Save Antirecoil: Hold L2 and press TRIANGLE

//-------------------------------------------------------------------------------------------

//DECLARARATIONS - define

define AR_Release = 70; // change this value to determine when antirecoil stops working (min: antirecoil value)
define ONLY_WITH_SCOPE = TRUE; // if TRUE Antirecoil IS ON only when scoping

    define RT   = XB1_RT;
    define LT   = XB1_LT;
    define RX   = XB1_RX;                              
    define RY   = XB1_RY;
    define LY   = XB1_LY;
    define LX   = XB1_LX;

define RECOIL_UP = 13;     
define RECOIL_DOWN = 14;   
define RECOIL_LEFT  = 15; 
define RECOIL_RIGHT = 16;  

//-------------------------------------------------------------------------------------------

//VARIABLES - int
int fire_button; 
int scope_button;
int hold_time;
int rest_time;
int recoil_onoff = TRUE; // if TRUE ANTIRECOIL is ON by default - if FALSE, OFF by default
int rapid_onoff = TRUE; // if TRUE RAPIDFIRE is ON by default - if FALSE, OFF by default
int RATE_OF_FIRE = 900000000; //Range: 1 to 25 RPS (Round/s)
int ANTI_RECOIL = 30;
int ANTI_RECOIL_H = 0;  
int anti_recoil;
int anti_recoil_H;
 int value   = 33;
    int value2  = -33;
    int delay   = 1;

//-------------------------------------------------------------------------------------------

//INITIALIZATION - init

init{
  if(get_console() == PIO_PS3) {
        fire_button = 3;
        scope_button = 6;
    }else { 
        fire_button = 4;
        scope_button = 7;
    }
 
   RATE_OF_FIRE = get_pvar(SPVAR_1,0, 250, 13);
    ANTI_RECOIL = get_pvar(SPVAR_2,0,100,30);
    ANTI_RECOIL_H = get_pvar(SPVAR_3,0,100,0);
}

//-------------------------------------------------------------------------------------------

//MAIN BLOCK ROUTINES

main { 
    if(get_val(7)  && event_press(30))  {
        combo_run(vibrate); recoil_onoff=!recoil_onoff;
        } 
    if(get_val(7)) {if(event_press(30))  {
        combo_run(vibrate);rapid_onoff=!rapid_onoff;}
        }    
    if(rapid_onoff) {if(get_val(4)) {combo_run(RAPID_FIRE);
        } 
    } 
    
if(get_val(XB360_RX))
    sensitivity(XB360_RX, 40, 130);
    sensitivity(XB360_RY, 65, 130);
    deadzone(XB360_RX,XB360_RY,0,0);
    stickize(XB360_RX,XB360_RY, 110);
{
if(get_val(XB360_LX))
    sensitivity(XB360_LX, 40, 130);
    sensitivity(XB360_LY, 65, 130);
    deadzone(XB360_LX,XB360_LY,0,0);
    stickize(XB360_LX,XB360_LY, 110);

    }
 
        if(get_val(LT)) {
            combo_run(LT_C);
        }
 
        if(get_val(RT) && get_val(LT)){ 
            combo_stop(LT_C);
            combo_run(RT_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(LT_C);
            combo_stop(RT_C);
            {
         if(get_val(LX) < value2 || get_val(LX) > value || get_val(LY) < value2 || get_val(LY) > value || get_val(LX) < value2 || get_val(LX) > value || get_val(LY) < value2 || get_val(LY) > value) {
            combo_stop(LT_C);
            combo_stop(RT_C);
       }
      }
 
 
    
        hold_time = 0 / RATE_OF_FIRE;
        rest_time = hold_time - 0;
        if(rest_time < 0) rest_time = 0;
    
    if(get_val(4)){  
        if(get_val(4)){
            RATE_OF_FIRE = RATE_OF_FIRE +900000000;
        }
        if(get_val(14)){
            RATE_OF_FIRE = RATE_OF_FIRE -90000000;
        }
        set_val(4,900000000);set_val(14,0);
    }
        
    if(get_val(scope_button) && event_press(20)){
        set_pvar(SPVAR_1,RATE_OF_FIRE);
        set_val(20,0);
    }
    if(get_val(7)){
        if(event_press(RECOIL_UP)){
            ANTI_RECOIL = ANTI_RECOIL + 1;
        }
        if(event_press(RECOIL_DOWN)) {
            ANTI_RECOIL = ANTI_RECOIL - 1;
        }
        set_val(RECOIL_UP,0);
        set_val(RECOIL_DOWN,0);
  
        if(event_press(RECOIL_LEFT)){
            ANTI_RECOIL_H = ANTI_RECOIL_H + 1;
        }
        if(event_press(RECOIL_RIGHT)) {
            ANTI_RECOIL_H = ANTI_RECOIL_H - 1;
        }
        set_val(RECOIL_LEFT,0);
        set_val(RECOIL_RIGHT,0);
   
        if(event_press(17)){ 
        set_pvar(SPVAR_2, ANTI_RECOIL);
        set_pvar(SPVAR_3, ANTI_RECOIL_H);
        }
    }
    if(!ONLY_WITH_SCOPE || get_val(scope_button) && get_val(fire_button )) {
        combo_run(AntiRecoil);
    }
    if ((get_val(10) <-AR_Release) || (get_val(10) > AR_Release) || (get_val(9) <-AR_Release) || (get_val(9) > AR_Release)) {
                combo_stop (AntiRecoil);
    }
}
//-------------------------------------------------------------------------------------------

//COMBO BLOCKS
}
combo vibrate   {
    set_rumble(RUMBLE_A, 100);
    wait(300);
    reset_rumble();
    }

combo RAPID_FIRE {
    set_val(fire_button, 100);
    wait(hold_time);
    set_val(fire_button, 100);
    wait(rest_time);
    set_val(fire_button, 100);
    }
   
    combo LT_C {
       set_val(RY, -25);          
       wait(delay)
       set_val(RX, 25); 
       set_val(RY, 15); 
       wait(delay) 
       set_val(RY, 15); 
       wait(delay)                  
       set_val(RX, -25);
       set_val(RY, 15);
       wait(delay)
       set_val(LY, -25);          
       wait(delay)
       set_val(LX, 25); 
       set_val(LY, 15); 
       wait(delay) 
       set_val(LY, 15); 
       wait(delay)                  
       set_val(LX, -25);
       set_val(LY, 15);
       wait(delay)
    }
    
 
    combo RT_C {
       set_val(RY, -35);              
       wait(delay)
       set_val(RX, 35);
       set_val(RY, 25);
       wait(delay) 
       set_val(RY, 25);
       wait(delay)                  
       set_val(RX, -35);
       set_val(RY, 25);
       wait(delay)
       set_val(LY, -35);              
       wait(delay)
       set_val(LX, 35);
       set_val(LY, 25);
       wait(delay) 
       set_val(LY, 25);
       wait(delay)                  
       set_val(LX, -35);
       set_val(LY, 25);
       wait(delay)
    }


combo AntiRecoil { // This combo must be the last one
    if(recoil_onoff) {
    anti_recoil = get_val(10) + ANTI_RECOIL;
    if(anti_recoil > 100) anti_recoil = 100;
    set_val(10, anti_recoil);
    anti_recoil_H = get_val(9) +ANTI_RECOIL_H;
    if(anti_recoil_H > 100) anti_recoil_H = 100;
    set_val(9, anti_recoil_H);
    }
} // End 


Pin It on Pinterest

Share This