// GPC Online Library
// Rapid_Fire_Anti_Recoil_Rize_V1.1.gpc
/*
FPS Rapid Fire Anti Recoil Suite
Try three different fire modes:
-------------------------------------------------------------------------
Mode 1 Rapid Fire [ ACTIVATE BY L2 + LEFT ON THE D PAD ] | PS4
RAPID FIRE. DS4 LIGHTBAR & TITAN ONE LED TURN RED WHEN ACTIVATED
-------------------------------------------------------------------------
Mode 2 ANTI RECOIL ONE [ ACTIVATE BY L2 + UP ON THE D PAD ] | PS4
ANTI RECOIL. YOU CAN SET THIS FOR A SPECIFIC CLASS OR WEAPON EG. ASSULT RIFLES
SD4 LIGHTBAR & TITAN ONE LED TURN GREEN WHEN ACTIVATED
-------------------------------------------------------------------------
Mode 3 ANTI RECOIL TWO [ ACTIVATE BY L2 + RIGHT ON THE D PAD ] | PS4
ANTI RECOIL. YOU CAN SET THIS FOR A SPECIFIC CLASS OR WEAPON EG. SMG'S
DS4 LIGHTBAR & TITAN ONE LED TURN PURPLE WHEN ACTIVATED
-------------------------------------------------------------------------
To return back to Neutral firing or Regular mode just De-Activate the mode
by pressing the same activation sequence. EG.
if you turned on rapid fire with L2 + LEFT ON THE D PAD,
deactivate with L2 + LEFT ON THE D PAD.
It is SAFE to switch modes directly, i.e. moving from Rapid Fire to
Anti Recoil One or Two without first deactivating.
The LED indicator on the back of your PS4 controller will describe the mode
BLUE - Neutral, no mods active [except hair trigger.. comeonnow]
RED - Rapid Fire
GREEN - Anti Recoil One
PURPLE - Anti Recoil Two
Feel Free Share And Modify This Script As Needed
Rapid_Fire_Anti_Recoil_Rize_V1.1
-Rize
QUESTIONS OR COMMENTS YOU CAN FIND THREAD LOCATED AT
http://www.consoletuner.com/forum/viewtopic.php?f=6&t=2296
Special Thanks To
Neil Amouyal & Knightmare
*/
//Rapid Fire Settings
//===================================================================================================================================================
define RATE_OF_FIRE = 19; // Range: 1 to 25 Rate Of Fire this varies for each weapon and configuration (i.e type, variant, attachments)
//===================================================================================================================================================
// Anti Recoil One
//===================================================================================================================================================
define ANTI_RECOIL_1 = 15; //change this value to compensate to the vertical recoil
define ANTI_RECOIL_LEFT_1 = 0; //change this value to compensate to the left
define ANTI_RECOIL_RIGHT_1 = 0; //change this value to compensate to the right
//===================================================================================================================================================
//Anti Recoil Two
//===================================================================================================================================================
define ANTI_RECOIL_2 = 20; //change this value to compensate to the vertical recoil
define ANTI_RECOIL_LEFT_2 = 0; //change this value to compensate to the left
define ANTI_RECOIL_RIGHT_2 = 0; //change this value to compensate to the right
//===================================================================================================================================================
//Triggers
//===================================================================================================================================================
define FIRE_BUTTON = PS4_R2; //change this to R1 if you're using flipped triggers
define ADS = PS4_L2; //change this to L1 if you're using flipped triggers
//===================================================================================================================================================
//No Need To Change Anything Below This Line
//==========================================
int RAPID_FIRE = FALSE;
int ANTI_RECOIL_ONE = FALSE;
int ANTI_RECOIL_TWO = FALSE;
int anti_recoil_1;
int anti_recoil_left_1;
int anti_recoil_right_1;
int anti_recoil_2;
int anti_recoil_left_2;
int anti_recoil_right_2;
int hold_time, rest_time;
init {
hold_time = 500 / RATE_OF_FIRE;
rest_time = hold_time - 20;
if(rest_time < 0) rest_time = 0;
}
main {
//hair trigger mod
if ( get_val(FIRE_BUTTON) >= 30 )
{
set_val(FIRE_BUTTON, 100);
}
if ( get_val(PS4_L2) && get_val(PS4_LEFT))
{
if (RAPID_FIRE)
{
RAPID_FIRE = FALSE;
set_led(LED_2, 0);
set_led(LED_1, 1);
}
else
{
RAPID_FIRE = TRUE;
ANTI_RECOIL_ONE = FALSE;
ANTI_RECOIL_TWO = FALSE;
set_led(LED_3, 0);
set_led(LED_1, 0);
set_led(LED_2, 1);
set_led(LED_4, 0);
}
}
else if (get_val(PS4_L2) && get_val(PS4_UP) )
{
if (ANTI_RECOIL_ONE)
{
ANTI_RECOIL_ONE = FALSE;
set_led(LED_3, 0);
set_led(LED_1, 1);
}
else
{
ANTI_RECOIL_ONE = TRUE;
RAPID_FIRE = FALSE;
ANTI_RECOIL_TWO = FALSE;
set_led(LED_2, 0);
set_led(LED_1, 0);
set_led(LED_3, 1);
set_led(LED_4, 0);
}
}
else if ( get_val(PS4_L2) && get_val(PS4_RIGHT) )
{
if (ANTI_RECOIL_TWO)
{
ANTI_RECOIL_TWO = FALSE;
set_led(LED_4, 0);
set_led(LED_1, 1);
}
else
{
ANTI_RECOIL_TWO = TRUE;
RAPID_FIRE = FALSE;
ANTI_RECOIL_ONE= FALSE;
set_led(LED_4, 1);
set_led(LED_3, 0);
set_led(LED_2, 0);
set_led(LED_1, 0);
}
}
if ( get_val(FIRE_BUTTON) && RAPID_FIRE )
{
combo_run(AutoFire);
}
else if ( get_val(FIRE_BUTTON) && ANTI_RECOIL_ONE )
{
combo_run(AntiRecoil1);
}
else if ( get_val(FIRE_BUTTON) && ANTI_RECOIL_TWO )
{
combo_run(AntiRecoil2);
}
}
combo AutoFire {
set_val(FIRE_BUTTON, 100);
wait(hold_time);
set_val(FIRE_BUTTON, 0);
wait(rest_time);
set_val(FIRE_BUTTON, 0);
}
combo AntiRecoil1 {
if(get_val(FIRE_BUTTON) && get_val(ADS)) {
anti_recoil_1 = get_val(10) + ANTI_RECOIL_1;
if(anti_recoil_1 > 100) anti_recoil_1 = 100;
set_val(10, anti_recoil_1);
anti_recoil_left_1 = get_val(9) -ANTI_RECOIL_LEFT_1;
if(anti_recoil_left_1 > 100) anti_recoil_left_1 = 100;
set_val(9, anti_recoil_left_1);
anti_recoil_right_1 = get_val(9) +ANTI_RECOIL_RIGHT_1;
if(anti_recoil_right_1 > 100) anti_recoil_right_1 = 100;
set_val(9, anti_recoil_right_1);}
}
combo AntiRecoil2 {
if(get_val(FIRE_BUTTON) && get_val(ADS)) {
anti_recoil_2 = get_val(10) + ANTI_RECOIL_2;
if(anti_recoil_2 > 100) anti_recoil_2 = 100;
set_val(10, anti_recoil_2);
anti_recoil_left_2 = get_val(9) -ANTI_RECOIL_LEFT_2;
if(anti_recoil_left_2 > 100) anti_recoil_left_2 = 100;
set_val(9, anti_recoil_left_2);
anti_recoil_right_2 = get_val(9) +ANTI_RECOIL_RIGHT_2;
if(anti_recoil_right_2 > 100) anti_recoil_right_2 = 100;
set_val(9, anti_recoil_right_2);}
}