PDA

View Full Version : Requested Script for Left and Right Stick activation.



Excalibur
4th January 16, 10:32
Script was requested by espressofreddo (http://cronusmax.com/forums/member.php?u=305142)
Here is the script.




// Script was generated with Script Manipulator ver. 11.9
//-----------------------------------------------------

// MAIN BLOCK
//-----------------------------------------------------
main { // block start


///////////////////////////////////////////////////////
//// RIGHT STICK COMBOS /////////////////////////////
///////////////////////////////////////////////////////

// right combo - hold Right Stick to the Right
if (get_val (PS4_RX) >= 60) {
combo_run(Right)
}

// leftcombo- hold Right Stick to the Left
if (get_val (PS4_RX) <= -60) {
combo_run (Left)
}

// right overhead- hold Right Stick to the Up
if (get_val (PS4_RY) <= -60) {
combo_run(Up)
}
// left overhead- hold Right Stick to the Down
if (get_val (PS4_RY) >= 60) {
combo_run(Down)
}

if ( abs(get_val (PS4_RX))<= 20 && abs(get_val (PS4_RY)) <= 20) {
combo_stop (Up);
combo_stop (Down);
combo_stop (Right);
combo_stop (Left);

}


///////////////////////////////////////////////////////
//// LEFT STICK COMBOS /////////////////////////////
///////////////////////////////////////////////////////

// right combo - hold Left Stick to the Right
if (get_val (PS4_LX) >= 60) {
combo_run(LS_Right)
}

// leftcombo- hold Left Stick to the Left
if (get_val (PS4_LX) <= -60) {
combo_run (LS_Left)
}

// right overhead- hold Left Stick to the Up
if (get_val (PS4_LY) <= -60) {
combo_run(LS_Up)
}
// left overhead- hold Left Stick to the Down
if (get_val (PS4_LY) >= 60) {
combo_run(LS_Down)
}

// overhead Cancel /*/ /*/
if ( abs(get_val (PS4_LX))<= 20 && abs(get_val (PS4_LY)) <= 20) {
combo_stop (LS_Up);
combo_stop (LS_Down);
combo_stop (LS_Right);
combo_stop (LS_Left);

}


///////////////////////////////////////////////////////
//// L3 and R3 COMBOS //////////////////////////
///////////////////////////////////////////////////////

if(get_val(PS4_R3)) combo_run(R3_combo);

if(get_val(PS4_L3)) combo_run(L3_combo);






}// main block end

// COMBO BLOCK
// ----------------------------------------------------
combo Right {
set_val(PS4_LEFT,100);
wait(40);
wait(80);
set_val(PS4_LEFT,100);
set_val(PS4_DOWN,100);
wait(40);
set_val(PS4_RIGHT,100);
wait(40);
}
combo Left {
set_val(PS4_LEFT,100);
wait(40);
wait(80);
set_val(PS4_LEFT,100);
set_val(PS4_DOWN,100);
wait(40);
set_val(PS4_RIGHT,100);
wait(40);
}
combo Up {
set_val(PS4_LEFT,100);
wait(40);
wait(80);
set_val(PS4_LEFT,100);
set_val(PS4_DOWN,100);
wait(40);
set_val(PS4_RIGHT,100);
wait(40);
}
combo Down {
set_val(PS4_LEFT,100);
wait(40);
wait(80);
set_val(PS4_LEFT,100);
set_val(PS4_DOWN,100);
wait(40);
set_val(PS4_RIGHT,100);
wait(40);
}

////////////////////////////////////////
// L3 and R3

combo R3_combo {
///

}

combo L3_combo {
///

}
///////////////////////////////////////
// LEFT STICK
combo LS_Right {
set_val(PS4_LEFT,100);
wait(40);
wait(80);
set_val(PS4_LEFT,100);
set_val(PS4_DOWN,100);
wait(40);
set_val(PS4_RIGHT,100);
wait(40);
}
combo LS_Left {
set_val(PS4_LEFT,100);
wait(40);
wait(80);
set_val(PS4_LEFT,100);
set_val(PS4_DOWN,100);
wait(40);
set_val(PS4_RIGHT,100);
wait(40);
}
combo LS_Up {
set_val(PS4_LEFT,100);
wait(40);
wait(80);
set_val(PS4_LEFT,100);
set_val(PS4_DOWN,100);
wait(40);
set_val(PS4_RIGHT,100);
wait(40);
}
combo LS_Down {
set_val(PS4_LEFT,100);
wait(40);
wait(80);
set_val(PS4_LEFT,100);
set_val(PS4_DOWN,100);
wait(40);
set_val(PS4_RIGHT,100);
wait(40);
}