GPC Library

GTA V - RAPID FIRE - ANTI-RECOIL - AUTO-RUN - AUTO-AIM - ARM WRESTLING

/* ** GTA V == RAPID FIRE == ANTI-RECOIL == AUTO-RUN == AUTO-AIM == ARM WRESTLING
*
*AUTO RUN - TAP X ONCE TO JOG, DOUBLE TAP X TO RUN - MUST HAVE LEFT STICK FORWARD TO WORK
*
* TOGGLES:
* RAPID FIRE - SQUARE + DOWN
* AUTO AIM - SQUARE + RIGHT
* ANTI-RECOIL - SQUARE + UP
* ARM WRESTLING - L3 + R3
* *********************************************************** */
Version 1
Author highweigh
Publish Date 2017-03-18 16:58:56
Update Date 2017-03-18 16:59:27
Downloads 157
RATE


0

0

Release Notes: 3/18/2017
Code:Select all

/* ** GTA V == RAPID FIRE == ANTI-RECOIL == AUTO-RUN == AUTO-AIM == ARM WRESTLING
*
*AUTO RUN - TAP X ONCE TO JOG, DOUBLE TAP X TO RUN - MUST HAVE LEFT STICK FORWARD TO WORK
*
* TOGGLES:
* RAPID FIRE - SQUARE + DOWN
* AUTO AIM - SQUARE + RIGHT
* ANTI-RECOIL - SQUARE + UP
* ARM WRESTLING -  L3 + R3
* *********************************************************** */
 
 //Adjust these for anti-recoil and rapid fire//
define RATE_OF_FIRE   = 13; //  1 to 25 RPS (Round/s)
define ANTI_RECOIL    = -25;
///////////////////////////////////////////////
define FIRE_BUTTON    = PS4_R2;
define SPRINT_BUTTON  = PS4_CROSS;
define AIM_BUTTON     = PS4_L2;
define time_to_dblclick  = 300;// time for second click to occur
int hold_time;
int rest_time;
int anti_recoil;
int sprint;
int walk;
int ActivateRapidFire   = TRUE//FALSE
int ActivateSprint      = TRUE//FALSE 
int ActivateAIM         = TRUE//FALSE
int ActivateAntiRecoil  = TRUE//FALSE
int ActivateWrestling   = FALSE//TRUE
int dbl_time2;
int dbl_time ;
int timer;
 
 
int rumble_type; 
 
 
 
init {
    colorled(0,0,3,0); 
    hold_time = 500 / RATE_OF_FIRE;
    rest_time = hold_time - 20;
    if(rest_time < 0) rest_time = 0;
} 
 
 
main {

 
 
//===================//
///TOGGLES
//===================//
 
 
	 if(get_val(PS4_SQUARE)) 
     {
          if(event_release(PS4_DOWN))
          {
		  	ActivateRapidFire = !ActivateRapidFire;
			if(ActivateRapidFire) combo_run(Rumble_Activated);
			else combo_run(Rumble_Deactivated);
		  }
 
 
	if(event_release(PS4_RIGHT)) 
		  {
		  	ActivateAIM = !ActivateAIM;
			if(ActivateAIM) combo_run(Rumble_Activated);
			else combo_run(Rumble_Deactivated);
		  }
 
 
	if( event_release(PS4_UP)) 
		  {
		  	ActivateAntiRecoil = !ActivateAntiRecoil;
			if(ActivateAntiRecoil) combo_run(Rumble_Activated);
			else combo_run(Rumble_Deactivated);
		  }
     }
 
   
	 if(get_val(PS4_L3) && event_release(PS4_R3))
	 {
	 	ActivateWrestling = !ActivateWrestling;
		if(ActivateWrestling) combo_run(Rumble_Activated);
		else combo_run(Rumble_Deactivated);
	 }
 
 
 
//===================//
///COMMANDS
//===================//
 
 
//RAPID-FIRE
	if(ActivateRapidFire)
	{
	    if(get_val(FIRE_BUTTON)) {
	        combo_run(RapidFire); 
	    } else if(combo_running(RapidFire)) { 
	        combo_stop(RapidFire); 
	    }
    }
 
//SPRINT
       if( abs(get_val(12))>60 || abs(get_val(11))>60){
 
 
            if(event_press(PS4_CROSS) && dbl_time<=0){
		    	 dbl_time = 300;
 
 
		         if(walk == 0) walk = 1;
		         else if(walk == 1) walk = 0;
		         else if(walk == 2) walk = 0;
 
		    }else if(event_press(PS4_CROSS) && dbl_time){
		           walk = 2;
		    }
		     if(dbl_time) dbl_time = dbl_time - get_rtime();
 
 
		    if(walk == 2)
		    {
		       combo_run(SPRINT);
		    }
		    else if(walk == 1)
		    {
		         set_val(PS4_CROSS,100);
		    }
 
      }
      else {
           sprint = FALSE;
           walk = FALSE;
      }
      
//Stop SPRINT when either triggers are pressed.
	    if(combo_running(SPRINT) && get_val(4) || get_val(7)) { 
	        combo_stop(SPRINT); 
        } 
      
 
 
//AIM
	    if(ActivateAIM)
		{
			if(get_val(AIM_BUTTON)) 
			{
				if(!combo_running(Aim))
		        combo_run(Aim); 
		    }  else if(combo_running(Aim)) 
 
		        combo_stop(Aim); 
 
		}
//Anti-Recoil
		if(ActivateAntiRecoil)
		{
			if(get_val(FIRE_BUTTON)) 
			{
		        combo_run(AntiRecoil); 
		    } else if(combo_running(AntiRecoil)) 
		    { 
		        combo_stop(AntiRecoil); 
		    }
		}
 
//Wrestling
		if(ActivateWrestling)
		   combo_run(Wrestling); 
		else if(combo_running(Wrestling)) 
		   combo_stop(Wrestling);
 
 

 
} 
//===================//
///COMBOS
//===================//
 
 
 
 
combo Rumble_Activated
{
  	set_rumble(RUMBLE_A, 100); 
  	set_rumble(RUMBLE_B, 100); 
  	wait(200)
  	reset_rumble();  
}
combo Rumble_Deactivated
{
  	set_rumble(RUMBLE_A, 100); 
  	set_rumble(RUMBLE_B, 100); 
  	wait(600)
  	reset_rumble();  
}
 
 
combo RapidFire {
    set_val(FIRE_BUTTON, 100);
    wait(hold_time);
    set_val(FIRE_BUTTON, 0);
    wait(rest_time);
    set_val(FIRE_BUTTON, 0);
    }
 
combo SPRINT {
    set_val(PS4_CROSS,100);
    wait(50);
    set_val(PS4_CROSS,  0);
    wait(50);
}
 
 
combo Aim{
	set_val(AIM_BUTTON, 100);
    wait(300);
    set_val(AIM_BUTTON, 0);
    wait(01);
    set_val(AIM_BUTTON, 0);
}
 
 
combo AntiRecoil {
        anti_recoil = get_val(10) + ANTI_RECOIL;
        if(anti_recoil < -100) anti_recoil = -100;
        set_val(10, anti_recoil);
} 
 
 
combo Wrestling {
	set_val(PS4_LX, 100);
	wait(40);
	set_val(PS4_LX, -100);
	wait(40);
}
 
 
 
 
//===================//
///LED
//===================//
 
 
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);
}
  • Rating

    10 / 10 here !

    If you own a ps3 and prefer an xbox controller, or even use a keyboard and mouse, this is a must to remap your keyboard to a controller. Go buy it now you won't be disappointed !

  • Rating

    Amazing device

    If you're like me and love your PS4 controller but want to use an Xbox One GET THIS you won't be sorry.

  • Rating

    Worth every penny

    The controller feels and performs as it does on the xbox right there on my ps3, awesome job guys, and worth every penny !!!

  • Rating

    Amazing Macro combos

    tested Super Street Fighter IV Arcade Edition. I was able to perform normal & FADC combos with some characters like Ryu and Ken with a single click. Amazing.

  • Rating

    As good as a XIM

    If you are a pc gamer, that needs a pc solution for console, get yourself a ControllerMAX you will not regret it.

  • Rating

    KB & Mouse RULES!

    All I can say playing 10 minutes with ControllerMAX properly configured it felt better then PC....YES I said it even better then PC, it's that smooth.

  • Rating

    Six-Axis 360!

    WOW! I can finally get that six-axis awesomeness on my Xbox 360. The best money I ever spent.

  • Rating

    Beats all rapidfire mods

    I've tried the Intensafire, Godfather even the new Wolf controller. The ControllerMAX beats them hands down and no wires or soldering too. 5 Stars!

  • Rating

    Just perfect!

    I can't believe how much this can do for the price tag - it blew me away. Best controller upgrade ever.

  • Rating

    Hugh Thanks!

    Without your help I couldn't be playing Xbox, thanks guys.

  • Rating

    Wow!

    I have to say after reading the forums for Destiny Mouse and Keyboard setup I was flying into getting it set up in 20 minutes. It works outstanding! I'm more then satisfied and its worth every penny!

  • Rating

    Achievement Unlocked!

    Idle boosting Complete 150 Multiplayer games, James Cameron's Avatar. My friend said it would be hard, I laughed then linked him.

  • Rating

    A++!

    Now this is a company you can count on and trust...keep up the great work guys!

  • Rating

    What Disability?

    I would like to thank you for making the CronusMax. I have this problem hitting L3 and R3, and today that problem was fixed. I love the remap feature on the Cronus max. You made my life easier.

  • Rating

    Awesome stuff guys!

    Playing Forza 5 with my original MS 360 wireless wheel makes the XB1 complete for me, thanks to the CronusMax. Thumbs up!