Gears 5 limited script

GamePack general support. Operation, questions, updates, new GamePacks and feature request.

Moderator: The_Rabid_Taco

Gears 5 limited script

Postby srbtattoo » Mon Sep 09, 2019 6:53 am

Code: Select all
main {
    // Rapid Fire Toggle
    // D-Pad Left or D-Pad Right sets the toggle to false,
    // D-Pad Down sets the toggle to true.
    if(event_press(XB1_LEFT) || event_press(XB1_RIGHT)) rfToggle = FALSE;
    else if(get_val(XB1_DOWN)) rfToggle = TRUE;
 
    // Active Reload Toggle
    // D-Pad Down or D-Pad Right sets the toggle to false,
    // D-Pad Left sets the toggle to true.
    if(event_press(XB1_DOWN) || event_press(XB1_RIGHT)) arToggle = FALSE;
    if(event_press(XB1_LEFT)) arToggle = TRUE;
 
    // If the left trigger is being held down then repeatedly press
    // the left stick.
    if(get_val(XB1_LT)) combo_run(TurboLS);
 
    // This waits for the release of RB and when that takes place runs
    // the combo for Active Reload only if the toggle is set to true.
    if(event_release(XB1_RB) && arToggle == TRUE) combo_run(ActiveReload);
 
    // Checks to see if right trigger is being held down, and if it is being
    // held is the toggle for rapid fire set to true.  If so then run the combo.
    if(get_val(XB1_RT) && rfToggle == TRUE) combo_run(RapidFire);
}
 
// Combo to repeatedly press left stick.
combo TurboLS {
    set_val(XB1_LS, 100);
    wait(32);
    set_val(XB1_LS, 0);
    wait(32);
}
 
// Combo for active reload.
// Starts with the wait since RB has already been pressed once.
// This way it waits proper amount of time before second press.
combo ActiveReload {
    wait(1000)// Wait time before taping rb the second time.
    set_val(XB1_RB, 100);
    wait(180)// How long to hold rb for.
    set_val(XB1_RB, 0);
}
 
// Combo for rapid fire
combo RapidFire {
    set_val(XB1_RT, 100);
    wait(20); // Time trigger is held
    set_val(XB1_RT, 0);
    wait(40)// Time between shots
}
User avatar
srbtattoo
Sergeant Major
Sergeant Major
 
Posts: 72
Joined: Wed Apr 15, 2015 10:50 pm

Re: Gears 5 limited script

Postby srbtattoo » Mon Sep 09, 2019 6:54 am

its perfect ative relload on shotgun and rapid on pistol also it has auto spot
User avatar
srbtattoo
Sergeant Major
Sergeant Major
 
Posts: 72
Joined: Wed Apr 15, 2015 10:50 pm

Re: Gears 5 limited script

Postby J2Kbr » Mon Sep 09, 2019 11:01 am

Thank you for sharing with us. :)
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 17648
Joined: Tue Mar 18, 2014 1:39 pm


Return to GamePack Support (Titan One)

Who is online

Users browsing this forum: jbowers310 and 3 guests