Download
(2Kb)
Download
Updated: 05-01-10 12:37 AM
Pictures
File Info
Updated:05-01-10 12:37 AM
Created:04-25-10 04:18 AM
Downloads:3,310
Favorites:25
MD5:

VirtualPing (AVR)

Version: 1.0.2
by: Zenh [More]

VirtualPing is a simple, configuration-free add-on that places Minimap pings on the actual 3D plane, using AVR (by Olog). AVR fascinates me, and this was a simple experiment after messing with AVR for a bit. There are much greater things to come from AVR though.

Just to be clear: this mod requires AVR. (latest versions from WoWAce.com)

VirtualPing not only shows a graphic on the ground of where you/someone else pinged, but draws a line from you to the pinged location. VirtualPing's only quirk is the Z coordinate is always the player's Z coordinate (not a limitation of AVR but rather the Minimap gives no Z coordinate). In other words, if a Minimap ping is clearly above or below the Z coordinate of your character (e.g. pinging some mountains), the 3D ping will still show at the player's Z coordinate.

As of v1.0.2, VirtualPing also allows you to ping your cursor location (credits to Olog). Simply create a macro with the following and bind it to a key:

Code:
/vping

Alternatively, you can use the function VirtualPing:PingCursor().

If you like this mod you may also like AVRE (by Allara), an AVR mod for raiding.

(some credits to TomTomPing, used its Minimap coordinates scaling code)

v1.0.2
  • VirtualPing can now ping your cursor location! Use /vping or VirtualPing:PingCursor() (again, thanks to Olog!)

v1.0.1
  • Now supports rotated Minimaps. (thanks to Olog!)
Optional Files (0)


Post A Reply Comment Options
Unread 05-21-10, 09:17 AM  
Zenh
A Murloc Raider
 
Zenh's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 31
Uploads: 4
Sad panda.
Report comment to moderator  
Reply With Quote
Unread 05-20-10, 02:04 PM  
Haleth
This Space For Rent
 
Haleth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1173
File comments: 1146
Uploads: 17
Report comment to moderator  
Reply With Quote
Unread 04-30-10, 08:24 PM  
Zenh
A Murloc Raider
 
Zenh's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 31
Uploads: 4
Very cool olog, the idea never crossed my mind. I'll add this in soon.
Report comment to moderator  
Reply With Quote
Unread 04-30-10, 09:09 AM  
Olog
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 16
Uploads: 1
Here's another small patch if you'd like to add it. Calling this function will send a minimap ping on current mouse coordinates in 3d world. On the very first line I also made VirtualPing global so you can then make a macro "/script VirtualPing:PingMouse()" and bind it to some key.

Code:
function VirtualPing:PingMouse()
    if not AVR.threed then return end
    local cx,cy = GetCursorPosition()
    AVR.threed:InvertCameraMatrix()
    local ex,ey,ez = AVR.threed:InverseProject(cx,cy)
    if ex==nil then return end
	
    local zoom = Minimap:GetZoom()
    local area = InsideOrOut()
    local scale = MinimapSize[area][zoom]
	
    local px, py = AVR.threed:GetUnitPosition('player')
    local x,y = (ex-px)/scale*Minimap:GetWidth(), (ey-py)/scale*Minimap:GetHeight()
    if GetCVar("rotateMinimap")=="1" then
        local a = -GetPlayerFacing()
        local sa = math.sin(a)
        local ca = math.cos(a)
        x, y = ca*x-sa*y, sa*x+ca*y
    end	
    Minimap:PingLocation(x,y)
end
Report comment to moderator  
Reply With Quote
Unread 04-27-10, 02:09 PM  
Zenh
A Murloc Raider
 
Zenh's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 31
Uploads: 4
Originally posted by Ault
If I have AVR and VirtualPing, will I be able to see pings by people who haven't, or does the pinger need to have them too?
VirtualPing just listens for incoming pings, from anyone regardless of add-ons, and draws them on the 3D map. Pinging is a default Minimap feature, no add-ons required.
Report comment to moderator  
Reply With Quote
Unread 04-27-10, 11:30 AM  
Ault
A Kobold Labourer

Forum posts: 1
File comments: 37
Uploads: 0
If I have AVR and VirtualPing, will I be able to see pings by people who haven't, or does the pinger need to have them too?
Report comment to moderator  
Reply With Quote
Unread 04-26-10, 05:07 PM  
Zenh
A Murloc Raider
 
Zenh's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 31
Uploads: 4
Originally posted by Olog
For rotating minimap, add this after setting initial values for x and y.

Good to go, thanks Olog! =)
Report comment to moderator  
Reply With Quote
Unread 04-26-10, 09:36 AM  
Olog
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 16
Uploads: 1
For rotating minimap, add this after setting initial values for x and y.

Code:
	if GetCVar("rotateMinimap")=="1" then
		local a=GetPlayerFacing()
		local sa=math.sin(a)
		local ca=math.cos(a)
		x,y=ca*x-sa*y,sa*x+ca*y
	end
Report comment to moderator  
Reply With Quote
Unread 04-25-10, 06:03 PM  
Aisenfaire
A Murloc Raider

Forum posts: 6
File comments: 394
Uploads: 0
This is an amazing idea. Thanks!
Report comment to moderator  
Reply With Quote
Unread 04-25-10, 05:50 PM  
Zenh
A Murloc Raider
 
Zenh's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 31
Uploads: 4
I forgot that you could rotate the Minimap, making this mod a bit inaccurate for players with a rotated Minimap. Unfortunately I'm not exactly sure how to translate the coordinates correctly for a rotated Minimap, if even possible.

If a more versed developer comes up with code please post it here and I'll patch it quickly. (or upload it in the "Optional Files" tab and I'll patch it from that). Thanks. =)
Report comment to moderator  
Reply With Quote
Unread 04-25-10, 02:40 PM  
oddtoddy
A Murloc Raider

Forum posts: 6
File comments: 150
Uploads: 0
WOW. This takes waypoints to a completely new level!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: