Accessibility: Everybody's Gone to the Rapture (Left-stick = Six-Axis)

A method to make the left-stick able to unlock spirits, normally unlocked using six-axis controls.
Version1.00
AuthorSpecialEffect
Publish DateThu, 6 Oct 2016 - 18:53
Last UpdateThu, 6 Oct 2016 - 18:53
Downloads16
RATE


0

0

Code: Select all
/* *
* EVERYBODY'S GONE TO THE RAPTURE (PS4).
*
*  Script allowing left-stick x-axis control to unlock spirits.
*  Barrie Ellis (OneSwitch.org.uk) 6.10.2016 -  with thanks to CypherNova139
*  http://www.consoletuner.com/forum/viewtopic.php?f=6&t=4838&p=36907
* ************************************************************************** */

 
main {
 
 
        if(get_val(PS3_LY) > 20) {
        //down
        set_val(PS3_ACCY, get_val(PS3_LY)/4);
        set_val(PS3_LY, 0);
        } else {
        set_val(PS3_ACCY, get_val(PS3_LY)/4);
        set_val(PS3_LY, 0);
        }
 
        if(get_val(PS3_LX) > 20) {
        //right
        set_val(PS4_ACCZ, -25);
        set_val(PS4_ACCX, get_val(PS3_LX)/4 * -1);
        set_val(PS4_GYROY, get_val(PS3_LX)/15 * -1);
        set_val(PS3_LX, 0);
        } else {
        set_val(PS4_ACCZ, -25);
        set_val(PS4_ACCX, get_val(PS3_LX)/4 * -1);
        set_val(PS4_GYROY, get_val(PS3_LX)/15 * -1);
        set_val(PS3_LX, 0);
        }
 
}