--------------------------------------------------------
This is an update version of Silh's Ping Direction.
Original description below:
--------------------------------------------------------
Ping Direction was written around an idea that popped up during an Ossirian fight. The addon displays a red arrow on your screen pointing in the direction of the last ping received. Though it's not really that hard to figure out the direction to go by looking at the minimap, I thought it would be fun to do something like this.
As of 0.0.4, there is now a second arrow accessible via the /gps command, where you can feed it a set of xx,yy outside coordinates and it'll point an arrow towards them until you reach said coordinates, where it will then disappear. Note that if you use this inside instances, the arrow will be stuck pointing in one direction due to lack of coordinate information inside instances. Also if you change zones while the arrow is active, it will point to xx,yy of the current zone as there is no relative position tracking between zones.
As of 0.0.5, there is now an option to have the arrows properly adjusted for your camera angle, so you don't necessarily have to be directly behind the player. However, this will eat up your 5th preset camera slot, since the only method I have been able to find to retrieve camera angle is to save the camera position to one of the preset slots, and then GetCVar() the camera pitch and yaw. Use /pingdir camera to enable/disable this option--it is disabled by default because I don't want to overwrite someone's 5th camera slot arbitrarily.
Options available:
/pingdir on/off - enables/disables
/pingdir fps # - set updates per second. Default is 10
/pingdir fadetime # - set time in seconds for arrow to fade away. Default is 2s.
/pingdir ratio # - set Y ratio, to give a more squished perspective-type appearance. Default is 0.5
/pingdir scale # - scale arrow
/pingdir ##,## - Point the arrow in the direction of map coordinates ##,## (outside)
/pingdir text - toggle text display above arrow
/pingdir camera - toggle compensation for camera location
/gps ##,## - enable persistent arrow pointing to map coordinates (outside). Arrow will fade when you reach the coordinates.
/gps alpha # - set persistent arrow alpha
/gps off - turn off the persistent arrow
0.0.7 - Now working with rotating minimap
0.0.6 - Removed the 0.05,0.05 fudge factor on ping coordinates which was required pre-patch-2.1, pings should now be pointing in the right direction
0.0.5 - Added persistent arrow alpha option. Added compensation for camera angle, so you don't have to be behind the player for the right direction, woohoo!
0.0.4 - Added 2nd persistent arrow (using /gps command as quick to type), optional text display, and scaling.
0.0.3 - Add decimal point support for x,y coordinates
0.0.2 - Added ability to point the arrow towards specified x,y coordinates when outside instances
0.0.1 - Initial release
Change Log - Ping Direction (Fan's Update)
0.0.7 modified version 2 - Fixed minimap ping direction while Rotate Minimap option is off.
0.0.7 modified version 1 - Updated for patch 3.1
Originally posted by Bwldrd1 "More details please"
Basically it's treating your character as if you were always facing true north on the minimap. You click east the arrow points right, west to the left, etc. Even if you are facing the given direction, e.g. you face south and ping south the arrow points down, instead of up as it should, since you are facing south.
The old behavior would turn the arrow to be according to the characters facing, e.g. you face west and ping south, the arrow would show to your left, Facing east ping south it would show to your right, etc. As its working now it is S always point down to the bottom of the screen. N is always pointing up, etc. No matter which way your character is facing. Hope this makes it a little clearer Easier to see than explain.
When I was trying to fix behavior while Rotate Minimap is On, somehow I broke it for Rotate Minimap is Off.
Basically it's treating your character as if you were always facing true north on the minimap. You click east the arrow points right, west to the left, etc. Even if you are facing the given direction, e.g. you face south and ping south the arrow points down, instead of up as it should, since you are facing south.
The old behavior would turn the arrow to be according to the characters facing, e.g. you face west and ping south, the arrow would show to your left, Facing east ping south it would show to your right, etc. As its working now it is S always point down to the bottom of the screen. N is always pointing up, etc. No matter which way your character is facing. Hope this makes it a little clearer Easier to see than explain.
Originally posted by Johndu
EDIT: I found the ping direction is relate to minimap absolute dot, it is not correct location to player's facing way. will fix it ? [/b]