Target Prediction menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Wildbreath's Avatar Contributor
    Reputation
    162
    Join Date
    Feb 2012
    Posts
    121
    Thanks G/R
    2/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cheap and cheerful
    anyway it using for single time for me, cant spam it

    Target Prediction
  2. #17
    aeo's Avatar Contributor
    Reputation
    135
    Join Date
    Apr 2007
    Posts
    286
    Thanks G/R
    97/68
    Trade Feedback
    7 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I don't see the need to check the unit speed would that not be accounted for in the position difference itself?
    Edit2: I stand corrected, it clearly needs to take speed into account. More math lol

    I just got it working and realized it works great for everything but mouseover, something to do with the Timer.After clearing the mouseover unit so it cant get the second position.

    I'll do more testing tonight as Im at work and testing over RDP where moving is impossible. But it hit stationary targets as expected.

    Edit: Also this timer function will help in creating a better TimeUntilDeath function. Easily get a frames change in HP.
    Last edited by aeo; 01-28-2015 at 05:10 PM.

  3. #18
    aeo's Avatar Contributor
    Reputation
    135
    Join Date
    Apr 2007
    Posts
    286
    Thanks G/R
    97/68
    Trade Feedback
    7 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    After all this work I think I've developed something that works decently:
    I still have some testing to do but calculating a velocity vector based on the change in position in 1 frame seems to be giving decent results. The only real issue at this point is that the trap is an arcing projectile. I could probably find some gravitational equation to roughly guess the time of travel based on an arc.
    Code:
    function PredictTrapPosition2(unit)
        unit = unit or 'target'
    	local framerate = GetFramerate();
        local x1, y1, _,_,_ = GetUnitPosition(unit)
    	local startTime = GetTime()
        C_Timer.After(.1, function()
            if UnitExists(unit) then
    			local x2, y2,z,_,_ = GetUnitPosition(unit)
    			local px, py,_,_,_ = GetUnitPosition('player')
    
    
    			local endTime = GetTime()
    			local dx,dy,dz
    			dx = (x2-x1) / (endTime - startTime)
    			dy = (y2-y1) / (endTime - startTime)
    			dz = 0
    
    
    			local distance = math.sqrt((x2 - px)^2 + (y2 - py)^2)
    			local flightTime  = distance / 25 * cos((30 * 3.1459) /180) --Works nicely decreases as target gets closer. 
    
    
    			local x = x2 + dx * flightTime
    			local y = y2 + dy * flightTime
    
    
    			local newz = z;
    			while InLineOfSight(x,y,z,x,y,newz,4) == 0 do
    				newz = newz - 5;
    			end
    			AceRunMacroText("/script ClickPosition("..x..","..y..","..newz..")")
    		end
        end)
    
    
    end
    Last edited by aeo; 01-30-2015 at 01:28 PM.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. target -> hunter mark
    By windfire in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 03-18-2007, 12:13 PM
  2. Using tab targeting to your advantage
    By Enfeebleness in forum World of Warcraft Guides
    Replies: 4
    Last Post: 03-05-2007, 06:04 PM
  3. Increase your TAB Targetting Range
    By Toldorn in forum World of Warcraft Exploits
    Replies: 40
    Last Post: 01-16-2007, 09:48 PM
  4. Targeting --> Dragos
    By Orlox in forum World of Warcraft Exploits
    Replies: 11
    Last Post: 12-01-2006, 01:34 PM
All times are GMT -5. The time now is 03:11 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search