GPC Library

COD MWR rapid fire in secundary weapon/ auto breath

Rapid fire only activates when you change to your secundary weapon, useful for pistols. You can use the auto breath for sniper rifles.
Version 1.2
Author Miztake_PR_787
Publish Date 2017-09-10 10:58:54
Update Date 2017-09-10 11:01:20
Downloads 58
RATE


1

0

Release Notes: I have no idea what to put here.
Code:Select all
/*********************************************************************************************** 
 This Script was made and intended for www.cronusmax.com & CronusMAX ONLY.                     * 
 UNLESS permission is given by the creator and/or copywritee,                                  * 
 All rights reserved. This material may not be reproduced, displayed,                          * 
 modified or distributed without the express prior written permission of the                   * 
 copyright holder. For permission, contact CronusMax.                                          * 
     __  ____   ___   ____   __ __  _____ ___ ___   ____  __ __                                * 
    /  ]|    \ /   \ |    \ |  |  |/ ___/|   |   | /    ||  |  |                               * 
   /  / |  D  )     ||  _  ||  |  (   \_ | _   _ ||  o  ||  |  |                               * 
  /  /  |    /|  O  ||  |  ||  |  |\__  ||  \_/  ||     ||_   _|                               * 
 /   \_ |    \|     ||  |  ||  :  |/  \ ||   |   ||  _  ||     |                               * 
 \     ||  .  \     ||  |  ||     |\    ||   |   ||  |  ||  |  |                               * 
  \____||__|\_|\___/ |__|__| \__,_| \___||___|___||__|__||__|__|                               * 
                                                                                               * 
************************************************************************************************/
                                                                                                 
// Modern Warfare Remastered [S.G.I.] ver. 2.0      
//--------------------------------------------------------------                                 
// Authors  : Excalibur, LEX LOST , x22dot                                             
// Game     : CoD Modern Warfare Remastered                                                               
// Device   : CronusMAX PLUS                                                                   
// Console  : XBOX ONE, XBOX 360, PS 4, PS 3                                                   
// Game pads: All supported Game pads                                                          
                                                                                               
// IMPORTANT : All mods are available only in application : MW Remastered  
//--------------------------------------------------------------                              
//                                                                                           
/**************************************************************************** 
CHANGELOG:                                                       
Version 1.0 to 1.1 : Initial build up off the application        
Version 1.2        : Added Aim Assist - Author : x22dot       
                                                               
                                                               
=============================================================================
TOGGLES: You MUST press and hold the "first" button first before pressing the other button.
                                                                             
                                                                             
=============================================================================
*****************************************************************************/
/***************************************************************
    INSTRUCTIONS                                                
                                                                
********************************************************/
////////////////////////////////////////////////////////                                    
//                                    
//  BUTTON LAYOUT    : TACTICAL                 
//  BUMPERS/TRIGGERS : DEFAULT
//  STICK LAYOUT     : DEFAULT
//------------------------------------------------------
define FIRE_BTN      = PS4_R2; // default RT                        
define ADS_BTN       = PS4_L2; // LT                        
define SPRINT_BTN    = PS4_L3; // LS                        
define PRONE_BTN     = PS4_R3; // B                         
define JUMP_BTN      = PS4_CROSS; // A                         
define SWITCH_WEAPON = PS4_TRIANGLE; // Y                         
define RELOAD_BTN    = PS4_SQUARE; // X                         
define MELEE         = PS4_CIRCLE; // RS/R3                     
define LETHAL        = PS4_R1; // RB                        
define TACTICAL      = PS4_L1; // LB                        
define Up            = PS4_UP;                              
define Right         = PS4_RIGHT;                              
define Down          = PS4_DOWN;                              
define Left          = PS4_LEFT;                               
define R_X           = PS4_RX;                              
define R_Y           = PS4_RY;                              
define L_X           = PS4_LX;                              
define L_Y           = PS4_LY;                              
//////////////////////////////////////////////////////// 
//                        
define dropDelay    =300; 
define time_to_dblclick    =300; 
define NotUse       =  0; 
                          
////////////////////////////////////////////////////////
//                        
                          
int b_dblclick;           
int dblclick_msecs;      
int dblclick_count;      
int hold_time = 30;  // All Weapons 
int rest_time = 10;                 
int hold_timeP = 30;  // Primary Weapon 
int rest_timeP = 10;                 
int hold_timeS = 30; // secondary 
int rest_timeS = 10; // secondary 
                   
////////////////////////////////////////////////////////
//  Boolean Variables             
int rapid_onoff          =FALSE;  
int RF_ALL_weapons       =FALSE;  
int dropshot_OnOff       =FALSE; // On/Off Drop Shot  
int side_shot_OnOff      =FALSE;   
int JumpShot_OnOff       =FALSE;   
int ScopeShot            =FALSE;   
int QuickScope           =FALSE;   
int SniperOnOff          =FALSE;   
int hold_breath_On_Off   = TRUE;   
int Prim_SecondWeapon    = TRUE;   
int PrimaryWeapon        =FALSE;   
int SecondaryWeapon      =FALSE;   
int InvertYaxis          =FALSE;   
int TogleADS             =FALSE; // On /Off Togle ADS    
                                  
int Invert = 1;                        
int b_hold_ADS           =FALSE; // if Toggle ADS in use * / need to be reset 
int b_ADS_Delay          =FALSE; // On /Off ADS Delay   
int InstantDrop          =FALSE; // Slide or instant drop 
int b_switch;   
int NotReloading         = TRUE;   
int DblClick_JUMP;         
int b_running;                    
                             
//////////////////////////////////////////////////////////
//                         
int timer;                 
int Sens         =  20;    
int SlideOrDrop  =  20;    
int DelayScope   =  20;     
int ADS_Delay    =  150;// ADS delay value
//INITIALIZATION - init                       
//--------------------------------------------------------------
init {//#############################################      
    if(InvertYaxis) Invert = -1;                                                       
}//##################################################      
//MAIN BLOCK RUTINES                                       
//--------------------------------------------------------------
main {  // Start of MAIN BLOCK                                  
//--------------------------------------------------------------
//--------------------------------------------------------------
      /////////////////////////////////////////////////
      //  HOLD BREATH                                  
      if(hold_breath_On_Off) {                         
          if(get_val(ADS_BTN) || b_hold_ADS) { set_val(SPRINT_BTN,100); } 
       }                                                
   if(Prim_SecondWeapon){                              
                                                       
       if(event_press(SWITCH_WEAPON)) {                
          SecondaryWeapon= !SecondaryWeapon;           
       }                                               
                                                       
      if(get_val(RELOAD_BTN) && get_ptime(RELOAD_BTN)>=150) {                   
          SecondaryWeapon= FALSE;           
          b_switch=FALSE;                                           
      }                                                
          if(PrimaryWeapon ) f_ColorLed(2,0,0,0); // clBlue 
          else if(SecondaryWeapon ) f_ColorLed(0,2,0,0); // clRed 
          else f_ColorLed(2,0,0,0); // clBlue 
      ///////////////////////////////////////////////////////////////////////
      // turn RF OFF if switch to special weapon/ Ability                  
                                                                          
      if(get_val(TACTICAL) && get_val(LETHAL) && !b_switch){              
          SecondaryWeapon= FALSE;           
          b_switch=TRUE;                                           
      }                                                             
                                                                   
                                                       
       // Rapid Fire Secondary weapon                              
       if(SecondaryWeapon){//----------------------------------------
                                                        
           if(get_val(FIRE_BTN) ) {  
             combo_run(RAPID_FIRE_Secondary);           
           }else if(combo_running(RAPID_FIRE_Secondary)){ 
             combo_stop(RAPID_FIRE_Secondary);           
           }                                             
       }//--------------------------------------------------------
   }// Prim_SecondWeapon                                       
//-------------------------------------------------------------- 
}// End of MAIN BLOCK                                            
//-------------------------------------------------------------- 
                                                                    
///////////////////////////////////////////////////////////////////////////
//COMBO BLOCKS   //////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
combo Jump {     
   set_val(JUMP_BTN,100);//1  
   wait(60);                 
   wait(80);                 
   set_val(JUMP_BTN,100);//1  
   wait(200);                 
}              
combo TAKE_SHOT {    
    set_val(FIRE_BTN,100); 
    set_val(ADS_BTN, 100); 
    set_val(SPRINT_BTN,100);
    wait(100);        
}
combo RAPID_FIRE_Secondary {                
   set_val(FIRE_BTN,100);                   
   wait(hold_timeS);                         
   set_val(FIRE_BTN,0);                     
   wait(rest_timeS);                        
   set_val(FIRE_BTN,0);                     
   wait(rest_timeS);                        
}                                           
 //DROP SHOT                                
combo DROPSHOT {//begin                     
   if(InstantDrop){set_val( L_Y,0);}        
   wait(SlideOrDrop);                       
   set_val(PRONE_BTN, 100);                
   wait(dropDelay); //Time To Go Prone     
}//end                                     
                                           
combo SIDE_SHOT {                          
   set_val(L_X, 100);                      
   wait(400); // -----------------         
   set_val(L_X,-100);                      
   wait(400); // -----------------         
}                                          
                                           
function f_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);
}     
/////////////////////////////////////// 
// function double click                
function double_click (button) {        
    if (b_dblclick) {                    
        dblclick_msecs = dblclick_msecs + get_rtime(); 
        if ( dblclick_msecs > time_to_dblclick ) {    
            dblclick_count = 0;                       
            dblclick_msecs = 0;                       
            b_dblclick = FALSE;                       
        }                                             
    }                                                 
    if (event_release(button) && get_ptime(button) < 150) { 
        if (dblclick_count == 0) {                    
            b_dblclick = TRUE;                        
        } else if (dblclick_count == 1) {             
            dblclick_count = 0;                       
          return 1;                                   
        }                                             
        dblclick_count = dblclick_count + 1;          
    }                                                 
                                                     
    return 0;                                       
}                                                  
                                                  
// end of script  
  • 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!