PDA

View Full Version : Need help with script add on features.



WHITE 4ND N3RDY
27th November 14, 17:59
main{
//IF RT is pressed run RT_jitter combo.
if(get_val(4) > 10) {combo_run(RT_jitter);}
if(get_val(4) < 10) {combo_stop(RT_jitter);}

}

combo RT_jitter{

set_val(4, 100);
wait(20);
set_val(4, 100);
set_val(20, 100);
wait(20);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -95);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
set_val(20, 100);
wait(20);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -46);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(40);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, -97);
wait(10);
set_val(4, 100);
set_val(8, 0);
set_val(12, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, -97);
wait(10);
set_val(4, 100);
set_val(8, 0);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, -96);
wait(10);
set_val(4, 100);
set_val(8, 0);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(60);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(100);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(60);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(70);
set_val(4, 0);
set_val(8, 100);
set_val(12, -96);
wait(30);
set_val(8, 0);
}


So above is my jitter script and I want to learn how to add varibles to this like on/off features say when L2 and ps4 pad is pressed jitter is activated and same as to deactivate. Ive been trolling through how to forms in here to try to better understand how the gpc language works but i guess im a old fart and my brian has a hard time trying to put all steps together to make a working script. I have no problems doing basic GPC scripts like this code but i want to become better so I can be more independent in here. I feel if someone can write this up as stated in my opening statement of how id like the script to behave, I can better visually see how it was done rather than trying to make sense of examples wriiten comands with definitions of what does what next to them. Dont get me wrong i like knowing this, also on a side note Id like to say to kittydawn that u are awesome and i love how u explain things in your toutorials. Im more of a visual learner and I tend to just use a templete system when writting. Like with this script if someone makes this id use the body of this overe and over in other applications maybe slightly modifing the button commands to toggle on/off. Bottom line I think it would help me learn script better so I can be better. Thanks for hearing me out and hopefully someone can show me how this is done!!!!

Excalibur
27th November 14, 18:37
main{
//IF RT is pressed run RT_jitter combo.
if(get_val(4) > 10) {combo_run(RT_jitter);}
if(get_val(4) < 10) {combo_stop(RT_jitter);}

}

combo RT_jitter{

set_val(4, 100);
wait(20);
set_val(4, 100);
set_val(20, 100);
wait(20);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -95);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
set_val(20, 100);
wait(20);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -46);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(40);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, -97);
wait(10);
set_val(4, 100);
set_val(8, 0);
set_val(12, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, -97);
wait(10);
set_val(4, 100);
set_val(8, 0);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, -96);
wait(10);
set_val(4, 100);
set_val(8, 0);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(60);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(100);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(60);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(70);
set_val(4, 0);
set_val(8, 100);
set_val(12, -96);
wait(30);
set_val(8, 0);
}


So above is my jitter script and I want to learn how to add varibles to this like on/off features say when L2 and ps4 pad is pressed jitter is activated and same as to deactivate. Ive been trolling through how to forms in here to try to better understand how the gpc language works but i guess im a old fart and my brian has a hard time trying to put all steps together to make a working script. I have no problems doing basic GPC scripts like this code but i want to become better so I can be more independent in here. I feel if someone can write this up as stated in my opening statement of how id like the script to behave, I can better visually see how it was done rather than trying to make sense of examples wriiten comands with definitions of what does what next to them. Dont get me wrong i like knowing this, also on a side note Id like to say to kittydawn that u are awesome and i love how u explain things in your toutorials. Im more of a visual learner and I tend to just use a templete system when writting. Like with this script if someone makes this id use the body of this overe and over in other applications maybe slightly modifing the button commands to toggle on/off. Bottom line I think it would help me learn script better so I can be better. Thanks for hearing me out and hopefully someone can show me how this is done!!!!


Hi N3RDY,
just added variable OnOff. This variable can have value > 0 and zero - if the value is = 0 that means =FALSE.
if(OnOff) this mean - if the value for variable OnOff is TRUE ( the value is >0) then execute the code near to this condition otherwise go to the next code.

if(OnOff) { execute this code when OnOff is TRUE }
else { execute this code if OnOff is FALSE }


int OnOff=FALSE;

main{

// turn mod ON / OFF
if(get_val(PS4_L2) && event_press(PS4_L3))OnOff= !OnOff;


if(OnOff)
{// execute this code if OnOff is TRUE --------------
//IF RT is pressed run RT_jitter combo.
if(get_val(4) > 10) {combo_run(RT_jitter);}
if(get_val(4) < 10) {combo_stop(RT_jitter);}
}//--------------------------------------------------------------
}


combo RT_jitter{

set_val(4, 100);
wait(20);
set_val(4, 100);
set_val(20, 100);
wait(20);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -95);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
set_val(20, 100);
wait(20);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -46);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(40);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, -97);
wait(10);
set_val(4, 100);
set_val(8, 0);
set_val(12, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, -97);
wait(10);
set_val(4, 100);
set_val(8, 0);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, -96);
wait(10);
set_val(4, 100);
set_val(8, 0);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(60);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(100);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(60);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(70);
set_val(4, 0);
set_val(8, 100);
set_val(12, -96);
wait(30);
set_val(8, 0);
}

WHITE 4ND N3RDY
27th November 14, 21:15
Thanks now that i see it in use that's actually very simple. Thank you for your patience with me I appreciate it!

WHITE 4ND N3RDY
27th November 14, 23:48
Was wondering if someone can make another add on for me. I want the option to add a single rapidfire with on/off toggle. Rapidfire speed for MK-14, whatever sps that is. I would like it to be turned on/off by pressing ps4 L3 & R2 together.


int OnOff=FALSE;

main{

// turn mod ON / OFF
if(get_val(PS4_L3) && event_press(PS4_TRIANGLE))OnOff= !OnOff;


if(OnOff)
{// execute this code if OnOff is TRUE --------------
//IF RT is pressed run RT_jitter combo.
if(get_val(4) > 10) {combo_run(RT_jitter);}
if(get_val(4) < 10) {combo_stop(RT_jitter);}
}//--------------------------------------------------------------
}


combo RT_jitter{

set_val(4, 100);
wait(20);
set_val(4, 100);
set_val(20, 100);
wait(20);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -95);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
set_val(20, 100);
wait(20);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -46);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(40);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, -97);
wait(10);
set_val(4, 100);
set_val(8, 0);
set_val(12, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, -97);
wait(10);
set_val(4, 100);
set_val(8, 0);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, -96);
wait(10);
set_val(4, 100);
set_val(8, 0);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(60);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(100);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(60);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(70);
set_val(4, 0);
set_val(8, 100);
set_val(12, -96);
wait(30);
set_val(8, 0);
}

GL0ZZ3N
28th November 14, 00:58
int OnOff=FALSE;
int RapidOnOff=FALSE;


main{


// Turn RF ON / OFF
if(get_val(PS4_L3)) { if(event_press(PS4_R2)) RapidOnOff = !RapidOnOff;}


// turn mod ON / OFF
if(get_val(PS4_L3) && event_press(PS4_TRIANGLE))OnOff= !OnOff;




if(OnOff)
{// execute this code if OnOff is TRUE --------------
//IF RT is pressed run RT_jitter combo.
if(get_val(4) > 10) {combo_run(RT_jitter);}
if(get_val(4) < 10) {combo_stop(RT_jitter);}
}//--------------------------------------------------------------


if(RapidOnOff){
if(get_val(PS3_R2)) combo_run(RapidFire);
}
}


combo RapidFire{ // 16.95sps
// http://gyazo.com/c6a379384d29b666fd32e0775c0367a2.png


set_val(PS4_R2,100);
wait(30);
set_val(PS4_R2,0);
wait(19);
wait(10);
}

combo RT_jitter{

set_val(4, 100);
wait(20);
set_val(4, 100);
set_val(20, 100);
wait(20);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -95);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
set_val(20, 100);
wait(20);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -46);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(40);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, -97);
wait(10);
set_val(4, 100);
set_val(8, 0);
set_val(12, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, -97);
wait(10);
set_val(4, 100);
set_val(8, 0);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, -96);
wait(10);
set_val(4, 100);
set_val(8, 0);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(60);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(100);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 100);
wait(50);
set_val(4, 100);
set_val(8, 100);
set_val(12, -97);
set_val(20, 0);
wait(110);
set_val(4, 100);
set_val(8, 0);
set_val(12, 0);
wait(10);
set_val(4, 100);
set_val(20, 100);
wait(10);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 100);
wait(60);
set_val(4, 100);
set_val(8, 100);
set_val(12, -96);
set_val(20, 0);
wait(70);
set_val(4, 0);
set_val(8, 100);
set_val(12, -96);
wait(30);
set_val(8, 0);
}

:)