Page 2 of 5 FirstFirst 1234 ... LastLast
Results 16 to 30 of 61
  1. #16
    spam4goldeneagles's Avatar
    Join Date
    Apr 2020
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0

    How to account for horizontal recoil?

    Hey Sbuj, I have poked around the internals of this and it is working really nicely so far. Editing the recoil_table for each weapon is fairly intuitive.

    Now the question is, how can I customize the horizontal recoil? I THINK the function MoveMouseRelative(0, recovery / 10) part is where it feeds in the mouse movements in X and Y planes. Now, the Y value reads off recovery / 10, but the X value (horizontal recoil) currently stays set at 0. Is it possible for you to add an input from another set of recoil tables to feed into the horizontal movement value, so that we can tinker with the horizontal recoil?

    Cant wait to tinker with this more.

  2. #17
    k4t5u's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0

    aa

    Quote Originally Posted by sbuj View Post
    Modern Warfare NoRecoil Script
    Logitech GHUB


    Features:
    Randomized variables
    Human Recoil compensation
    No recoil
    Universal DPI


    Instructions:

    1. Install GHUB, if it is not already installed (only for GHUB and Gkey enabled mice)

    2. Download the Lua file

    3. Click on the top and go on the profiles area

    4.Create or hover over a profile and click the little scripting button


    5. Go on edit script or OPTIONAL: Edit on emeditor or notepad++

    6. Import script via files


    7. go where the keybinds for the mouse/keyboard are


    8. Change the binds according to your Gkeys: example (local Kilo141_key = 5 > for G5 Key)
    Check under system if you are unsure if you have gkeys

    9. Set the profile as persistent

    10. IMPORTANT! EXPORT THE LUA OUT TO ANOTHER PART OF YOUR PC
    I.e windows D: or C: drive somewhere out of your desktop make sure u empty out the script that is in the script editor!

    11. Edit the script again and type this :
    data = dofile[[D:\Luaname.lua]] Change D: with whatever and luaname as the name you have it on, if it doesnt work on launch and u dont see ur mouse going down just put the actual location of the script


    12. FOR OPTIMAL PERFORMANCE SET SETTINGS TO:

    8.I
    Mouse sens: 8.00
    Vertical Sensitivity Multipliers : 1.00


    IF YOU WANT TO RUN WITHOUT ATTACHMENTS DO SCROLL LOCK OFF
    TO SCOPE, do NUM LOCK + SCROLL LOCK ON

     

    Attachments for each weapon
    Kilo
    Muzzle: Compensator
    Barrel: Singuad Arms 19.8" Prowler
    Underbarrel: Operator Foregrip
    Rear Grip: Rubberized Grip Tape
    M4A1:
    Muzzle: Compensator
    Barrel: stock m16 grenadier
    Underbarrel: operator foregrip
    Stock: m16 stock
    AK-47:
    Muzzle: Compensator
    Barrel: 23.0" RPK Barrel
    Underbarrel: Ranger Foregrip
    Stock: Field LMG Stock
    ODEN:
    Muzzle: Compensator
    Barrel: Oden Factory 810mm
    UnderBarrel: Operator Foregrip
    Stock: Forge TAC Ballast Pack
    M13:
    Muzzle: Compensator
    Barrel: Tempus Marksman
    Underbarrel: Operator Foregrip
    Stock: Forge TAC Stalker
    SCAR17:
    Muzzle: Compensator
    Barrel: Forge TAC 20.0" LB
    Underbarrel: Merc Foregrip
    Stock: XRK Obelisk Pro
    AUG:
    Muzzle: Compensator
    Barrel: 622mm Long Barrel
    Underbarrel: Operator Foregrip
    Rear Grip: Rubberized Grip Tape
    PKM:
    Muzzle: Compensator
    Barrel: 26.9" Extended Barrel
    Underbarrel: Snatch Grip
    Rear Grip: Granulated Grip Tape
    SA87:
    Muzzle Compensator
    Underbarrel: Ranger Foregrip
    Rear Grip: Granulated Grip Tape
    Stock: FSS SA87 Heavy Stock Pro
    M91:
    Muzzle: Compensator
    Barrel: M91 Heavy
    Underbarrel: Ranger Foregrip
    Stock: FORGE TAC Stalker
    MG34:
    Muzzle: Compensator
    Underbarrel: Ranger Foregrip
    Rear Grip: Granulated Grip Tape
    Stock: Forge TAC Stalker
    Holger-26:
    Muzzle: Compensator
    Underbarrel: Commando Foregrip
    Rear Grip: Granulated Grip Tape
    Stock: FSS RangerP90:
    Muzzle: Compensator
    Barrel: FORGE TAC Retribution
    Underbarrel: Stippled Grip Tape
    Stock: FSS Heavy Stock Pro
    MP5:
    Muzzle: Compensator
    Underbarrel: Tactical Foregrip
    Rear Grip: Granulated Grip Tape
    Stock: Classic Straight-line Stock
    BIZON:
    Muzzle: Compensator
    Barrel: 8.7 Steel
    Rear Grip: Granulated Grip Tape
    Laser: Tac Laser
    MP7:
    Muzzle: Compensator
    Barrel: FSS Recon
    Underbarrel: Ranger Foregrip
    Rear Grip: Granulated Grip Tape
    UZI:
    Muzzle: Compensator
    Barrel: 16.5" Factory Carbine
    Underbarrel: Ranger Foregrip
    Stock: Standard-issue Wood Stock
    Striker 45:
    Muzzle: Compensator
    Barrel: 400mm Stainless Steel
    Underbarrel: Commando Foregrip
    Stock: FTAC Precision Fixed Stock
    RAM-7:
    Muzzle: Compensator
    Barrel:: RK Ranger
    Underbarrel: Commando Foregrip
    Stock: FTAC EE uilibrium
    Grau 5.56
    Muzzle: Compensator
    Barrel: FSS 26.4" Archangel
    Underbarrel: Ranger Foregrip
    Rear Grip: Cronen Sniper Elite
    this isnt working , i got a G403 and nothing is happeing on game.i did all you say in ur post :/

  3. #18
    Threadstarter
    вою зауÑ
    Former Staff
    Resource Group
    Trusted
    Jov's Avatar
    Join Date
    Jan 2014
    Gender
    male
    Location
    WINNING
    Posts
    4,526
    Reputation
    4549
    Thanks
    17,404
    Quote Originally Posted by spam4goldeneagles View Post
    Hey Sbuj, I have poked around the internals of this and it is working really nicely so far. Editing the recoil_table for each weapon is fairly intuitive.

    Now the question is, how can I customize the horizontal recoil? I THINK the function MoveMouseRelative(0, recovery / 10) part is where it feeds in the mouse movements in X and Y planes. Now, the Y value reads off recovery / 10, but the X value (horizontal recoil) currently stays set at 0. Is it possible for you to add an input from another set of recoil tables to feed into the horizontal movement value, so that we can tinker with the horizontal recoil?

    Cant wait to tinker with this more.
    I will look into it, i will also release another very basic one that works universally on mw thanks for asking @k4t5u




    THE EYES OF THE DAVESTAPO ARE UPON YOU. ANY WRONG YOU DO WE ARE GONNA SEE, WHEN YOU'RE ON MPGH, LOOK BEHIND YOU, 'CAUSE THATS WHERE WE GONNA BE




  4. #19
    Fire099's Avatar
    Join Date
    Jul 2017
    Gender
    male
    Location
    Somewhere in hell
    Posts
    84
    Reputation
    10
    Thanks
    7
    My Mood
    Pensive
    Is it possible to activate a gun recoil script with a non-logitech keyboard? Like I have a logitech mouse but I only have three extra mouse keys and I want to be able to activate more in a game.

  5. The Following User Says Thank You to Fire099 For This Useful Post:

    DDDhockey (12-13-2020)

  6. #20
    jojojojo1976's Avatar
    Join Date
    Feb 2019
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    0
    I dl this script, i pu it in J:\lua\scriptwz.lua
    I load G HUB
    Modern warfar
    modify scipit
    activ
    inport
    i put this line at the 1st line
    data = dofile [[j:\lua\scriptwz.lua]]

    but after i dont want to know for start the script

    I modify the script Keyboard key bind
    local m4a1_gkey = 1

    Its good ?

  7. #21
    queseyo's Avatar
    Join Date
    Jun 2014
    Gender
    female
    Posts
    3
    Reputation
    10
    Thanks
    0
    I don't know if it's because of my resolution but the recoil compensation for me is really little or maybe it's because I play with low dpi+sens?
    Last edited by queseyo; 05-07-2020 at 11:05 PM.

  8. #22
    vini20073's Avatar
    Join Date
    Oct 2019
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0

    how can I change the x axis

    how can I change the x axis? please

  9. #23
    username-51501155's Avatar
    Join Date
    May 2020
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    This doesn't work and the instructions are pretty unclear.

    "drive somewhere out of your desktop make sure u empty out the script that is in the script editor!"

    What? Make sure you empty out what exactly...?

    11. Edit the script again and type this :
    ... Change D: with whatever and luaname as the name you have it on, if it doesnt work on launch and u dont see ur mouse going down just put the actual location of the script

    Again, what? This doesn't make sense. Put the actual location of the script..? I followed these instructions as they were and it just doesn't work, period. I use a newer Logitech keyboard with 5 programmable G keys.

  10. #24
    illerthansick's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Location
    SOUTHPOLE
    Posts
    70
    Reputation
    64
    Thanks
    11
    My Mood
    Amazed
    Hi,

    Can you do something with corsair keyboard + mouse ?

    Thanks
    " My thoughts are too pure for the human mind to author "

  11. The Following User Says Thank You to illerthansick For This Useful Post:

    DDDhockey (12-13-2020)

  12. #25
    Mosadas's Avatar
    Join Date
    Jun 2016
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    3
    My Mood
    Lurking

    Exclamation

    Quote Originally Posted by username-51501155 View Post
    This doesn't work and the instructions are pretty unclear.

    "drive somewhere out of your desktop make sure u empty out the script that is in the script editor!"

    What? Make sure you empty out what exactly...?

    11. Edit the script again and type this :
    ... Change D: with whatever and luaname as the name you have it on, if it doesnt work on launch and u dont see ur mouse going down just put the actual location of the script

    Again, what? This doesn't make sense. Put the actual location of the script..? I followed these instructions as they were and it just doesn't work, period. I use a newer Logitech keyboard with 5 programmable G keys.
    :
    no, it's actually quite clear, but it still doesn't work for me for some reason.

  13. #26
    Spped42's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    For the G502 does not work, I found in the topic this one and works very well according to the weapon

    Code:
    function OnEvent(event, arg)
            OutputLogMessage("event = %s, arg = %d\n", event, arg)
            if (event == "PROFILE_ACTIVATED") then
                EnablePrimaryMouseButtonEvents(true)
            elseif event == "PROFILE_DEACTIVATED" then
                ReleaseMouseButton(2)  -- to prevent it from being stuck on
            end
            if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
                recoilx4 = not recoilx4
                spot = not spot
            end
           if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoilx4) then
                if recoilx4 then
                    repeat
        				Sleep(17)
        				MoveMouseRelative(0, 2.5)
        				Sleep(17)
        				MoveMouseRelative(-3, 0)
        				Sleep(17)
        				MoveMouseRelative(2, 0)
        				Sleep(17)
        				MoveMouseRelative(0, 2)
        				Sleep(17)
        				MoveMouseRelative(0, 2.5)
        				Sleep(17)
        				MoveMouseRelative(-3, 0)
        				Sleep(17)
        				MoveMouseRelative(2, 0)
        				Sleep(17)
        				MoveMouseRelative(0, 2)
        				Sleep(17)
        				MoveMouseRelative(0, 2.5)
        				Sleep(17)
        				MoveMouseRelative(-3, 0)
        				Sleep(17)
        				MoveMouseRelative(2, 0)
        				Sleep(17)
        				MoveMouseRelative(0, 2)
                    until not IsMouseButtonPressed(1)
                end
            end
        end

  14. #27
    wiku03's Avatar
    Join Date
    Jun 2020
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    One question, why does it only work for me in the first 10-15 rounds approximately? then the recoil is still normal ... how do I modify this?

  15. #28
    fleshlightx's Avatar
    Join Date
    May 2016
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    2
    Got it to work but recoil needs tweaking as per OP.
    Working on G502 with GHub. Should work with any logitech keyboard or mouse in GHub
    Ill explain best I can.

    1. Extract lua to another location other than desktop (note the location) mines is in Drive F (F:\recoil.lua)

    2. Launch GHub > Click on Logitech mouse > Assignments > System
    2a. In the list, you'll see the Gkeys and corresponding mouse action (Primary click = G1)
    2b. If you don't see Gkeys, enable g-shift then disable, they should appear now

    3. Open lua with a text editor (notepad, etc)
    3a. Under "Mouse key binds" change "nil" to any of the Gkey from list above but dont include the G in lua text. On mines, I have MP7 set to 6 (6=G6)
    3b. 1=G1, 2=G2, 3=G3, etc
    3c. G502 has 11 Gkeys so you can only set up to 11 key binds for gun recoils. pick your fav guns. should look like this in lua text: local MP7_key = 6
    3d. Note the "local set_off_key" this is to turn off the script. Recommend assigning to Gkey. Mines is set to 9 (9=G9)
    3e. Save the lua script

    4. Launch GHub > click on profile at the top below "active profile" > click on the script icon at the bottom > Create new script > Edit script
    4a. Delete everything inside script box and type in the first line: data = dofile[[D:\Luaname.lua]]
    4b. Change the "D:\Luaname.lua" to the location of your lua script.
    4c. crtl+s to save

    Should work now. You can tell it's working if you press the Gkey assigned to a gun the caps lock light will turn on, on your keyboard. Also, on the desktop, if you press and hold primary key, mouse pointer should move down.

    If you assigned "local set_off_key" to a Gkey and press that key, the caps lock light will turn off.

  16. The Following 2 Users Say Thank You to fleshlightx For This Useful Post:

    alucard268 (07-23-2020),satanicmetal (09-09-2020)

  17. #29
    piero891's Avatar
    Join Date
    Jun 2020
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0

    i follow all the steps but it doesnt work for me...

    Quote Originally Posted by fleshlightx View Post
    Got it to work but recoil needs tweaking as per OP.
    Working on G502 with GHub. Should work with any logitech keyboard or mouse in GHub
    Ill explain best I can.

    1. Extract lua to another location other than desktop (note the location) mines is in Drive F (F:\recoil.lua)

    2. Launch GHub > Click on Logitech mouse > Assignments > System
    2a. In the list, you'll see the Gkeys and corresponding mouse action (Primary click = G1)
    2b. If you don't see Gkeys, enable g-shift then disable, they should appear now

    3. Open lua with a text editor (notepad, etc)
    3a. Under "Mouse key binds" change "nil" to any of the Gkey from list above but dont include the G in lua text. On mines, I have MP7 set to 6 (6=G6)
    3b. 1=G1, 2=G2, 3=G3, etc
    3c. G502 has 11 Gkeys so you can only set up to 11 key binds for gun recoils. pick your fav guns. should look like this in lua text: local MP7_key = 6
    3d. Note the "local set_off_key" this is to turn off the script. Recommend assigning to Gkey. Mines is set to 9 (9=G9)
    3e. Save the lua script

    4. Launch GHub > click on profile at the top below "active profile" > click on the script icon at the bottom > Create new script > Edit script
    4a. Delete everything inside script box and type in the first line: data = dofile[[D:\Luaname.lua]]
    4b. Change the "D:\Luaname.lua" to the location of your lua script.
    4c. crtl+s to save

    Should work now. You can tell it's working if you press the Gkey assigned to a gun the caps lock light will turn on, on your keyboard. Also, on the desktop, if you press and hold primary key, mouse pointer should move down.

    If you assigned "local set_off_key" to a Gkey and press that key, the caps lock light will turn off.
    i follow all the steps but it doesnt work for me...

    - - - Updated - - -

    Quote Originally Posted by fleshlightx View Post
    Got it to work but recoil needs tweaking as per OP.
    Working on G502 with GHub. Should work with any logitech keyboard or mouse in GHub
    Ill explain best I can.

    1. Extract lua to another location other than desktop (note the location) mines is in Drive F (F:\recoil.lua)

    2. Launch GHub > Click on Logitech mouse > Assignments > System
    2a. In the list, you'll see the Gkeys and corresponding mouse action (Primary click = G1)
    2b. If you don't see Gkeys, enable g-shift then disable, they should appear now

    3. Open lua with a text editor (notepad, etc)
    3a. Under "Mouse key binds" change "nil" to any of the Gkey from list above but dont include the G in lua text. On mines, I have MP7 set to 6 (6=G6)
    3b. 1=G1, 2=G2, 3=G3, etc
    3c. G502 has 11 Gkeys so you can only set up to 11 key binds for gun recoils. pick your fav guns. should look like this in lua text: local MP7_key = 6
    3d. Note the "local set_off_key" this is to turn off the script. Recommend assigning to Gkey. Mines is set to 9 (9=G9)
    3e. Save the lua script

    4. Launch GHub > click on profile at the top below "active profile" > click on the script icon at the bottom > Create new script > Edit script
    4a. Delete everything inside script box and type in the first line: data = dofile[[D:\Luaname.lua]]
    4b. Change the "D:\Luaname.lua" to the location of your lua script.
    4c. crtl+s to save

    Should work now. You can tell it's working if you press the Gkey assigned to a gun the caps lock light will turn on, on your keyboard. Also, on the desktop, if you press and hold primary key, mouse pointer should move down.

    If you assigned "local set_off_key" to a Gkey and press that key, the caps lock light will turn off.
    i follow all the steps but it doesnt work for me...

    - - - Updated - - -

    Quote Originally Posted by fleshlightx View Post
    Got it to work but recoil needs tweaking as per OP.
    Working on G502 with GHub. Should work with any logitech keyboard or mouse in GHub
    Ill explain best I can.

    1. Extract lua to another location other than desktop (note the location) mines is in Drive F (F:\recoil.lua)

    2. Launch GHub > Click on Logitech mouse > Assignments > System
    2a. In the list, you'll see the Gkeys and corresponding mouse action (Primary click = G1)
    2b. If you don't see Gkeys, enable g-shift then disable, they should appear now

    3. Open lua with a text editor (notepad, etc)
    3a. Under "Mouse key binds" change "nil" to any of the Gkey from list above but dont include the G in lua text. On mines, I have MP7 set to 6 (6=G6)
    3b. 1=G1, 2=G2, 3=G3, etc
    3c. G502 has 11 Gkeys so you can only set up to 11 key binds for gun recoils. pick your fav guns. should look like this in lua text: local MP7_key = 6
    3d. Note the "local set_off_key" this is to turn off the script. Recommend assigning to Gkey. Mines is set to 9 (9=G9)
    3e. Save the lua script

    4. Launch GHub > click on profile at the top below "active profile" > click on the script icon at the bottom > Create new script > Edit script
    4a. Delete everything inside script box and type in the first line: data = dofile[[D:\Luaname.lua]]
    4b. Change the "D:\Luaname.lua" to the location of your lua script.
    4c. crtl+s to save

    Should work now. You can tell it's working if you press the Gkey assigned to a gun the caps lock light will turn on, on your keyboard. Also, on the desktop, if you press and hold primary key, mouse pointer should move down.

    If you assigned "local set_off_key" to a Gkey and press that key, the caps lock light will turn off.
    i follow all the steps but it doesnt work for me...

    - - - Updated - - -

    Quote Originally Posted by fleshlightx View Post
    Got it to work but recoil needs tweaking as per OP.
    Working on G502 with GHub. Should work with any logitech keyboard or mouse in GHub
    Ill explain best I can.

    1. Extract lua to another location other than desktop (note the location) mines is in Drive F (F:\recoil.lua)

    2. Launch GHub > Click on Logitech mouse > Assignments > System
    2a. In the list, you'll see the Gkeys and corresponding mouse action (Primary click = G1)
    2b. If you don't see Gkeys, enable g-shift then disable, they should appear now

    3. Open lua with a text editor (notepad, etc)
    3a. Under "Mouse key binds" change "nil" to any of the Gkey from list above but dont include the G in lua text. On mines, I have MP7 set to 6 (6=G6)
    3b. 1=G1, 2=G2, 3=G3, etc
    3c. G502 has 11 Gkeys so you can only set up to 11 key binds for gun recoils. pick your fav guns. should look like this in lua text: local MP7_key = 6
    3d. Note the "local set_off_key" this is to turn off the script. Recommend assigning to Gkey. Mines is set to 9 (9=G9)
    3e. Save the lua script

    4. Launch GHub > click on profile at the top below "active profile" > click on the script icon at the bottom > Create new script > Edit script
    4a. Delete everything inside script box and type in the first line: data = dofile[[D:\Luaname.lua]]
    4b. Change the "D:\Luaname.lua" to the location of your lua script.
    4c. crtl+s to save

    Should work now. You can tell it's working if you press the Gkey assigned to a gun the caps lock light will turn on, on your keyboard. Also, on the desktop, if you press and hold primary key, mouse pointer should move down.

    If you assigned "local set_off_key" to a Gkey and press that key, the caps lock light will turn off.

    it works ! but not run while im in the game... i this it s detected

  18. #30
    slydevil24's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    0
    works outside the game for me but not in the game. I have dual monitors so i can click inside the game, nothing happens, alt+tab out and go onto the desktop on the other monitor and i can see it drag down my mouse. Any thoughts? followed all directions.

Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. Is their a liantian logitech recoil script with fkeys? [f1,f2,f3]
    By AirierObverse in forum PUBG Discussions & Help
    Replies: 1
    Last Post: 02-19-2018, 08:48 AM
  2. [Outdated] Real No-Recoil with configs for Logitech G Mouse
    By Kriptsz in forum PLAYERUNKNOWN'S BATTLEGROUNDS (PUBG) Hacks & Cheats
    Replies: 203
    Last Post: 02-06-2018, 08:03 PM
  3. [Help] Help me with Logitech gaming mouse script.
    By asscold1 in forum Coders Lounge
    Replies: 0
    Last Post: 05-27-2017, 07:56 PM
  4. UPLAY accounts with games for ALL PLATFORMS
    By Luverdark in forum Giveaways
    Replies: 3
    Last Post: 01-01-2017, 07:10 PM
  5. PS3 Gaming with Mouse and keyboard, MW3,BO2 ect
    By laytonanthony in forum Playstation General Discussion
    Replies: 1
    Last Post: 11-22-2012, 09:50 PM

Tags for this Thread