It's, mathematically, quite simple. ACS should be able to provide the x-, y- and z- coordinates of both the player (P) and target (T) on the map. In two dimensions Pythagoras gives the distance between them (P-T) as the square root of ((Px-Tx) squared plus (Py-Ty) squared).Enjay wrote:Am I right in saying that it should be popssible to emulate the MoHAA direction/distance thingy in Zdoom? I think ACS can already get the player distance and direction to a certain item and the direction being faced so it would be a case of translating that information to some hudmessage positioning and putting the graphics on screen. How to do it is well beyond my scripting ability, but it does at least strike me that it should be possible.
Extending this into three dimensions will give you the true distance between the two locations.

