PS4 Cross Over Gaming Script

This script will notify you when the Authentication Timeout is about to occur by rumbling the gamepad. You can set the rumble to start whenever you like and the interval between rumbles will increase the closer it gets to automatically resetting your connection. You can manually reset the timer by holding Back and pressing A The Script also swaps the Back with the touchpad button. Version 1.1
Version1.1
AuthorValant
Publish DateSat, 16 Jan 2016 - 21:13
Last UpdateSun, 17 Jan 2016 - 09:39
Downloads395
RATE


2

1

Code: Select all
/*
PS4 Cross Over Gaming Script
 
This script will remap your back/select/view button to the touchpad
and enable you to still access the share screen by holding back and pressing RS/R3
 
You can also reset the timeout by holding Back/Select/View and pressing A/Cross
 
You can set a rumble notification for when the authentication is close to timing out.
 
Author: KittyDawn (Repubbed by JaggedDiamond)*/

 
int authcount;
int NOTIFY=3; //1=30 secs 2=1min 3=1min 30 secs and so on up to 16.
 
main{
    //PS4 Cross Over Gaming Section
    if(get_console()==PIO_PS4  && get_controller()!=PIO_PS4){
        authcount=ps4_authtimeout();
        swap(1,27);                     //Swap Back/Select with Touchpad Press
        if(get_val(27) && get_val(5)){  //Press Back/Select and press RS/R3 to press share.
            set_val(27,0);
            set_val(5,0);
            set_val(1,100);
        }       
        if(get_val(27)){             //Hold Back/Select and Press A/Cross to reset Auth Timeout.
            if(event_press(19)){
                output_reconnection();
            }
            set_val(19,0);
        }
        if(authcount <=NOTIFY+1){
            combo_run(notify);
        }
    }
    //PS4 Cross Over Gaming Section End
}
 
combo notify{
    set_rumble(RUMBLE_A,100);
    set_rumble(RUMBLE_B,100);
    wait(150);
    reset_rumble();
    wait(250*authcount);
}