Page 1 of 10 12345 ... LastLast
Results 1 to 30 of 295

Topic: Generic Anti-Recoil Script

  1. #1

  2. The Following 10 Users Say Thank You to KingMike For This Useful Post:


  3. #2
    Senior Support Staff


    User Info Menu


  4. The Following 3 Users Say Thank You to LEX LOST For This Useful Post:


  5. #3
    SILVER ELITE MASTER

    User Info Menu


  6. #4
    GOLD NOVA IV

    User Info Menu

    Re: Generic Anti-Recoil Script



    This is not going to work for aim adjustment while firing. What if your target changes directions or you're wanting go in another direction other than 25 down, and 7 left, or your recoil puts you left, and you correct 7 more left? You'll constantly aim in that direction, being uncorrectable. Have you tested this, and how consistent is it?

  7. #5
    Senior Support Staff


    User Info Menu

    Re: Generic Anti-Recoil Script

    the script works fine: I have tested it yesterday for an hour and you can aim well even when the antirecoil is running.
    The "recoil up" section of the script was made by Heinekeken and I find it brilliant, particularly due to this passage that allows you to do aim adjustment while firing.
    I have added the side recoil and the other gadgets:cool2:. Certainly can be improved and adapted to other weapons.

    I would be grateful if you would try it and tell me what you think

  8. #6
    SILVER ELITE MASTER

    User Info Menu

    Re: Generic Anti-Recoil Script

    Quote Originally Posted by LEX LOST View Post
    the script works fine: I have tested it yesterday for an hour and you can aim well even when the antirecoil is running.
    The "recoil up" section of the script was made by Heinekeken and I find it brilliant, particularly due to this passage that allows you to do aim adjustment while firing.
    I have added the side recoil and the other gadgets:cool2:. Certainly can be improved and adapted to other weapons.

    I would be grateful if you would try it and tell me what you think
    having problems with going up and down when i try your script... (while firing) .. the screen kind of hitches.

  9. #7
    SILVER ELITE MASTER

    User Info Menu

    Re: Generic Anti-Recoil Script

    I can get it to compile, but i don't understand how to use it. I understand that the anti_recoil int controls the amount of pull down, but when i run the gpc, nothing happens.
    Is it because I am using MaxAim?

  10. #8
    Senior Support Staff


    User Info Menu

    Re: Generic Anti-Recoil Script

    Quote Originally Posted by dirksmoove View Post
    having problems with going up and down when i try your script... (while firing) .. the screen kind of hitches.
    but You've tried with the XB1 controller or with KM?

  11. #9
    SILVER ELITE MASTER

    User Info Menu

    Re: Generic Anti-Recoil Script

    Quote Originally Posted by dirksmoove View Post
    having problems with going up and down when i try your script... (while firing) .. the screen kind of hitches.
    Quote Originally Posted by LEX LOST View Post
    but You've tried with the XB1 controller or with KM?
    I have the same problem, I use a 360 controller.

  12. #10
    Senior Support Staff


    User Info Menu

    Re: Generic Anti-Recoil Script

    have you change XB1 buttons with 360?
    do it with this is easy
    http://www31.zippyshare.com/v/38053641/file.html

  13. #11
    SILVER ELITE MASTER

    User Info Menu

    Re: Generic Anti-Recoil Script

    i got the generic script to work with kb and mouse.. i just changed the init to the CMUEXTRA button.

  14. #12
    SILVER ELITE MASTER

    User Info Menu

    Re: Generic Anti-Recoil Script

    @lex
    I use the kb + mouse.. tried programming it into the controller, same effects (cannot move left or right without jitter) .

  15. #13
    Senior Support Staff


    User Info Menu

    Re: Generic Anti-Recoil Script

    I'm sorry cannot help U with Kb&M i only use it with XBONE controller and it works fine.

  16. #14
    SILVER ELITE

    User Info Menu

    Re: Generic Anti-Recoil Script

    Quote Originally Posted by dirksmoove View Post
    i got the generic script to work with kb and mouse.. i just changed the init to the CMUEXTRA button.
    can you post your code for the keyboard and mouse please? do I only need to change init with CMUEXTRA keyword?

  17. #15

  18. #16

  19. #17
    SILVER ELITE

    User Info Menu

    Re: Generic Anti-Recoil Script

    thanks a lot, do you have anything for the scar-h and/or ak-12 ? if not how could I modify your code for these guns?
    thanks

  20. #18
    SILVER ELITE MASTER

    User Info Menu

    Re: Generic Anti-Recoil Script

    modify the code(the recoil number). use the second script that i posted for automatic weapons.

  21. #19
    SILVER ELITE

    User Info Menu

    Re: Generic Anti-Recoil Script

    Quote Originally Posted by dirksmoove View Post
    modify the code(the recoil number). use the second script that i posted for automatic weapons.
    increase the recoil number or decrease it, also if I decrease it how should I adjust the rate of fire number and if I increase it how should I modify the rate of fire then?

    thanks

  22. #20
    SILVER ELITE MASTER

    User Info Menu

    Re: Generic Anti-Recoil Script

    the higher the value.. the more pull down... so the less recoil guns have the lower the number.. go to the test range

  23. #21
    SILVER ELITE

    User Info Menu

    Re: Generic Anti-Recoil Script

    Quote Originally Posted by dirksmoove View Post
    the higher the value.. the more pull down... so the less recoil guns have the lower the number.. go to the test range
    thanks that explains it well, what about the rate of fire number does it affect the recoil at all? also is higher rate of fire better ?

  24. #22
    SILVER ELITE MASTER

    User Info Menu

    Re: Generic Anti-Recoil Script

    no.. bf4 has a lot of caps when it comes to rapid firing.. find a rate that you like

  25. #23
    SILVER IV

    User Info Menu

    Re: Generic Anti-Recoil Script

    Quote Originally Posted by dirksmoove View Post
    // Ace 52 Recoil Script
    /* *
    * ANTI-RECOIL GPC SCRIPT
    * *********************************************************** */




    // Use Anti-recoil only when scoping
    define ONLY_WITH_SCOPE = TRUE;
    define SPOT_BUTTON = XB1_RB;int autospot = FALSE;
    define SENS_INCREASE_BY = 20;


    // Anti-recoil strongness
    // Value range from 0 to 100
    // Each weapon may need a specific value
    define ANTI_RECOIL = 30;




    //
    // No need to make changes in the code below.
    //


    //
    // VARIABLES
    // ---------------------------------------------------------
    int fire_button, scope_button;
    int anti_recoil;


    //
    // INITIALIZATION
    // ---------------------------------------------------------
    init {
    if( event_press(CEMU_EXTRA1)){ // PS3 Trigger & Bumper
    fire_button = 3;
    scope_button = 6;
    } else { // Natural Trigger & Bumper
    fire_button = 4;
    scope_button = 7;
    }
    }


    //
    // MAIN PROCEDURE
    // ---------------------------------------------------------
    main {
    if(!ONLY_WITH_SCOPE || get_val(scope_button)) {
    combo_run(AntiRecoil);




    }
    if(event_release(SPOT_BUTTON) && get_ptime(SPOT_BUTTON) < 140)
    autospot = !autospot;
    if(autospot && !get_val(SPOT_BUTTON))
    combo_run(AutoSpot);block(SPOT_BUTTON, 200);}
    combo AutoSpot {
    set_val(SPOT_BUTTON, 100);
    wait(40);
    set_val(SPOT_BUTTON, 0);
    wait(200);
    if(get_val(XB1_LT))
    combo_run(HoldBreath);




    }


    combo HoldBreath{
    wait(50);
    set_val(XB1_LS, 100);
    wait(3000);
    set_val(XB1_LS, 0);
    }
    //
    // COMBOS
    // ---------------------------------------------------------
    combo AntiRecoil { // This combo must be the last one
    if(get_val(fire_button)) {
    anti_recoil = get_val(10) + ANTI_RECOIL;
    if(anti_recoil > 100) anti_recoil = 100;
    set_val(10, anti_recoil);
    }
    }

    - - - Updated - - -

    in the first script, im working on an rpg quick reload.shouldnt interfere with anything though.
    I'm playing with this one and it's working quite well for me.

    I was just wondering if we could change the spot function, so rather than spamming, the spot function is only activated when the left trigger is pulled?

    I'm running the ACW-R at about 40 on the pull down.

  26. #24
    MASTER GUARDIAN ELITE

    User Info Menu

    Re: Generic Anti-Recoil Script

    Quote Originally Posted by pleasure master View Post
    I'm playing with this one and it's working quite well for me.

    I was just wondering if we could change the spot function, so rather than spamming, the spot function is only activated when the left trigger is pulled?

    I'm running the ACW-R at about 40 on the pull down.
    Copy the below and then highlight the original script and replace it. I tested it and it works.

    I modified it but I don't know if I understood you correctly. Do you still want it to spam RB when holding down LT? In the original script LT will press LS. I don't know if you still want that and RB spam on one button. I don't play the game so I'm not familiar with it. Please let me know if I'm wrong.

  27. #25
    SILVER ELITE

    User Info Menu

    Re: Generic Anti-Recoil Script

    hi token, can you modify the autospot function to make it work with this script, autospot should only take effect when pressing right mouse button or left trigger



  28. #26
    MASTER GUARDIAN ELITE

    User Info Menu

    Re: Generic Anti-Recoil Script

    Quote Originally Posted by telltale8021 View Post
    hi token, can you modify the autospot function to make it work with this script, autospot should only take effect when pressing right mouse button or left trigger


    I can't modify the script looking like that.

  29. #27
    SILVER IV

    User Info Menu

    Re: Generic Anti-Recoil Script

    Quote Originally Posted by token View Post
    Copy the below and then highlight the original code and replace it. I tested it and it works.
    Code:
    if(get_val(XB1_LT)) {combo_run(AutoSpot);}} 
    combo AutoSpot { 
    set_val(SPOT_BUTTON, 100); 
    wait(40); 
    set_val(SPOT_BUTTON, 0); 
    wait(200);
    if(get_val(XB1_LT))
    combo_run(HoldBreath);
    I modified it but I don't know if I understood you correctly. Do you still want it to spam RB when holding down LT? In the original script LT will press LS. I don't know if you still want that and R1 spam on one button. I don't play the game so I'm not familiar with it. Please let me know if I'm wrong.

    I will try this and let you know.

    Hey, thanks for your effort, guys like you make stuff like this worthwhile..

  30. #28
    SILVER ELITE

    User Info Menu

    Re: Generic Anti-Recoil Script

    Quote Originally Posted by token View Post
    I can't modify the script looking like that.
    sorry using the gpc wrapper causes line breaks to disappear for some reason

    // System: XBOXONE
    // Controller: XBOXONE
    // GAME: BF4
    // WEAPON: AK12 (Muzzle brake - Angled/Folding grip)
    // RAPIDFIRE - AUTORUN - AUTOBREATH - AUTOSPOT - AIMING ANTI RECOIL
    ////////////////////////////////////////////////////////////////////

    define RATE_OF_FIRE = 17 ; // Range: 1 to 25 RPS
    define RECOIL = 45 ; // recoil modifier
    define SPOT = 4000 ; // auto-spot modifier
    define SELECT = XB1_A; // press A + LT to activate-deactivate rapidfire
    define START = XB1_LT;
    define SENS_UP = CEMU_EXTRA9; // I like using the "+" key which is "="
    define SENS_DOWN = CEMU_EXTRA8; // I like using the "-" key
    define SENS_RESET = CEMU_EXTRA7; // I like using the "0" key
    define IN_VEHICLE = CEMU_EXTRA6; // I like using the "v" key
    define OUT_VEHICLE = CEMU_EXTRA5; // I like using the "b" key
    define X_AXIS = XB1_RX; // Change this to your console
    define Y_AXIS = XB1_RY; // Change this to your console
    define ZOOM = XB1_LT; // Change this to your console, usually looking for the Left trigger
    define SENS_ZOOM_INCREASE = 9; // You can change this value as needed
    define SENS_VEHIC_INCREASE = 100; // You can change this value as needed


    int rapidfire = TRUE;
    int rapid_onoff = TRUE;
    int autospot = TRUE;
    define SPOT_BUTTON = XB1_RB; // press SPOTBUTTON 1 TIME to turn on/off "AutoSpot" or hold down the SPOTBUTTON to Scoreboard
    define RAPIDFIRE_BUTTON = XB1_RT;
    int hold_time, rest_time;
    int sensMultiply = 1; //This is the counter of how much sensitivity we are adding or not
    int inVehicle = 10; // Need to know when I am in a vehicle as I need more sensitivity


    init {
    hold_time = 500 / RATE_OF_FIRE;
    rest_time = hold_time - 20;
    if(rest_time < 0) rest_time = 0;
    }
    main {
    block_rumble(); // blocks controller rumble, not needed just nice



    // If I am holding ZOOM and not in a vehicle -> Increase sensitivity by SENS_ZOOM_INCREASE + our in game sensitivity changer
    if(get_val(ZOOM) && !inVehicle) {
    sensitivity( X_AXIS, NOT_USE, 100 + SENS_ZOOM_INCREASE + (1 * sensMultiply));
    sensitivity( Y_AXIS, NOT_USE, 100 + SENS_ZOOM_INCREASE + (1 * sensMultiply));
    }


    // If I am in a vehicle -> Increase sensitivity by SENS_VEHIC_INCREASE + our in game sensitivity changer
    if(inVehicle) {
    sensitivity( X_AXIS, NOT_USE, 100 + SENS_VEHIC_INCREASE + (10 * sensMultiply));
    sensitivity( Y_AXIS, NOT_USE, 100 + SENS_VEHIC_INCREASE + (10 * sensMultiply));
    }


    // Else I am not in a vehicle and not using zoom, just change sensitivity by our in game sensitivity changer
    else {
    sensitivity( X_AXIS, NOT_USE, 100 + (1 * sensMultiply));
    sensitivity( Y_AXIS, NOT_USE, 100 + (1 * sensMultiply));
    }
    // If I press the SENS_UP key, increase sensitivity for everything
    if(event_press(SENS_UP)) {
    sensMultiply = sensMultiply + 1;
    }
    // If I press the SENS_DOWN key, decrease sensitivity for everything
    if(event_press(SENS_DOWN)) {
    sensMultiply = sensMultiply - 1;
    }


    // If I press the SENS_RESET key, reset all in game sensitivity back to normal
    if(event_press(SENS_RESET)) {
    sensMultiply = 0;
    }


    // If I press the IN_VEHICLE key, tell the script that I am now in a vehicle
    if(event_press(IN_VEHICLE)) {
    inVehicle = 1;
    }


    // If I press the OUT_VEHICLE key, tell the script that I am now out of a vehicle
    if(event_press(OUT_VEHICLE)) {
    inVehicle = 0;
    }
    // AUTORUN
    if(get_val(XB1_LY) < -99) { set_val(XB1_LS, 100)}
    else if(get_val(XB1_LY) > -99) {set_val(XB1_LS, 0)
    }
    // RAPIDFIRE
    if(get_val(SELECT) && event_press(START)) rapid_onoff = !rapid_onoff; //sets variable to TRUE or FALSE when both buttons are pressed.
    if(get_val(RAPIDFIRE_BUTTON) && rapid_onoff) { //Now Looks for a "TRUE" value of rapid_onoff
    combo_run(RapidFire);
    } else if(combo_running(RapidFire)) {
    combo_stop(RapidFire);
    }
    // ANTIRECOIL
    if((get_val(RAPIDFIRE_BUTTON)) && (get_val(XB1_LT) > 50)) {
    combo_run(antirecoil);
    } else if(combo_running(RapidFire)) {
    combo_stop(antirecoil);
    }
    // ANTIRECOIL AIM RELEASE
    if ((get_val(XB1_RY)> 20) && (get_val(XB1_RY)< -20)) {combo_stop(antirecoil);}


    // AUTOBREATH
    if(get_val(XB1_LT) > 99) {combo_run(AutoBreath);}
    if(get_val(XB1_LT) < 99) {combo_stop(AutoBreath);}


    // AUTOSPOT
    if(event_release(SPOT_BUTTON) && get_ptime(SPOT_BUTTON) < 1000) autospot = !autospot;
    if ((autospot && !get_val(SPOT_BUTTON)) && (SPOT > 0 )) combo_run(AutoSpot);
    block(SPOT_BUTTON,1000);
    }
    //Autobreath
    combo AutoBreath {
    wait(200);
    set_val(XB1_LS, 100);
    wait(4000);
    }
    //Autospot
    combo AutoSpot {
    set_val(SPOT_BUTTON, 100);
    wait(50);
    set_val(SPOT_BUTTON, 0);
    wait(SPOT);
    }
    //Rapidfire
    combo RapidFire {
    set_val(RAPIDFIRE_BUTTON, 100);
    wait(hold_time);
    set_val(RAPIDFIRE_BUTTON, 0);
    wait(rest_time);
    set_val(RAPIDFIRE_BUTTON, 0);
    }
    // ANTIRECOIL
    combo antirecoil {
    set_val(XB1_RY, RECOIL);
    wait(10);
    }

  31. #29
    MASTER GUARDIAN ELITE

    User Info Menu

    Re: Generic Anti-Recoil Script

    Quote Originally Posted by telltale8021 View Post
    sorry using the gpc wrapper causes line breaks to disappear for some reason
    Copy the modified script below. I tested it and it works.

    I assume you don't want the RB spam? I notice it's very slow in the original script. I didn't change it so let me know if I should change it. Try the script out and let me know if something is wrong. Sometimes the gpc code wrapper doesn't work for me so I use code, /code . I think it's a good substitute but if anyone knows why the gpc code wrapper doesn't work please share.

  32. #30
    MASTER GUARDIAN ELITE

    User Info Menu

    Re: Generic Anti-Recoil Script

    I don't double post often but I like people to know I figured it out. Click on the "Switch to sourcecode" in the top left corner. Then paste your script over the broken script. Then you will have a readable gpc script.

Page 1 of 10 12345 ... LastLast

Posting Permissions

  • You may not post new topics
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •