/* *
* GPC SCRIPT
*
* GPC is a scripting language with C-like syntax.
* To learn more access GPC Language Reference on Help menu.
* *********************************************************** */
//auto aim
int Wait_Minimum = 80;
int Wait_Maximum = 120;
int Random_Time = 0;
int Random_Wait = 0;
int mod= FALSE;
init{
Random_Time = Wait_Minimum;
}
main {
if (get_val(SWITCH_ZL) && mod == TRUE){
Random_Time = Random_Time + get_rtime();
if(Random_Time >= Wait_Maximum){
Random_Time = Wait_Minimum;
}
Random_Wait = Random_Time;
combo_run(foo);
}
if (get_val(SWITCH_ACCX)) {
mod = TRUE;
}
if (get_val(SWITCH_ACCY)){
mod = FALSE;
}
}
combo foo {
set_val(SWITCH_ZL,100);
wait(Random_Wait);
set_val(SWITCH_ZL,0);
wait(Random_Wait);
set_val(SWITCH_ZL,0);
}