// GPC Online Library
// Gears 5 - AUTO TAG + PISTOL RAPIDFIRE + RS SWAP TO B+RAPIDFIRE.gpc
/**************************************************************************************
Gears 5 script for XBOX ONE
This script includes:
+Auto Tag
+Pistol Rapidfire
+Swap RS>B+RAPIDFIRE
-Setup
Use the any control scheme or remap, just be shure to keep "melee to B", "scope to RS", "aiming to LT" and "tagging to LS".
-How to use
*The RS (right stick clic) swap to B+RAPIDFIRE: melee pressing RS, while using the direcional.
*B+RAPIDFIRE(pressing RS): rapifire B used to Lancer duels.
**AIMING/HOLDING LEFT TRIGGER WILL DISABLE "RS swap to B+RAPIDFIRE" and perform "AUTO TAG": scope normaly on RS.
*Pistol RAPIDFIRE activates pressing D-pad down and DEACTIVATES pressing ANY other D-pad direction.
***************************************************************************************/
//Best to leave the defines.
define StartWeapon = 0;
define Pistol = 1;
int CurrentWeapon;
main{
if(get_val(XB1_RS)) {
swap(XB1_RS, XB1_B);
combo_run(RapidfireB);
} else {
set_val(XB1_RS, 0);
}
if(get_val(XB1_LT)) {
combo_run(Tag);combo_stop(RapidfireB);
swap(XB1_B, XB1_RS);
}
// Switch weapon reload timing
if(event_press(XB1_RIGHT)) {
CurrentWeapon = StartWeapon;
}
if(event_press(XB1_UP)) {
CurrentWeapon = StartWeapon;
}
if(event_press(XB1_LEFT)) {
CurrentWeapon = StartWeapon;
}
if(event_press(XB1_DOWN)) {
CurrentWeapon = Pistol;
}
if(get_val(XB1_RT)) {
if(CurrentWeapon == Pistol){
combo_run(Rapido);
}
}
}
combo RapidfireB {
set_val(XB1_B, 100);
wait(55);
set_val(XB1_B, 0);
wait(45);
set_val(XB1_B, 0);
}
combo Rapido {
set_val(XB1_RT, 100);
wait(60);
set_val(XB1_RT, 0);
wait(70);
set_val(XB1_RT, 100);
wait(60);
set_val(XB1_RT, 0);
wait(70);
}
combo Tag {
set_val(XB1_LS, 100);
wait(100);
set_val(XB1_LS, 0);
wait(300);
set_val(XB1_LS, 100);
wait(100);
set_val(XB1_LS, 0);
wait(300);
}