Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :drawLine // drawLineOnRadar R_ - radar constant values
- // Verts 0@
- // LineStart 1@
- // LineEnd 2@
- // Color.Red 3@
- // Color.Green 4@
- // Color.Blue 5@
- // 0AB1: @drawLine 6 verts 1@ linestart 20@ lineEnd 29@ RGB 74 148 159
- 9@ = 0
- 21@ = 0
- 22@ = 0
- 30@ = 1
- 0A8D: 10@ 0xC17044 4 0
- 0A8D: 11@ 0xC17048 4 0
- 0093: 10@ = integer 10@ to_float
- 0093: 11@ = integer 11@ to_float
- 0087: 17@ = 1@ // start
- 0087: 31@ = 1@ // start
- 0087: 29@ = 2@ // end
- while true
- if and
- 31@ > 29@
- 17@ > 29@
- 21@ == 1
- 22@ == 1
- then
- break
- else
- if
- 9@ > 0
- then
- //0656: get_angle 31@ absolute_degrees_to 21@
- if
- 17@ > 29@
- then
- 17@ = 29@
- 02F7: 13@ = cosine 17@
- 02F6: 14@ = sine 17@
- 13@ *= 95.0 // radius
- 14@ *= 95.0 // radius
- 13@ += R_X // x
- 14@ += R_Y // y
- 13@ /= 1024.0
- 13@ *= 11@
- 14@ /= 1024.0
- 14@ *= 11@
- 0D41: set_vertices 0@ vertex 30@ xyz 13@ 14@ 0.0 rhw 3.33 RGBA 3@ 4@ 5@ 255 uv 0.0 0.0 false
- 17@ += 6.0 // distance between vertices
- inc(30@)
- 9@ = 0
- 17@ = 500.0
- 21@ = 1
- else
- 02F7: 13@ = cosine 17@
- 02F6: 14@ = sine 17@
- 13@ *= 95.0 // radius
- 14@ *= 95.0 // radius
- 13@ += R_X // x
- 14@ += R_Y // y
- 13@ /= 1024.0
- 13@ *= 11@
- 14@ /= 1024.0
- 14@ *= 11@
- 0D41: set_vertices 0@ vertex 30@ xyz 13@ 14@ 0.0 rhw 3.33 RGBA 3@ 4@ 5@ 255 uv 0.0 0.0 false
- 17@ += 6.0 // distance between vertices
- inc(30@)
- 9@ = 0
- 22@ = 1
- end
- else
- //0656: get_angle 31@ absolute_degrees_to 21@
- if
- 31@ > 29@
- then
- 31@ = 29@
- 02F7: 13@ = cosine 31@
- 02F6: 14@ = sine 31@
- 13@ *= 85.0 // radius
- 14@ *= 85.0 // radius
- 13@ += R_X // x
- 14@ += R_Y // y
- 13@ /= 1024.0
- 13@ *= 11@
- 14@ /= 1024.0
- 14@ *= 11@
- 0D41: set_vertices 0@ vertex 30@ xyz 13@ 14@ 0.0 rhw 3.33 RGBA 3@ 4@ 5@ 255 uv 0.0 0.0 false
- 31@ += 6.0 // distance between vertices
- inc(30@)
- inc(9@)
- 31@ = 500.0
- else
- 02F7: 13@ = cosine 31@
- 02F6: 14@ = sine 31@
- 13@ *= 85.0 // radius
- 14@ *= 85.0 // radius
- 13@ += R_X // x
- 14@ += R_Y // y
- 13@ /= 1024.0
- 13@ *= 11@
- 14@ /= 1024.0
- 14@ *= 11@
- 0D41: set_vertices 0@ vertex 30@ xyz 13@ 14@ 0.0 rhw 3.33 RGBA 3@ 4@ 5@ 255 uv 0.0 0.0 false
- 31@ += 6.0 // distance between vertices
- inc(30@)
- inc(9@)
- end
- end
- end
- end
- dec(30@)
- 0D40: draw_2d_shape_type 4 texture 0 numVerts 30@ pVerts 0@ vertexAlpha 0 srcBlend 5 dstBlend 6 priority 1
- 0AB2: ret 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement