forked from yugecin/scmcleoscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
coronas.txt
118 lines (110 loc) · 3.89 KB
/
coronas.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
:MAIN_LOOP
wait 0
// works
25@ = 1932.9313
04D5: create_corona_at 25@ -2486.9329 13.5391 radius 1.0 type 9 flare 0 RGB 255 0 0
25@ -= 2.0
04D5: create_corona_at 25@ -2486.9329 13.5391 radius 1.0 type 9 flare 0 RGB 255 0 0
25@ -= 2.0
04D5: create_corona_at 25@ -2486.9329 13.5391 radius 1.0 type 9 flare 0 RGB 255 0 0
25@ -= 2.0
04D5: create_corona_at 25@ -2486.9329 13.5391 radius 1.0 type 9 flare 0 RGB 255 0 0
25@ -= 2.0
04D5: create_corona_at 25@ -2486.9329 13.5391 radius 1.0 type 9 flare 0 RGB 255 0 0
25@ -= 2.0
04D5: create_corona_at 25@ -2486.9329 13.5391 radius 1.0 type 9 flare 0 RGB 255 0 0
25@ -= 2.0
04D5: create_corona_at 25@ -2486.9329 13.5391 radius 1.0 type 9 flare 0 RGB 255 0 0
25@ -= 2.0
04D5: create_corona_at 25@ -2486.9329 13.5391 radius 1.0 type 9 flare 0 RGB 255 0 0
25@ -= 2.0
04D5: create_corona_at 25@ -2486.9329 13.5391 radius 1.0 type 9 flare 0 RGB 255 0 0
25@ -= 2.0
04D5: create_corona_at 25@ -2486.9329 13.5391 radius 1.0 type 9 flare 0 RGB 255 0 0
25@ -= 2.0
04D5: create_corona_at 25@ -2486.9329 13.5391 radius 1.0 type 9 flare 0 RGB 255 0 0
25@ -= 2.0
04D5: create_corona_at 25@ -2486.9329 13.5391 radius 1.0 type 9 flare 0 RGB 255 0 0
// does not work, only the last one appears
25@ = 1932.9313
FOR $MyCounter = 1 to 12 step 1
04D5: create_corona_at 25@ -2496.9329 13.5391 radius 1.0 type 9 flare 0 RGB 255 0 0
25@ -= 2.0
// method by DK22Pac, works
// see http://gtaforums.com/topic/885204-creating-corona-in-a-loop/
0@ = 1932.9313 // x
1@ = -2499.9329 // y
2@ = 13.5391 // z
0A9F: get_this_script_struct 3@
for 4@ = 1 to 12
0AA5: 0x6FC580 21 21 draw_corona_reflection_delay 1 only_from_below 0 fade_speed 50.0 0 near_clip 0.5 long_distance 0 0 0 check_obstacles 0 enable_reflection 0 flare 0 type 9 far_clip 150.0 radius 1.0 position 0@v alpha 255 blue 0 green 0 red 255 entity 0 identifier 3@
0@ -= 2.0
3@ += 1
end
// hack, works
0@ = 0
25@ = 1932.9313
FOR $MyCounter = 1 to 12 step 1
26@ = -2499.9329
27@ = 13.5391
28@ = 1.0
29@ = 9
30@ = 0
31@ = 255
32@ = 0
33@ = 0
gosub @MAGIC
25@ -= 2.0
end
0002: jump @MAIN_LOOP
:MAGIC
0@ += 2
0AC6: 2@ = label @MAGICSTART offset
005A: 2@ += 0@ // (int)
0A8C: write_memory 2@ size 1 value 0x00 vp 0
2@ += 1
0A8C: write_memory 2@ size 4 value 0x0604D500 vp 0
2@ += 4
0A8C: write_memory 2@ size 4 value 25@ vp 0
2@ += 4
0A8C: write_memory 2@ size 1 value 0x06 vp 0
2@ += 1
0A8C: write_memory 2@ size 4 value 26@ vp 0
2@ += 4
0A8C: write_memory 2@ size 1 value 0x06 vp 0
2@ += 1
0A8C: write_memory 2@ size 4 value 27@ vp 0
2@ += 4
0A8C: write_memory 2@ size 1 value 0x06 vp 0
2@ += 1
0A8C: write_memory 2@ size 4 value 28@ vp 0
2@ += 4
0A8C: write_memory 2@ size 1 value 0x04 vp 0
2@ += 1
0A8C: write_memory 2@ size 1 value 29@ vp 0
2@ += 1
0A8C: write_memory 2@ size 1 value 0x04 vp 0
2@ += 1
0A8C: write_memory 2@ size 1 value 30@ vp 0
2@ += 1
0A8C: write_memory 2@ size 1 value 0x05 vp 0
2@ += 1
0A8C: write_memory 2@ size 2 value 31@ vp 0
2@ += 2
0A8C: write_memory 2@ size 1 value 0x04 vp 0
2@ += 1
0A8C: write_memory 2@ size 1 value 32@ vp 0
2@ += 1
0A8C: write_memory 2@ size 1 value 0x04 vp 0
2@ += 1
0A8C: write_memory 2@ size 1 value 33@ vp 0
2@ += 1
0A8C: write_memory 2@ size 4 value 0x00510000 vp 0
// D5 04 06 33 33 D7 41 06 ED 6E 1B C5 06 27 A0 58 41 06 00 00 80 3F 04 09 04 00 05 FF 00 04 00 04 00
// D5 04 06 ----- x --- 06 ----- y --- 06 ----- z --- 06 --- rad --- 04 -t 04 -f 05 - r - 04 -g 04 -b
:MAGICSTART
hex
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
end