FastR1

Will make R1 and triangle be pressed really fast/
Version1.00
Authorrenfrozodiac
Publish DateMon, 9 Jun 2014 - 15:55
Last UpdateMon, 9 Jun 2014 - 15:55
Downloads313
RATE


0

0

Code: Select all
/* FastR1
by renfrozodiac
 
When L2 is held and the touchpad is pressed, this will be enabled.
 
This script will quickly press R1 and triangle. (Somewhat) useful for FPS
or just fun to play with.
 
*/

 
 
define INITIAL = FALSE;
 
int ON = INITIAL;
 
main {
    if(get_val(PS4_L2) && event_press(PS4_TOUCH)){
        ON = !ON;
    }
 
    if(ON && get_val(PS4_R1)) combo_run(One);
 
    if(ON){
    set_led(LED_1, 1);
    set_led(LED_2, 0);
    set_led(LED_3, 1);
    set_led(LED_4, 0);
    }
 
    if(!ON){
    set_led(LED_1, 1);
    set_led(LED_2, 0);
    set_led(LED_3, 0);
    set_led(LED_4, 0);
    }
 
    if(ON && get_val(PS4_R1)){
    set_led(LED_1, 0);
    set_led(LED_2, 0);
    set_led(LED_3, 1);
    set_led(LED_4, 0);
    }
 
}
    combo One {
    set_val(PS4_R1, 100);
    wait(40);
    set_val(PS4_TRIANGLE, 100);
    wait(40);
    set_val(PS4_R1, 0);   
    wait(40);
    set_val(PS4_TRIANGLE, 0);
    wait(40);
}