Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function OKAY(tbl)
- local i = 0
- local data
- local spos = Vector()
- hook.Add("HUDPaint",1,function()
- data = tbl[i] or data
- if data then
- spos = spos + ((data - spos) * FrameTime() * 2)
- surface.SetDrawColor(255, 255, 255, 255)
- surface.DrawRect(spos.x * ScrW(), spos.y * ScrH(), 50, 50)
- end
- i = i + 1
- end)
- end
- http.Get("http://behindallgalaxies.free.fr/osu/17044%20NH22%20-%20Corrosion/NH22%20-%20Corrosion%20(Lena)%20%5BNormal%5D.osu","",function(str)
- local go = false
- local tbl = {}
- for _, line in pairs(str:Split("\n")) do
- if go then
- local x,y,pos = line:match("(%d-),(%d-),(%d-),")
- if not pos then
- return OKAY(tbl)
- end
- pos = math.Round(pos / 20)
- x = (x / 512)
- y = (y / 512)
- tbl[pos] = Vector(x,y)
- end
- if line:lower():find("hitobjects") then
- go = true
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment