Page 1 of 1

Hair-Trigger script

PostPosted: Thu Jan 28, 2016 12:16 pm
by pablosscripts
Hi I was reading about this feature in the Halo 5 pack:

Hair-Trigger
The Halo 5 applies a "dead-zone" in the trigger buttons, which means the trigger (both for shoot or ADS) should be pressed almost half way down to be registered by the game. With Hair-Trigger MOD you can ensure your weapon will fire or ADS as soon you touch the correspondent trigger.


I'd like to use this in my custom script. Can someone post the code for me? Thanks

Re: Hair-Trigger script

PostPosted: Thu Jan 28, 2016 12:48 pm
by AKHUGHES90
pablogroup wrote:Hi I was reading about this feature in the Halo 5 pack:

Hair-Trigger
The Halo 5 applies a "dead-zone" in the trigger buttons, which means the trigger (both for shoot or ADS) should be pressed almost half way down to be registered by the game. With Hair-Trigger MOD you can ensure your weapon will fire or ADS as soon you touch the correspondent trigger.


I'd like to use this in my custom script. Can someone post the code for me? Thanks



if(get_val(7) > 15) set_val(7, 100);
if(get_val(4) > 15) set_val(4, 100);

Re: Hair-Trigger script

PostPosted: Thu Jan 28, 2016 1:27 pm
by pablosscripts
Thanks for that. What do each of those variables do? I would like to mess with them and configure them to my liking.

Secondly here's the script I'm using. Where should I add those two lines?

Code: Select all
define ADS_BUTTON    = PS4_R2;
define SPRINT_BUTTON = PS4_L3;
define MOV_Y_AXIS    = PS4_LY;

main {
    if(!get_val(ADS_BUTTON)) {
        if(get_val(MOV_Y_AXIS) < -97) {
            combo_run(EasySprint);
        }
    }
}

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

Re: Hair-Trigger script

PostPosted: Mon Feb 01, 2016 10:38 pm
by J2Kbr
you can add at the end of main, like this:

Code: Select all
define ADS_BUTTON    = PS4_R2;
define SPRINT_BUTTON = PS4_L3;
define MOV_Y_AXIS    = PS4_LY;

main {
    if(!get_val(ADS_BUTTON)) {
        if(get_val(MOV_Y_AXIS) < -97) {
            combo_run(EasySprint);
        }
    }
    if(get_val(7) > 15) set_val(7, 100);
    if(get_val(4) > 15) set_val(4, 100);
}

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

Re: Hair-Trigger script

PostPosted: Tue Feb 02, 2016 9:42 am
by pablosscripts
Awesome, which of the values refers to the depression of the trigger? I'd like to test higher / lower values to see what suits me most.

Re: Hair-Trigger script

PostPosted: Tue Feb 02, 2016 10:40 am
by J2Kbr
You can try use 0 for the most responsive triggers, like this:

Code: Select all
    if(get_val(7) > 0) set_val(7, 100);
    if(get_val(4) > 0) set_val(4, 100);