6th Prone Olock (ALmost) Ready R2>=Rapid R1

R1 Ready to use with rapid auto fire N Prone EVader.
Versionv7.00
AuthorKia7
Publish DateSat, 15 Jun 2013 - 03:48
Last UpdateMon, 3 Mar 2014 - 23:36
Downloads190
RATE


0

0

Release Notes: Stay Low and Play attention.
Code: Select all
/*PRONE Shot
 OLOCK RB
XB360_PC
 
 
*/

    define auto_fire = 10; //fire rate Rounds per-second (1-12-20 shots per-second)
    define Down_Slot = 5; //  +/-  Press Y + Down,up to activate***
    define Up_Slot = 7; //*****************Controller mode# Slot 1-9;********************
 
    define duck_hold= 300 ; //rate of crouch or Prone 300 = 1second
    define BLK = 135; // Delay L2 So it dont mess up with L2+R2 beeing pressed at the same time
    define Cross = 400; //Jump X,A ;speed rate timeing
    define Cross2 = 300; //off timeing jump
    define Cross3= 700; // Gernade timeing L2+R2
    define Expo = 69; //Midpoint expoentials
    define Sens = 136; // Sensitivity 125; default NOT_USE;
    define Delay = 120; //L2 delay block
    define Power_Of = 2;
    define Light=425;//light on value light show
    define O =  PS3_CIRCLE;//Knife Shake N Shake Controller (Change to Melee)*********************************************PS3_ACCY Controll ONLY
    define Y = PS3_TRIANGLE;// slot
    define RS = PS3_R3;//Drop
    define A = PS3_CROSS;//Jump
    define L1 = PS3_L1;//
    define L2 = PS3_L2;// Scope
    define R1 = PS3_R1;//Shoot
    define R2 = PS3_R2;//Secondary Fire Auto Matic for hand guns single shots
    define DWN = PS3_DOWN;
    define UP = PS3_UP;//
    define Leds_On = XB360_BACK; //Light up your Leds
 
    int Leds_4=FALSE;
    int hold_time, rest_time, Strength_Of;
   init {hold_time = 500 /auto_fire;Strength_Of=4000*Power_Of;
 
       if(hold_time >= 500) rest_time  =300;}//*** 10/5% Paused N off timeing difference rapidfire...
 
main {      sensitivity(PS3_RX, Expo,Sens);
            sensitivity(PS3_RY, Expo,Sens);
            sensitivity(PS3_ACCY, 100,5);
            sensitivity(PS3_ACCX, 100,5);// change to desire PS3_ACCX, PS3_ACCZ, PS3_ACCY, XB360{(PS3_GYRO)Limited controllers}
        reset_leds();
        if(event_release(Leds_On) && get_ptime(Leds_On) < 140) Leds_4 = !Leds_4;
        if(Leds_4&& !get_val(Leds_On)) combo_run(Autoshow);block(Leds_On, 200);
        if (get_val(PS3_ACCY))combo_run(Knife);
        if (get_val(PS3_ACCX))combo_run(Knife);
        if (get_val(O))combo_run(Knife);
        if (get_val(R2)){   
        if (event_release(L2))combo_run(DUCK);}// or change to [ event_press ] event_release For DROP or SNAP feature****Default my snap shot*******
        if (get_val(A))combo_run(JUMP);       
        if (get_val(R1))combo_run(LOVE);   //(*Rapid fire optional)
        if (get_val(R1))block(R1,Strength_Of);
        if (get_val(Y)){
        if (event_press(UP))combo_run(RumbleExample);}
        if (get_val(Y)){
        if (event_press(DWN))combo_run(RumbleExample);}
        if (get_val(Y)){
        if (event_press(UP)) combo_run (SLOT);}           
        if (get_val(Y)){
        if (event_press(DWN)) combo_run (sLOT);}
        if (get_val(R1))set_led(LED_2,1);
        if (get_val(O))set_led(LED_4,3);
        if (get_val(L1)){
        if (event_press(L2)) combo_run (Gernade_Dub);}
        if (get_val(L2)){
        if (event_press(L1)) combo_run (Gernade_Dub);}
        if (get_val(L1)) block(L1,Delay);
        if (get_val(R2))combo_run (Jump_duck1);
        if (get_val(L2))combo_stop(Jump_duck1);
}
    combo DUCK{set_led(LED_3,3);
        set_val(RS,100);
        wait(duck_hold)
        set_val(RS,0);
}
combo Jump_duck1{//option jump or prone
set_val(RS,100);
}
    combo JUMP{set_led(LED_3,2);
        set_val(A,100);
        wait (Cross);
        set_val(A,0);
        wait (Cross2);
}
    combo sLOT{reset_leds();
        wait(112);
        load_slot(Down_Slot);
}
    combo SLOT{reset_leds();
        wait (112);
        load_slot(Up_Slot);
}
combo LOVE{set_led(LED_4,1);set_led(LED_3,1);//Rapid fire optional
set_val(R2,100);
wait(hold_time);
set_val(R2,0);
wait(rest_time);
}
combo Gernade_Dub{set_led(LED_3,3);set_led(LED_2,3);
set_val(R1,100);
wait(Cross3);
set_val(R1,0);
}
combo Knife{set_led(LED_1,1);set_led(LED_2,1);set_led(LED_3,1);set_led(LED_4,1);
set_val(O,100):
wait(hold_time);
set_val(O,0);
wait(rest_time);
}   
combo RumbleExample {
    set_rumble(RUMBLE_A, 100);
    wait(1000);
    set_rumble(RUMBLE_A, 0);
}
 combo Autoshow {
   reset_leds();set_led(LED_1,2);wait(Light);set_led(LED_1,0);wait(280);
                set_led(LED_2,2);wait(Light);set_led(LED_2,0);wait(280);
                set_led(LED_3,2);wait(Light);set_led(LED_3,0);wait(280);
                set_led(LED_4,2);wait(Light);set_led(LED_4,0);wait(280);
                set_led(LED_4,3);wait(Light);
                set_led(LED_3,3);set_led(LED_4,3);wait(Light);
                set_led(LED_2,3);set_led(LED_3,3);set_led(LED_4,3);wait(Light);
                set_led(LED_1,3);set_led(LED_2,3);set_led(LED_3,3);set_led(LED_4,3);wait(Light);
                set_led(LED_1,1);set_led(LED_2,1);set_led(LED_3,1);set_led(LED_4,0);wait(Light);
                set_led(LED_1,1);set_led(LED_2,1);set_led(LED_3,0);set_led(LED_4,0);wait(Light);
                set_led(LED_1,1);set_led(LED_2,0);set_led(LED_3,0);set_led(LED_4,0);wait(Light);
                set_led(LED_1,0);set_led(LED_2,0);set_led(LED_3,0);set_led(LED_4,0);wait(Light);
}