PDA

View Full Version : 8 combo template



MrNobody
23rd March 16, 05:06
I need a template with 8 combos (4 on left analog, 4 on right) and please let it be the type that recognizes the (set_val) inputs. Thank you so much to whoever helps me!!

Excalibur
23rd March 16, 06:13
I need a template with 8 combos (4 on left analog, 4 on right) and please let it be the type that recognizes the (set_val) inputs. Thank you so much to whoever helps me!!


Here you go:








// 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 (XB1_RX) >= 60) {
combo_run(Right)
}

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

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

if ( abs(get_val (XB1_RX))<= 20 && abs(get_val (XB1_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 (XB1_LX) >= 60) {
combo_run(LS_Right)
}

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

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

// overhead Cancel /*/ /*/
if ( abs(get_val (XB1_LX))<= 20 && abs(get_val (XB1_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(XB1_RS)) combo_run(R3_combo);


if(get_val(XB1_LS)) combo_run(L3_combo);










}// main block end

// COMBO BLOCK
// ----------------------------------------------------
combo Right {
set_val(XB1_LEFT,100);
wait(40);
wait(80);
set_val(XB1_LEFT,100);
set_val(XB1_DOWN,100);
wait(40);
set_val(XB1_RIGHT,100);
wait(40);
}
combo Left {
set_val(XB1_LEFT,100);
wait(40);
wait(80);
set_val(XB1_LEFT,100);
set_val(XB1_DOWN,100);
wait(40);
set_val(XB1_RIGHT,100);
wait(40);
}
combo Up {
set_val(XB1_LEFT,100);
wait(40);
wait(80);
set_val(XB1_LEFT,100);
set_val(XB1_DOWN,100);
wait(40);
set_val(XB1_RIGHT,100);
wait(40);
}
combo Down {
set_val(XB1_LEFT,100);
wait(40);
wait(80);
set_val(XB1_LEFT,100);
set_val(XB1_DOWN,100);
wait(40);
set_val(XB1_RIGHT,100);
wait(40);
}


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


combo R3_combo {
///


}


combo L3_combo {
///


}
///////////////////////////////////////
// LEFT STICK
combo LS_Right {
set_val(XB1_LEFT,100);
wait(40);
wait(80);
set_val(XB1_LEFT,100);
set_val(XB1_DOWN,100);
wait(40);
set_val(XB1_RIGHT,100);
wait(40);
}
combo LS_Left {
set_val(XB1_LEFT,100);
wait(40);
wait(80);
set_val(XB1_LEFT,100);
set_val(XB1_DOWN,100);
wait(40);
set_val(XB1_RIGHT,100);
wait(40);
}
combo LS_Up {
set_val(XB1_LEFT,100);
wait(40);
wait(80);
set_val(XB1_LEFT,100);
set_val(XB1_DOWN,100);
wait(40);
set_val(XB1_RIGHT,100);
wait(40);
}
combo LS_Down {
set_val(XB1_LEFT,100);
wait(40);
wait(80);
set_val(XB1_LEFT,100);
set_val(XB1_DOWN,100);
wait(40);
set_val(XB1_RIGHT,100);
wait(40);
}

eammon doyle
23rd March 16, 10:44
Thanks man, but the combos only work from one side as back and forward cannot be used in the code, only left and right. and is there a way to use the set val inputs to make the combo, then reduce the bytecode afterwards? i just dont like the other method its too confusing to me

Excalibur
23rd March 16, 11:56
Thanks man, but the combos only work from one side as back and forward cannot be used in the code, only left and right. and is there a way to use the set val inputs to make the combo, then reduce the bytecode afterwards? i just dont like the other method its too confusing to me


You can change all Left or Right D pad button with variables and in main block you can switch this variables depending the direction. If you write your combos in this way ( like in the example in my above post ) then you can use Script Manipulator to convert script in data format and the combos will automatically translate to work in both sides.

Carloa1118
5th May 18, 18:42
Hola un scrits para m4 con auto apuntado para straiker