rawset(_G, "OR_GetSplitscreenCoords", function(cam)
  local screen_width, screen_height = 320, 200
  local hori_center, vert_center = screen_width/2, screen_height/2
    
  if (splitscreen == 1)
    vert_center, screen_height = $/2, $/2
    if (cam.pnum == 2)
      vert_center = $ * 3
    end
  elseif (splitscreen >= 2)
    vert_center, screen_height = $/2, $/2
    hori_center, screen_width = $/2, $/2
    if (cam.pnum == 2)
      hori_center = $ * 3
    elseif (cam.pnum == 3)
      vert_center = $ * 3
    elseif (cam.pnum == 4)
      hori_center, vert_center = $ * 3, $ * 3
    end
  end
  return screen_width, screen_height, hori_center, vert_center
end)

local OR_GetSplitscreenCoords = OR_GetSplitscreenCoords

rawset(_G, "OR_GetOTricksIconCoords", function(cam)
  local screen_width, screen_height, hori_center, vert_center = OR_GetSplitscreenCoords(cam)
  
  local icon_x = hori_center - 55
  local icon_y = vert_center + (screen_height/2) - 27
    
  if (splitscreen == 1)
    icon_y = vert_center + (screen_height/2) - 22
  elseif (splitscreen >= 2)
    icon_y = vert_center + (screen_height/2) - 16
    if (hori_center < screen_width)
      icon_x = hori_center - (screen_width/2)
    else
      icon_x = hori_center + (screen_width/2) - 43 -- i am ignoring your fucked-up lap counts. if this bothers you, write a fix for me.
    end
  end
  return icon_x, icon_y
end)