Fast reload

fast reload
Version1.00
AuthorKylespeed
Publish DateTue, 31 May 2016 - 16:51
Last UpdateTue, 31 May 2016 - 16:51
Downloads85
RATE


3

0

Code: Select all
//Posted by Excalibur, a member of the community in the device Forums - http://www.consoletuner.com/forums
 
//Posted : Tuesday 31st of May, 2016 16:44 UTC 
 
 
 
 
// GPC Online Library// warframe.gpc
 
 
//Script was generated by * Script Manipulator * ver.8.8 /on date:02.5.2015
//--------------------------------------------------------------
/*           --------  GAME  ----------
 __       __                       ______                                           
/  |  _  /  |                     /      \                                         
$$ | / \ $$ |  ______    ______  /$$$$$$  |______   ______   _____  ____    ______ 
$$ |/$  \$$ | /      \  /      \ $$ |_ $$//      \ /      \ /     \/    \  /      \
$$ /$$$  $$ | $$$$$$  |/$$$$$$  |$$   |  /$$$$$$  |$$$$$$  |$$$$$$ $$$$  |/$$$$$$  |
$$ $$/$$ $$ | /    $$ |$$ |  $$/ $$$$/   $$ |  $$/ /    $$ |$$ | $$ | $$ |$$    $$ |
$$$$/  $$$$ |/$$$$$$$ |$$ |      $$ |    $$ |     /$$$$$$$ |$$ | $$ | $$ |$$$$$$$$/
$$$/    $$$ |$$    $$ |$$ |      $$ |    $$ |     $$    $$ |$$ | $$ | $$ |$$       |
$$/      $$/  $$$$$$$/ $$/       $$/     $$/       $$$$$$$/ $$/  $$/  $$/  $$$$$$$/
 
 
*/

/**************************************************  *************
   game   : Warframe
   console: All - XB1, XB360, PS4, PS3
   Author : Excalibur & trowieuk
**************************************************  **************/

////////////////////////////////////////////////////////////////
// MODES : 
// RAPID FIRE simple /  AUTORUN PRESS SENSITIVE
// Auto Slide        /  Anti -Idle
// Auto Block       
// Air Slash         / Double Slash
// FAST RELOAD
////////////////////////////////////////////////////////////////
//--------------------------------------------------------------
//--------------------------------------------------------------
/*
1.Rapidfire
 
 
2. Auto run : Press run button (L3) the same time you begin to move forward
 
 
3. Auto slide : When running using L3, slide for 1 second using L1, then rest for 0.5 seconds, until L3 is released
 
 
4. Instant reload : When pressing the reload button (Square) after 0.5 seconds cancel the animation using quick melee (circle)
 
 
 This one is tricky as the timings between hitting reload and quick melee need to be adjusted,
 if that could be adjustable I could find the correct timing.
 
 
5. Anti-Idle : Move left and right using LS
 
 
6. Auto Block : When D-pad right is pressed, Hold Triangle for 1.5 seconds, wait 1 second, then hold cirlce until D-pad right is pressed again.
 
 
7. Double Slash : When running and quick melee (O) is pressed, press the following -> CROUCH (L1) - Melee - Melee
 
 
8. Air Slash > Plunge : When D-pad up is pressed, Jump (x) , Hold crouch (L1) , Melee (O), Melee (O , release crouch, hold melee.
*/

//--------------------------------------------------------------
//DECLARARATIONS - define
//--------------------------------------------------------------
define RATE_OF_FIRE=16.4;        //Range: 1 to 25 RPS (Round/s)
define RF_btn=4;                //Rapid Fire button change this to what you want
define DZ = 30;    // DeadZone Adjustment. Increase this if your sticks don't reset to centre.
define DZT = 20;   // Trigger Deadzone Adjustment. Increase if your triggers don't 0.
define LS_X_MOV=11;
define LS_Y_MOV=12;
define RS_X_MOV= 9;
define RS_Y_MOV=10;
define CROUCH  = PS4_L1;       // LB/ L1      - Crouch/ Slide / Roll
define MELEE   = PS4_R1;       // R1/ R1      - Quick Attack / Melee Attack
define RELOAD  = PS4_SQUARE;   // X/SQUARE    - Reload
define SWITCH_W= PS4_TRIANGLE; // Y/TRIANGLE  - Switch Weapons
define BLOCK   = PS4_R1;       // RB/ R1      - Block
define JUMP    = PS4_CROSS;    // A/CROSS     - Jump
define LT_btn=7;
define RT_btn=4;
 
 
 
 
 
 
// FAST RELOAD time
define fastreload=10; // change this value to adjust fast reload
 
 
// Double Slash wait time
define w_DblSlash = 200// change this value for Double Slash timeing
 
 
// Air Slash
define w_AirSlash = 100; // change this value for Air Slash timing
//--------------------------------------------------------------
//VARIABLES - int
//--------------------------------------------------------------
int bAutoSlide =FALSE;
int auto_run =FALSE;
int hold_Circle=FALSE;
int start_OnOff=FALSE;
int rapid_onoff=TRUE;
int hold_time;
int rest_time;
int msecs;
int seconds;
int minutes;
int the_4th_ability;
int ability_t;
int ability_s;
int ability_m;
int time_start  =5;
//INITIALIZATION - init
//--------------------------------------------------------------
init {
     hold_time = 500 / RATE_OF_FIRE;
     rest_time = hold_time - 20;
     if(rest_time < 0) rest_time=0;
}
//MAIN BLOCK RUTINES
//--------------------------------------------------------------
main {  // Start of MAIN BLOCK
 
 
 
 
     // Fast  Reload
     if(event_release(RELOAD) && get_ptime(RELOAD)<100){
        combo_run(FastReload);
     }
 
 
 
 
     // ON / OFF RAPID FIRE  (SELECT + START )
     if(get_val(1)&& event_press(2)) {
        rapid_onoff =!rapid_onoff;
        set_val(2,0);
     }
     // RAPIDFIRE   ----------------------------------------------
     if(get_val(RF_btn) && rapid_onoff) {combo_run(RAPID_FIRE);}
     else if(combo_running(RAPID_FIRE)) {combo_stop(RAPID_FIRE);}
 
 
 
 
     // AUTORUN PRESS SENSITIVE  ---------------------------------
     if(get_val(12) < -99 && !auto_run) {
        auto_run=TRUE;
        combo_run(AutoRun);
     }else if(get_val(12) > -99) {
        auto_run=FALSE;
     }
 
 
 
 
/////////////////////////////////////////////////////////////////////////
//    Auto Slide
// Wasn't auto sliding until I held slide, changed L1 to LS_Y_MOV works now
// but not 100% the LS needs to be moved up at +100 for it to work.
// Is there a way it could do it when the LS_Y_MOV value is lower?
//
     // On/Off Auto Slide = press RS/R3
     if(event_press(PS4_R3))bAutoSlide=!bAutoSlide;
 
 
 
 
     if(bAutoSlide){
        if(get_val(12) <-80 ){
           if( !combo_running(AutoSlide))combo_run(AutoSlide);
        }
     }else{
      combo_stop(AutoSlide);
     }
 
 
 
 
/////////////////////////////////////////////////////////////////////////
//   // 6. Auto Block : When D-pad right is pressed
//Hold Triangle for 1.5 seconds, wait 1 second, then hold cirlce until D-pad right is pressed again.
// once D-pad right has been pressed again to stop blocking that it holds triangle for 1.5 seconds
     if(event_press(16)){//---------------------
         if(!hold_Circle)     combo_run(AutoBlock);
         else if(hold_Circle){
           hold_Circle=FALSE;
           combo_run(After_AutoBlock);
         }
 
     }//----------------------------------------
 
 
/////////////////////////////////////////////////////////////////////////
     // 7. Doble Slash
     if(get_val(12)<-90 && event_press(CROUCH))combo_run(Dbl_Slash);
 
 
 
 
/////////////////////////////////////////////////////////////////////////
      //8. Air Slash > Plunge : When D-pad up is pressed,
      if(event_press(13))combo_run(AirSlash);
 
 
 
 
 
 
 
 
     // 5. Anti IDLe
     // ANTI IDLE Kick Disabler ------------------------------------
     if(get_val(LS_X_MOV) <= DZ && get_val(LS_X_MOV) >= inv(DZ) && // Left Stick X
        get_val(LS_Y_MOV) <= DZ && get_val(LS_Y_MOV) >= inv(DZ) && // Left Stick Y
        get_val(RS_X_MOV) <= DZ && get_val(RS_X_MOV) >= inv(DZ) && // Right Stick X
        get_val(RS_Y_MOV) <= DZ && get_val(RS_Y_MOV) >= inv(DZ) && // Right Stick Y
        get_val(RT_btn)   <= DZT && get_val(LT_btn)  <= DZT) {start_OnOff=TRUE;}
     else start_OnOff=FALSE;
 
 
 
/*
int the_4th_ability;
int ability_t;
int ability_s;
int ability_m;
int time_start  =5;
*/

    /////////////////////////////////////////
    // ability
    if(start_OnOff) {//=========================
      ability_t = ability_t+get_rtime();
      if(ability_t>=1000) {
          ability_t=0;
          ability_s= ability_s+1;
      }
      if(ability_s>=60) {
          ability_s = 0;
          ability_m = ability_m+1;
      }
 
      if(ability_m >= time_start) {
         if(time_start==5 ) time_start =2;
         else time_start = 5;
          ability_t = 0;
          ability_s = 0;
          ability_m = 0;
         combo_run(ABILITY);
      }
 
 
    }//========================================
 
   if (start_OnOff && !combo_running(Anti_AFK))
     {//------------------------------------------
      msecs=msecs+get_rtime();
     if (msecs>=1000){ msecs=0;seconds=seconds+1; }
     if (seconds>=60){ msecs=0;seconds=0;minutes=minutes+1;}
     if(minutes>=2){msecs=0;seconds=0; minutes=0;combo_run(Anti_AFK);}
     }//-----------------------------------------
     if(!start_OnOff){
          msecs=0;
          seconds=0;
          minutes=0;
          ability_t = 0;
          ability_s = 0;
          ability_m = 0;
    }
///////////////////////////////////////////////////////////////////////////
 
 
 
}// End of MAIN BLOCK
//COMBO BLOCKS
//--------------------------------------------------------------
 
// FAST RELOAD
// I press square it presses square twice then R1 straight after each other.
combo FastReload {
    wait(50);
    set_val(RELOAD, 100);           
    wait(40); wait(40)
    set_val(RELOAD, 100);           
    wait(40); wait(40);     
    set_val(MELEE, 100);       
    wait(40); wait(40);           
 
}
// LS up is press L1 for try 2 seconds then release and wait 1 second,
// then press again for 2 seconds and repeat until I stop running.AutoSlide
combo AutoSlide {
    set_val(CROUCH,100); // press
    wait(100);
    wait(2000); // wait 2 sec.
    wait(2000); // wait 2 sec.
}
 
combo ABILITY {
   set_val(PS4_CIRCLE,100);
   wait(100);
}
 
 
// Auto Run
combo AutoRun {
    set_val(8,100);
    wait(100);
}
// Air Slash
//  Jump (x) , Hold crouch (L1) , Melee (O), Melee (O , release crouch, hold melee.
combo AirSlash {
    set_val(JUMP,100);
    wait(100);
    set_val(CROUCH,100); // press
    wait(50);
    set_val(CROUCH,100);// hold
    set_val(MELEE, 100);
    wait(w_AirSlash);
    set_val(CROUCH,100);// hold
    wait(50);
    set_val(CROUCH,100);// hold
    set_val(MELEE, 100);
    wait(w_AirSlash);
    set_val(CROUCH,  0);// release
    wait(50);
    set_val(MELEE, 100);// hold Melee
    wait(1000);
}
// Double Slash
// CROUCH (L1) - Melee - Melee
// When LS UP and O is pressed it should press L1, then R1, R1.
combo Dbl_Slash {
    wait(80);
    set_val(CROUCH, 100);
    wait(w_DblSlash);
    set_val(MELEE, 100);
    wait(w_DblSlash);
    set_val(MELEE, 100);
    wait(w_DblSlash);
}
 
 
 
 
//Hold Triangle for 1.5 seconds, wait 1 second, then hold cirlce until D-pad right is pressed again.
combo AutoBlock {
    set_val(SWITCH_W,100);
    wait(1500);
    wait(1000);
    hold_Circle=TRUE;
}
 
 
 
 
combo After_AutoBlock {
    set_val(SWITCH_W,100);
    wait(1500);   
}
combo Anti_AFK {
 
    set_val(LS_X_MOV, 100);
    wait(400);
    wait(500);
    set_val(CROUCH,100);
    wait(100);
    wait(200);
    set_val(MELEE,100);
    wait(100):
    wait(300);
    set_val(LS_X_MOV,-100);
    wait(400);
    wait(350);
    set_val(JUMP,100);
    wait(100);
    wait(360);
    set_val(LS_X_MOV, 100);
    wait(200);
    set_val(CROUCH,100);
    wait(100);
    wait(200);
    set_val(MELEE,100);
    wait(100):
    wait(300);
    set_val(LS_X_MOV,-100);
    wait(200);
    wait(500);
}
//Rapidfire
combo RAPID_FIRE {//begin
    set_val(RF_btn, 100);
    wait(hold_time);
    set_val(RF_btn, 0);
    wait(rest_time);
    set_val(RF_btn, 0);
}//end