Hello,

I have a script. Can someone put a rapid fire on and off in the script with the button triangle on ps4 please.



//Posted by LEX LOST, a member of the community in the CronusMAX Forums - http://cronusmax.com/forums

//Posted : Tuesday 27th of June, 2017 4:35 UTC


// BF4 - M16A4 (Perks: Muzzle brake - Angled or Folding grip)
// SENSITIVITY FINE TUNING SCRIPT
// RAPIDFIRE - AIMING ANTIRECOIL - AIMING AUTOSPOT
// AUTOBREATH Press sensitive

// Author: LEX LOST
// System: MULTIPLATFORM
// Controller: MULTIPLATFORM
// GAME: BF4
// WEAPON: M16A4
// PERKS: Muzzle brake - Angled or Folding grip)

/************************************************** **********/

define ANTI_RECOIL = 15;//e this value to compensate vertical recoil (0 - 100)
define ANTI_RECOIL_LEFT = 0;//change this value to compensate to the left (0 - 100)
define ANTI_RECOIL_RIGHT = 0; // change this value to compensate to the right (0 - 100)

define AR_Release = 60;

define RATE_OF_FIRE = 8; // Range: 1 to 25 RPS (Round/s)
// Values higher than 25 would be so fast that the Game probably will not detect 100% of the events.
define SPOT_BUTTON = 3;

//--------------------------------------------------------------------------------------------------------//
// SENSITIVITY FINE TUNING SCRIPT
//--------------------------------------------------------------------------------------------------------//
// Version: 2.0
// Platform: Multi
// Controller: Multi - Mouse & Keyboard
// Author: LEX LOST
//--------------------------------------------------------------------------------------------------------//
// INSTRUCTIONS BELOW
//--------------------------------------------------------------------------------------------------------//

define ADS_BUTTON = 7; // 7 means LT/L2 - change for different layout
// write 6 instead of 7 if you aim with LB/L1

define GEN_SENS = 100; // General sensitivity - Default: 100 - Range [0 ~ 327]
// set a number below 100 for less sens - above 100 for more sens

define ADS_SENS = 100; // Sensitivity while aiming - Default: 100 - Range [0 ~ 327]
// set a number below 100 for less sens - above 100 for more sens

define RUN_SENS = 100; // Sensitivity while running - Default: 100 - Range [0 ~ 327]
// set a number below 100 for less sens - above 100 for more sens

define MIDPOINT = 50; /** MIDPOINT - Default: 50 - Range [0 ~ 100]
If you set a number below 50 you are defining a zone of high sensitivity range when close to rest position
(fast movements) and a low sensitivity range when far from rest position (better accuracy).
if you set a number above 50 you are defining a zone of low sensitivity when close to the rest position
(better accuracy), and a zone of high sensitivity when far from rest position (fast movements).**/

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

int fire_button, scope_button;
int anti_recoil;
int anti_recoil_left;
int anti_recoil_right;
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 {

// AUTOBREATH
if(get_val(7) > 95) {combo_run(AutoBreath);}
if(get_val(7) < 95) {combo_stop(AutoBreath);}

// AIMING AUTOSPOT
if(get_val(7)) {combo_run(AutoSpot);}

// RAPIDFIRE
// if(event_press(RF_SWITCH)) rapid_onoff = !rapid_onoff; //sets variable to TRUE or FALSE when both buttons are pressed.
if(get_val(4)) {
combo_run(RapidFire);
} else if(combo_running(RapidFire)) {
combo_stop(RapidFire);
}
// ANTIRECOIL
if(get_val(4)) {
combo_run(AntiRecoil);
}
// ANTIRECOIL RELEASE
if(abs(get_val(10)) > AR_Release || abs(get_val(9)) > AR_Release) {
combo_stop (AntiRecoil);
}
}

combo RapidFire {
set_val(4, 100);
wait(hold_time);
set_val(4, 0);
wait(rest_time);
set_val(4, 0);
}

combo AutoBreath {
wait(200);
set_val(8, 100);
wait(4000);
}

combo AutoSpot {
set_val(SPOT_BUTTON, 100);
wait(40);
set_val(SPOT_BUTTON, 0);
wait(900);
}

combo AntiRecoil {// This combo must be the last one
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);
}// end