PS4 Rapid Fire + L1/L2 & R1/R2 Trigger swap

This script swaps L1 with L2 and R1 with R2 to give more of a Dualshock 3 layout. A rapid fire is then applied to the main trigger. Script is based on "CM Tutorial 1" by KittyDawn. Many thanks to KittyDawn for making it available.
Version1.00
AuthorStarrett
Publish DateTue, 15 Jul 2014 - 13:58
Last UpdateTue, 15 Jul 2014 - 13:58
Downloads779
RATE


2

0

Release Notes: Initial version.
Code: Select all
// Script based completely on "CM Tutorial 1" by KittyDawn - many thanks.
 
 
remap PS4_L2 -> PS4_L1;
remap PS4_L1 -> PS4_L2;
remap PS4_R2 -> PS4_R1;
remap PS4_R1 -> PS4_R2;
 
define turbofirespeed=60;   //Value in milliseconds; higher value = slower fire, slower value = faster fire.
 
define turbobutton=3;       //Rapid Fire on R2 only.
 
main {
 
    if (get_val(turbobutton)) {combo_run (turbofire);}
 
}
 
combo turbofire {
 
        set_val(turbobutton,100);
        wait (turbofirespeed);
        set_val(turbobutton,0);
        wait (turbofirespeed);
        set_val(turbobutton,0);
}