Page 6 of 7

Re: Holding down a button (reload) to disable Easy Sprint?

PostPosted: Wed Feb 03, 2016 12:27 pm
by J2Kbr
wow!! that is a really good news!! :) I am glad you figure out this!! And thank you for sharing your finding here!

Re: Holding down a button (reload) to disable Easy Sprint?

PostPosted: Wed Feb 03, 2016 12:34 pm
by bonefisher
Good Deal! It had me stumped!

Re: Holding down a button (reload) to disable Easy Sprint?

PostPosted: Wed Feb 03, 2016 12:53 pm
by pablosscripts
How do I apply this to both the X and Y buttons (reload + switch weapons). I can make it work for one or the other but not both. This is what I tried:

Code: Select all
define ADS_BUTTON = PS4_R2;
define SPRINT_BUTTON = PS4_L3;
define MOV_Y_AXIS = PS4_LY;
define RELOAD_BUTTON = XB1_X;
define SWITCH_BUTTON = XB1_Y;

int sprinting = FALSE;

main {
    if(!get_val(ADS_BUTTON) && !get_val(RELOAD_BUTTON) && !get_val(SWITCH_BUTTON)) {
        if(get_val(MOV_Y_AXIS) < -97) {
            sprinting = TRUE;
            combo_run(EasySprint);
        }
    } else {
        combo_stop(EasySprint);
        if(sprinting) combo_run(SprintCancel);
    }
    if(get_val(7) > 1) set_val(7, 100);
    if(get_val(4) > 1) set_val(4, 100);
}

combo EasySprint {
    set_val(SPRINT_BUTTON, 100);
    wait(40); wait(40);
}

combo SprintCancel {
    set_val(MOV_Y_AXIS, 0);
    sprinting = FALSE;
    wait(10);
}



I also tried using this:

Code: Select all
if((!get_val(ADS_BUTTON) && !get_val(RELOAD_BUTTON)) || (!get_val(ADS_BUTTON) && !get_val(SWITCH_BUTTON))) {

Re: Holding down a button (reload) to disable Easy Sprint?

PostPosted: Thu Feb 04, 2016 1:55 am
by bonefisher
You got me wondering since everything is wacked. I'd put event_release on the switch button to combo the sprint cancel.

Re: Holding down a button (reload) to disable Easy Sprint?

PostPosted: Thu Feb 04, 2016 3:12 am
by pablosscripts
What do you mean by that? I'm quite happy with it now, I just need to combine both the sprint and reload together into a single script. Any idea how to do that?

Re: Holding down a button (reload) to disable Easy Sprint?

PostPosted: Thu Feb 04, 2016 9:55 am
by bonefisher
Code: Select all

define ADS_BUTTON = PS4_R2;
define SPRINT_BUTTON = PS4_L3;
define MOV_Y_AXIS = PS4_LY;
define RELOAD_BUTTON = XB1_X;
define SWITCH_BUTTON = WII_X;

int sprinting = FALSE;

main {
    if(!get_val(ADS_BUTTON) && !get_val(RELOAD_BUTTON)) {
        if(get_val(MOV_Y_AXIS) < -97) {
            sprinting = TRUE;
            combo_run(EasySprint);
        }
    } else {
        combo_stop(EasySprint);
        if(sprinting) combo_run(SprintCancel);
    }
   
    if(!get_val(ADS_BUTTON) && !get_val(SWITCH_BUTTON)) {
        if(sprinting) combo_run(SprintCancel); }
   
    if(get_val(7) > 1) set_val(7, 100);
    if(get_val(4) > 1) set_val(4, 100);
}

combo EasySprint {
    set_val(SPRINT_BUTTON, 100);
    wait(40); wait(40);
}

combo SprintCancel {
    set_val(MOV_Y_AXIS, 0);
    sprinting = FALSE;
    wait(80);
}

Try this wacky one to see if it works for you.

Re: Holding down a button (reload) to disable Easy Sprint?

PostPosted: Thu Feb 04, 2016 11:34 am
by pablosscripts
It's close!

Pressing reload will stop sprinting, but I need to initiate sprint using the switch weapon button oddly enough. But just pressing forward will result in some crazy stutter.

Re: Holding down a button (reload) to disable Easy Sprint?

PostPosted: Thu Feb 04, 2016 11:54 am
by bonefisher
Try with maintain sprint off in game settings.

Re: Holding down a button (reload) to disable Easy Sprint?

PostPosted: Thu Feb 04, 2016 12:07 pm
by pablosscripts
No this is Rainbow Six Siege, I have Halo 5 all sorted now. I'm playing it right now and it's so sweet:)

Re: Holding down a button (reload) to disable Easy Sprint?

PostPosted: Thu Feb 04, 2016 12:19 pm
by bonefisher
pablogroup wrote:No this is Rainbow Six Siege, I have Halo 5 all sorted now. I'm playing it right now and it's so sweet:)

The delay for switching in rainbow is a 1000ms and the reload delay is about 2300ms .