Destiny - Titan slide-shoot-shoulder macro

You must use TITAN MASTER CLASS with a Quick charge fusion (37 or better) 1. When sprint is held down - start count down - only do move when we can insure shoulder charge is primed (after 2 seconds) 2. While sprint is still pressed down and shoulder charge is primed a press down of the right stick (look button) will initiate move. 3. It will then automatically hold down the fire button 4. Then almost simultaneously it will hit the crouch button to slide 5. While sliding it will keep the fire button held down the fire trigger. 6. How the long script holds down fire button is adjustable by: holding the fire button and pressing up on the dpad this will increase hold time by 10ms holding the fire button and pressing down on the dpad this will decrease the hold time by 10ms DEFAULT hold time is 425ms 7. After fire hold time + ~10 milliseconds it will automatically press right bumper to shoulder charge.
Version1.1
Authorwhit77cali
Publish DateTue, 24 May 2016 - 04:27
Last UpdateWed, 25 May 2016 - 03:57
Downloads252
RATE


1

0

Release Notes: removed all sprint and should charge timing checks. This works 1000X times better - a lot more reliable. You can do this with a full-auto primary as well. Just press the look down and bam it will do this move regardless.
Code: Select all
/* 
* GPC SCRIPT
**
Just removed the whole sprint check - now a simple press of the look button
will initiate the sequence, it's up to you to insure your sprinting and have
should charge primed.  This should make this more reliable.
 
Also changed the fine turning to + or - 5 ms. 
 
You must use TITAN MASTER CLASS with a Quick charge fusion (37 or better)
    1. When sprint is held down - start count down - only do move when we can
        insure shoulder charge is primed (after 2 seconds)
    2. While sprint is still pressed down and shoulder charge is primed a
        press down of the right stick (look button) will initiate move.
    3. It will then automatically hold down the fire button
    4. Then almost simultaneously it will hit the crouch button to slide
    5. While sliding it will keep the fire button held down the fire trigger.
    6. How the long script holds down fire button is adjustable by:
        holding the fire button and pressing up on the dpad
            this will increase hold time by 5ms
        holding the fire button and pressing down on the dpag
            this will decrease the hold time by 5ms
        DEFAULT hold time is 425ms
    7. After fire hold time + ~5 milliseconds it will automatically press right
        bumper to shoulder charge.
 
    **NOTE - holy crappers the timing on this needs to be extremely precise
            This script was tested with Titan running a Telesto
            It probably won't work with any fusion rifle with a slower charge
            rate of 37  - but have fun trying.  When you get the delay off by
            much it won't shoulder charge or won't slide - etc, etc.
 
 
* *********************************************************** */

 
 
//univeral defines
define SHOOT_BUTTON         = 4; //XB1_RT
define ADS_BUTTON           = 7; //XB1_LT;
define MELEE_BUTTON         = 3; //XB1_RB;
define GRENADE_BUTTON       = 6; //XB1_LB;
define SPRINT_BUTTON        = 8; //XB1_LS;
define RELOAD_BUTTON        = 20;//XB1_X;
define WEAPON_SWITCH_BUTTON = 17;//XB1_Y;
define JUMP_BUTTON          = 19;//XB1_A;
define CROUCH_BUTTON        = 18;//XB1_B;
define DPAD_UP_BUTTON       = 13;//XB1_UP;
define DPAD_DOWN_BUTTON     = 14;//XB1_DOWN;
define DPAD_LEFT_BUTTON     = 15;//XB1_LEFT;
define DPAD_RIGHT_BUTTON    = 16;//XB1_RIGHT;
define LY_AXIS              = 12;//XB1_LY;
define LX_AXIS              = 11;//XB1_LX;
define RY_AXIS              = 10;//XB1_RY;
define RX_AXIS              = 9;//XB1_RX;
define LOOK_BUTTON          = 5;//XB1_RS;
define VIEW                 = 1;//XB1_VIEW
 
int FIRE_HOLD;
 
init {
    FIRE_HOLD     = get_pvar( SPVAR_1, 0, 4000, 425);
}
 
 
main {
 
        vm_tctrl (-6); //run the loop every 4 ms - thats really fast.. vroom
 
 
    if (event_press (LOOK_BUTTON) && !combo_running (do_move)) {
        //the user wants to do the move  - hopefully shoulder charge is primed
        combo_run (do_move);   
    }
 
    //adjust how long trigger is held during move
        if (event_press(DPAD_UP_BUTTON) && get_val (SHOOT_BUTTON)) {
            FIRE_HOLD = FIRE_HOLD + 5; // increase timeout by 5 ms
            set_pvar( SPVAR_1, FIRE_HOLD);
        }
         if (event_press(DPAD_DOWN_BUTTON) && get_val (SHOOT_BUTTON)) {
            FIRE_HOLD = FIRE_HOLD - 5; // decrease timeout by 5 ms
            set_pvar( SPVAR_1, FIRE_HOLD);
        }
}//main
 
 
combo do_move {
    //hold down trigger
    set_val (SHOOT_BUTTON, 100);
    wait (25);
    //start slide
    set_val (SHOOT_BUTTON, 100);
    set_val (CROUCH_BUTTON, 100);
    wait (25);
    set_val (CROUCH_BUTTON, 0);
    set_val (SHOOT_BUTTON, 100);
    wait (FIRE_HOLD); //hold trigger the user set amount of time
    set_val (SHOOT_BUTTON, 0); //release trigger
    wait (10);
    set_val (MELEE_BUTTON, 100); // shoulder charge your ass out of there
    wait (30);
    set_val (MELEE_BUTTON, 0);
}