No recoil COD WARZONE Logitech LUA

Posts 19 of 9 · Page 1 of 1
No recoil COD WARZONE Logitech LUA
Hello, I share this script for the weapons of COD Warzone, it is not 100% for some but for others it is, now if someone helped to improve the script it would be great for the community


To activate the macro is with button 4 of the logitech mouse tested in G502

Code:
local recoil = false local aim = false
 sleep_duration = 50
 MaxBreak = 1000
 TimeStamp = -MaxBreak-1    -- it's negative 2 seconds
 recoil_coords = {
     { x = -2, y = 5 },        
     { x = -2, y = 5 },        
     { x = -3, y = 5 },        
     { x = -3, y = 5 },        
     { x = -3, y = 5 },
     { x = -3, y = 5 },        
     { x = -3, y = 5 },        
     { x = -3, y = 5 },        
     { x = -3, y = 5 },        
     { x = -3, y = 5 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -4, y = 8 },        
     { x = -5, y = 9 },        
     { x = -5, y = 9 },    
     { x = -5, y = 9 },        
     { x = -5, y = 9 },    
     { x = -5, y = 9 },        
     { x = -5, y = 9 },        
     { x = -5, y = 9 },        
     { x = -5, y = 9 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },            
     { x = -7, y = 10 },        
     { x = -7, y = 10 },            
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },            
     { x = -7, y = 10 },        
     { x = -7, y = 10 },            
     { x = -7, y = 10 },        
     { x = -7, y = 10 },            
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -7, y = 10 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
     { x = -5, y = 8 },        
 }
 recoil_count = # recoil_coords
 LastIndex = 1
 function OnEvent(event, arg)    
     if event == "PROFILE_ACTIVATED" then
         EnablePrimaryMouseButtonEvents(true)
     end
 
 
     
     if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then -- Press mouse button 4 to toggle recoil
         recoil = not recoil 
         if (recoil == false) then
             OutputLogMessage("RecoilScript turned OFF\n")
         else 
             OutputLogMessage("RecoilScript turned ON\n")
         end
 end
     
 
 
     if (event == "MOUSE_BUTTON_PRESSED" and arg == 1) and recoil  then
                      
         if (GetRunningTime() - TimeStamp < MaxBreak) and (LastIndex <= recoil_count) then
             i = LastIndex
         else
             i = 1
         end
         while i <= recoil_count do
             Sleep(sleep_duration)
             if not IsMouseButtonPressed(1) then
                 LastIndex = i
                 TimeStamp = GetRunningTime()
                 break
             end
             MoveMouseRelative( recoil_coords[i].x, recoil_coords[i].y )
             if not IsMouseButtonPressed(1) then break end
             i = i + 1
         end
     end
 
 
         
 
 
     if event == "MOUSE_BUTTON_PRESSED" and arg == 2 and recoil then
           
         PressKey("Spacebar")
         PressAndReleaseKey("J") 
         PlayMacro("DPI Down")
         
       else
     
     if event == "MOUSE_BUTTON_RELEASED" and arg == 2 then
          
         ReleaseKey("Spacebar")
         PressAndReleaseKey("J") 
         PlayMacro("DPI Up")
     end
 end
 end
where to save it?
where to save it?
Quote Originally Posted by Unknown1123 View Post
where to save it?
create a new script in logitec mouse
works pretty good, ty
Hi, can someone explain to me how it works? Then insert the script but pressing button 4 does not change anything. What weapons does it work with? any kind of sens is fine?
thank you, this work
Software?
Which can i use logitech version?
Quote Originally Posted by dragonhunt13 View Post
Which can i use logitech version?
mouse g502 and the latest version of logitech
Posts 19 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?