Results 1 to 3 of 3

Threaded View

  1. #1
    lumpi999's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    58
    Reputation
    10
    Thanks
    15
    My Mood
    Amused

    Exclamation Logitech LUA recoil reduce Script! for every Game!

    Hello,
    q = Enemy Spotted
    left shift = Hold Breath
    Hold to sight = ON
    I use 900 and 450 dpi

    With this scritpt you can:
    - pressing Left Mousebutton: Hold Breath, Spotted Enemy, reduce DPI
    - pressing Right Mousebutton: lower recoil

    To activate press Mousewheel to the Leftside!
    If dont Work check this for help: https://forums.logitech.com/t5/Script...S/td-p/1453818

    I am only insert my x and y value.
    Source is from the Logitechforum :-)

    Code:
    local recoil = false
    sleep_duration = 50
    MaxBreak = 1000
    TimeStamp = -MaxBreak-1	-- it's negative 2 seconds
    recoil_coords = {
    	{ x = 0, y = 5 },
    	{ x = 0, y = 5 },
    	{ x = 0, y = 5 },
    	{ x = 0, y = 5 },
    	{ x = 0, y = 5 },
    	{ x = 0, y = 5 },
    	{ x = 0, y = 5 },
    	{ x = 0, y = 5 },
    	{ x = 0, y = 5 },
    	{ x = 0, y = 5 },
    	{ x = 0, y = 5 },
    	{ x = 0, y = 5 },
    	{ x = 0, y = 5 },
    	{ x = 0, y = 5 },	
    	{ x = 0, y = 5 },
    	{ x = 0, y = 5 },
    	{ x = 0, y = 5 },
    	{ x = 0, y = 5 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    	{ x = -1, y = 7 },
    
    
    }
    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 == 11) then -- Press mouse button 3 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
                         --OutputLogMessage("schiesen")
    		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
    			PressAndReleaseKey("q") 
    			i = i + 1
    		end
    	end
    
    
    	if event == "MOUSE_BUTTON_PRESSED" and arg == 2 and recoil  then
        		PlayMacro("DPI Down")
    		PressKey("lshift")
    		PressAndReleaseKey("q") 
      	elseif event == "MOUSE_BUTTON_RELEASED" and arg == 2 then
    		PlayMacro("DPI Up")
    		ReleaseKey("lshift")
    		PressAndReleaseKey("q") 
    	end
    end

  2. The Following 5 Users Say Thank You to lumpi999 For This Useful Post:

    DiggerDog (08-12-2019),FUCKYOUNOOB (04-13-2016),Hellboy0815 (10-12-2016),tmx (07-18-2016),wishdwd (08-27-2016)

Similar Threads

  1. [Release] External Crosshair v2.1 - Works for every game.
    By RyanH100 in forum WarZ & Infestation Survivor Stories Hacks & Cheats
    Replies: 11
    Last Post: 09-21-2013, 11:54 AM
  2. [Release] Rapid Fire for every Game [AHK]
    By |cS| StikxX in forum Call of Duty 8 - Modern Warfare 3 (MW3) Hacks & Cheats
    Replies: 28
    Last Post: 01-27-2013, 07:51 AM
  3. [Request] Need help to code a bot (script) for this game
    By zsniprx in forum General Game Hacking
    Replies: 1
    Last Post: 10-05-2012, 08:14 AM
  4. No recoil macro software for every FPS game you own! (PB, VAC, ESL Wire PROOF)
    By marko4452 in forum Selling Accounts/Keys/Items
    Replies: 9
    Last Post: 09-12-2012, 02:46 PM
  5. [VISUAL BASIC 2008] D3D pic for every game
    By GER-Domi. in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 5
    Last Post: 08-23-2010, 06:06 AM