Call of Duty Black ops 4 - [Ingame toggles] Auto Heal, Hairtriggers, Rapid Fire

BO4 script for autoheal, hairtriggers and rapid fire. Toggles: // - Auto Heal = L2 + d-pad Right [ ON - OFF ] // - Rapid Fire = L2 + d-pad Left [ ON - OFF ]
Version1,02
AuthorWASD
Publish DateTue, 16 Oct 2018 - 12:43
Last UpdateWed, 17 Oct 2018 - 08:40
Downloads2210
RATE


3

0

Release Notes: button typo
Code: Select all
//------ START USER SETTINGS AND PREFERENCES-------*/
int hair_trigger   = TRUE;
int Auto_Heal      = TRUE;
int RapidFire      = FALSE;
int     hold_time        = 35;
int     rest_time        = 35;
 
//------ END USER SETTINGS AND PREFERENCES-------/
 
//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\|
//--------------------------------------------------------------------------|
// MOD - DESCRIPTION:                                                       |
// ==================                                                       |
// - AutoHeal: Automatically heals you after your weapon has been reloaded  |
// - HairTrigger: sets your Triggers to 100% if you press less then 100%    |
// - AntiRecoil: reduces recoil of each weapon                              |
// - AutoAim: Automatically scopes in once the trigger has been pulled      |
////////////////////////////////////////////////////////////////////////////|
//#########################################################################/|
//------------------------------- Script Starts Here -----------------------|
//                            Controller Button Mapping                     |
//-------------------------------------------------------------------------*/
define R1            = 3;   //PS4_R1
define FIRE_BTN      = 4;   //PS4_R2
define R3            = 5//PS4_R3
define TACT_BTN      = 6;   //PS4_L1
define ADS_BTN       = 7;   //PS4_L2
define L3            = 8;   //PS4_L3
define RX            = 9//PS4_RX
define RY            = 10; //PS4_RY
define LX            = 11; //PS4_LX
define LY            = 12; //PS4_LY
define UP            = 13; //PS4_UP
define DOWN          = 14; //PS4_DOWN
define LEFT          = 15; //PS4_LEFT
define RIGHT         = 16; //PS4_RIGHT
define TRIANGLE      = 17; //PS4_TRIANGLE
define CIRCLE        = 18; //PS4_CIRCLE
define CROSS         = 19; //PS4_CROSS
define SQUARE        = 20; //PS4_SQUARE
 
 
// LED
int a; int b;
 
//--------------------------------------------------------------------------|
//                                   Main Block                             |
//-------------------------------------------------------------------------*/
 
 
main {
 
  if(hair_trigger) {
        if(get_val(FIRE_BTN)){set_val(FIRE_BTN,100);}
        if(get_val(ADS_BTN)){set_val(ADS_BTN,100);}
        } 
 
 //Auto Heal
   if(get_val(ADS_BTN) && event_press(RIGHT)){
   Auto_Heal =! Auto_Heal;
   if(Auto_Heal == TRUE){combo_run(Notify);a=2;b=2;}
   if(Auto_Heal == FALSE){combo_run(Notify);a=2;b=1;}
   }
 
  if (Auto_Heal){
    if(event_release(FIRE_BTN) && get_ptime(FIRE_BTN)< 5000){combo_run(AUTO_HEAL);}
     }
 
    //RAPID FIRE
   if(get_val(ADS_BTN) && event_press(LEFT)){
   RapidFire =! RapidFire;
   if(RapidFire == TRUE){combo_run(Notify);a=0;b=2;}
   if(RapidFire == FALSE){combo_run(Notify);a=2;b=0;}
   }
   if(RapidFire){
     if(get_val(FIRE_BTN)){
        combo_run(Rapidfire);                                         
       }
     }
}
 
 
//-----------------------------------------------------------------------------|
//                                  Combo Block                                |
//----------------------------------------------------------------------------*/
 
combo AUTO_HEAL {   
    wait(280);
    set_val(TACT_BTN,100);
    wait(100);     
}
 
combo Rapidfire {
    set_val(FIRE_BTN,100);
    wait(hold_time);       
    set_val(FIRE_BTN,  0);
    wait(rest_time);
}
 
combo Notify {
set_led(LED_1, 0);
set_led(LED_2, a);
set_led(LED_3, b);
set_led(LED_4, 0);
wait(550);
set_led(LED_1, 0);
set_led(LED_2, 0);
set_led(LED_3, 0);
set_led(LED_4, 0);
wait(250);
set_led(LED_1, 0);
set_led(LED_2, a);
set_led(LED_3, b);
set_led(LED_4, 0);
wait(250);
set_led(LED_1, 0);
set_led(LED_2, 0);
set_led(LED_3, 0);
set_led(LED_4, 0);
wait(250);
set_led(LED_1, 0);
set_led(LED_2, a);
set_led(LED_3, b);
set_led(LED_4, 0);
wait(250);
reset_leds();
}