An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.
C++
Top-down view: the arrow to a player behind the camera points their way, not the opposite one
Alan Saunders2208c1a56c22
diff --git a/isowind/mod/scripts/isowind/topdown.lua b/isowind/mod/scripts/isowind/topdown.luaindex 4625a9e..c69af94 100644--- a/isowind/mod/scripts/isowind/topdown.lua+++ b/isowind/mod/scripts/isowind/topdown.lua@@ -543,8 +543,8 @@ local function updateParty()endlocal x, y, depth = viewCoordinates(box.center)if (ally or not mmo) and #arrows < MARKS and (depth < 1 or math.abs(x) > 1 or math.abs(y) > 1) then- if depth < 0 then x, y = -x, -y end- -- On the edge, the way they are from the middle of the screen (the player)+ -- On the edge, the way they are from the middle of the screen (the player). Behind the camera too:+ -- viewCoordinates divides by the depth's size, so x and y keep the way they are from the camera.local scale = math.min(maxX / math.max(math.abs(x), 1e-4), maxY / math.max(math.abs(y), 1e-4))local direction = v2(x * screen.x, y * screen.y):normalize()arrows[#arrows + 1] = util.vector4((x * scale + 1) / 2, (y * scale + 1) / 2, direction.x,