:drawTexturedCircle { This scm-function draws a circle. Params in: 0@ - Screen X (max - 1024, enable invertX parameter if you want to draw at the right side) 1@ - Screen Y (max - 1024) 2@ - Radius 3@ - Step 4@ - Texture adress (NULL - without texture) 5@ - Priority 6@, 7@, 8@, 9@ - color RGBA 10@ - InvertX 11@ - InvertY Params out: - Example: 0AB1: call_scm_function @drawTexturedCircle params 12 pos_x 187.0 pos_y 161.0 radius 100.0 step 6.0 texture 0@ priority 0 color_RGBA 255 255 255 255 invert_x false invert_y false } 0A8D: 12@ = read_memory 0xC17048 size 4 virtual_protect 0 0093: 12@ = integer 12@ to_float 30@ = 1 12@ /= 1024.0 0087: 13@ = 0@ 0087: 14@ = 1@ 006B: 13@ *= 12@ 006B: 14@ *= 12@ 0D41: set_vertices 1 vertex 1 xyz 13@ 14@ 0.0 rhw 3.33 RGBA 6@ 7@ 8@ 9@ uv 0.5 0.5 invert_x 10@ invert_y 11@ while 31@ < 360.0 02F7: 13@ = cosine 31@ 02F6: 14@ = sine 31@ 006B: 13@ *= 2@ 006B: 14@ *= 2@ 005B: 13@ += 0@ 005B: 14@ += 1@ 006B: 13@ *= 12@ 006B: 14@ *= 12@ 30@ += 1 // 360.0 -> 4.0 0087: 15@ = 31@ 15@ *= 0.0111111111111111 if 15@ < 1.0 then 16@ = 0.0 0087: 17@ = 15@ else if 15@ < 2.0 then 15@ -= 1.0 0087: 16@ = 15@ 17@ = 1.0 else if 15@ < 3.0 then 15@ -= 2.0 15@ *= -1.0 15@ += 1.0 16@ = 1.0 0087: 17@ = 15@ else 15@ -= 3.0 15@ *= -1.0 15@ += 1.0 0087: 16@ = 15@ 17@ = 0.0 end end end 0D41: set_vertices 1 vertex 30@ xyz 13@ 14@ 0.0 rhw 3.33 RGBA 6@ 7@ 8@ 9@ uv 16@ 17@ invert_x 10@ invert_y 11@ 005B: 31@ += 3@ end 02F7: 13@ = cosine 360.0 02F6: 14@ = sine 360.0 006B: 13@ *= 2@ 006B: 14@ *= 2@ 005B: 13@ += 0@ 005B: 14@ += 1@ 006B: 13@ *= 12@ 006B: 14@ *= 12@ 30@ += 1 0D41: set_vertices 1 vertex 30@ xyz 13@ 14@ 0.0 rhw 3.33 RGBA 6@ 7@ 8@ 9@ uv 0.0 0.0 invert_x 10@ invert_y 11@ 0D40: draw_2d_shape_type 5 texture 4@ numVerts 30@ pVerts 1 vertexAlpha 1 srcBlend 5 dstBlend 6 priority 5@ 0AB2: ret 0