Advertisement
nebula169

Spoils math

Oct 14th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. local checkPlayerSide
  2. do
  3.     local ax, ay = 0.50113236904144, 0.23455506563187
  4.     local bx, by = 0.55053389072418, 0.34473431110382
  5.     function checkPlayerSide()
  6.         BigWigsLoader.SetMapToCurrentZone()
  7.         local cx, cy = GetPlayerMapPosition("player")
  8.         if cy == 0 then return 0 end
  9.         return (bx - ax) * (cy - ay) - (by - ay) * (cx - ax) -- mantid > 0 > mogu
  10.     end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement