GPC SCRIPT LIBRARY

Legacy Sticks/Standard Sticks

This script allows use of Legacy Sticks in games which do not support Legacy controls.

*(TO ENABLE LEGACY STICKS, SIMULTANEOUSLY PRESS (LB+RB+X)

**(TO DISABLE LEGACY STICKS, SIMULTANEOUSLY PRESS (LB+RB+X)

***(RUMBLE WILL NOTIFY PROPER SIMULTANEOUS BUTTON PRESS OF (LB+RB+X)
Version 1.0
Author TheJackal44
Published Date 2017-01-12 01:33:45
Latest Date 2017-01-12 01:33:45
Downloads 136
VOTE NOW

0

0
Contact Author
Scripts by Author
RELEASE NOTES
This version of Legacy sticks can be activated, and deactivated with button press, for ease of use in menus, and in game.

*To activate/deactivate press (LB+RB+X) simultaneously. (Rumble will activate upon successful activation/deactivation)

Special thanks to Excaliber for helping me work this one out!
Code:Select all
//HOLD= LB+RB+X	(FOR >= 3 SECONDS)
//GET=SWAP LX AND RX

int do_swap;

main {

    if(get_val(XB1_LB)  && get_val(XB1_RB) && !do_swap){
        if(event_press(XB1_X)){
			do_swap = TRUE;
            combo_run(NOTIFICATIO_ON);
        }
    }

	else if(get_val(XB1_LB)  && get_val(XB1_RB) && do_swap){
		if( event_press(XB1_X)){
			do_swap = FALSE;
			combo_run(NOTIFICATIO_OFF);
		}
	}
	if(do_swap){
		swap(XB1_LX,XB1_RX);
	}
}
combo NOTIFICATIO_ON	{
	set_rumble(RUMBLE_A,100);
	wait(300);
	reset_rumble();
	wait(1000);
}
combo NOTIFICATIO_OFF	{
	set_rumble(RUMBLE_B,100);
	wait(300);
	reset_rumble();
	wait(1000);
}

Pin It on Pinterest

Share This