Hair-Trigger script

Titan One general support. Questions, firmware update, feature request.

Hair-Trigger script

Postby pablosscripts » Thu Jan 28, 2016 12:16 pm

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
Setup: XIM Apex, T2, K780 keyboard, G Pro Wireless mouse, SteelSeries 4HD pad, DXRacer armrest, LucidSound LS30 headset, Netduma router, Ubiquiti UniFi AP LR

My R6 script: https://youtu.be/x-9NtxyySVM
User avatar
pablosscripts
Brigadier General
Brigadier General
 
Posts: 1976
Joined: Tue Nov 24, 2015 6:27 am

Re: Hair-Trigger script

Postby AKHUGHES90 » Thu Jan 28, 2016 12:48 pm

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);
Image
"We always start with completing the difficult. It just takes us a little longer to do the impossible."
Console Tuner Support Team®
User avatar
AKHUGHES90
Major
Major
 
Posts: 927
Joined: Mon Nov 24, 2014 12:19 am
Location: Springfield, IL USA CST (-6:00)

Re: Hair-Trigger script

Postby pablosscripts » Thu Jan 28, 2016 1:27 pm

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);
}
Setup: XIM Apex, T2, K780 keyboard, G Pro Wireless mouse, SteelSeries 4HD pad, DXRacer armrest, LucidSound LS30 headset, Netduma router, Ubiquiti UniFi AP LR

My R6 script: https://youtu.be/x-9NtxyySVM
User avatar
pablosscripts
Brigadier General
Brigadier General
 
Posts: 1976
Joined: Tue Nov 24, 2015 6:27 am

Re: Hair-Trigger script

Postby J2Kbr » Mon Feb 01, 2016 10:38 pm

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);
}
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: Hair-Trigger script

Postby pablosscripts » Tue Feb 02, 2016 9:42 am

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.
Setup: XIM Apex, T2, K780 keyboard, G Pro Wireless mouse, SteelSeries 4HD pad, DXRacer armrest, LucidSound LS30 headset, Netduma router, Ubiquiti UniFi AP LR

My R6 script: https://youtu.be/x-9NtxyySVM
User avatar
pablosscripts
Brigadier General
Brigadier General
 
Posts: 1976
Joined: Tue Nov 24, 2015 6:27 am

Re: Hair-Trigger script

Postby J2Kbr » Tue Feb 02, 2016 10:40 am

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);
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm


Return to Titan One Device

Who is online

Users browsing this forum: No registered users and 95 guests