Skip to content

Commit d09a467

Browse files
committed
not amazing screenshot added
1 parent 39dbe87 commit d09a467

File tree

2 files changed

+504
-0
lines changed

2 files changed

+504
-0
lines changed

gta3/III.NotAmazingScreenshot.txt

Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
{$CLEO}
2+
0000:
3+
float 0@
4+
float 1@
5+
float 2@
6+
float 3@
7+
float 4@
8+
float 5@
9+
float 6@
10+
float 7@
11+
12+
const
13+
VK_ALT = 0x12
14+
VK_V = 0x56
15+
VK_PRIOR = 0x21
16+
VK_NEXT = 0x22
17+
18+
prev_weap = 5
19+
next_weap = 7
20+
forward = 8
21+
backward = 9
22+
strafe_left = 10
23+
strafe_right = 11
24+
end
25+
26+
while true
27+
wait 0
28+
if 0AB1: @KeyComboPressed 2 VK_ALT VK_V
29+
then
30+
31+
if 0AB1: @isVC 0
32+
then
33+
0A8C: write_memory 0xA10B48 size 1 value 1 virtual_protect 1
34+
0A8C: write_memory 0x46DA31 size 3 value 0x90 virtual_protect 1
35+
0A8C: write_memory 0x46DA38 size 3 value 0x90 virtual_protect 1
36+
0A8C: write_memory 0x46DA3F size 3 value 0x90 virtual_protect 1
37+
0A8D: 13@ = read_memory 0x551040 size 1 virtual_protect 1
38+
0A8D: 14@ = read_memory 0x4A6190 size 1 virtual_protect 1
39+
0A8D: 15@ = read_memory 0x557320 size 1 virtual_protect 1
40+
0A8C: write_memory 0x551040 size 1 value 0xC3 virtual_protect 1
41+
0A8C: write_memory 0x4A6190 size 1 value 0xC3 virtual_protect 1
42+
0A8C: write_memory 0x557320 size 1 value 0xC3 virtual_protect 1
43+
else
44+
0A8C: write_memory 0x95CD8B size 1 value 1 virtual_protect 1
45+
0A8C: write_memory 0x46E775 size 3 value 0x90 virtual_protect 1
46+
0A8C: write_memory 0x46E77C size 3 value 0x90 virtual_protect 1
47+
0A8C: write_memory 0x46E783 size 3 value 0x90 virtual_protect 1
48+
0A8D: 13@ = read_memory 0x500F50 size 1 virtual_protect 1
49+
0A8D: 14@ = read_memory 0x48E0E0 size 1 virtual_protect 1
50+
0A8D: 15@ = read_memory 0x5052A0 size 1 virtual_protect 1
51+
0A8C: write_memory 0x500F50 size 1 value 0xC3 virtual_protect 1
52+
0A8C: write_memory 0x48E0E0 size 1 value 0xC3 virtual_protect 1
53+
0A8C: write_memory 0x5052A0 size 1 value 0xC3 virtual_protect 1
54+
end
55+
56+
while true
57+
wait 0
58+
59+
0@ = 2.0
60+
if
61+
00E1: player 0 pressed_button 14 //jump
62+
then
63+
0@ = 0.5
64+
end
65+
66+
if
67+
00E1: player 0 pressed_button 16 //sprint
68+
then
69+
0@ = 4.0
70+
end
71+
72+
if 0AB1: @isVC 0
73+
then
74+
0A8D: 1@ = read_memory 0x7E46B8 size 4 virtual_protect 1 //camera position X
75+
0A8D: 2@ = read_memory 0x7E46BC size 4 virtual_protect 1 //camera position Y
76+
0A8D: 3@ = read_memory 0x7E46C0 size 4 virtual_protect 1 //camera position Z
77+
else
78+
0A8D: 1@ = read_memory 0x6FAD2C size 4 virtual_protect 1 //camera position X
79+
0A8D: 2@ = read_memory 0x6FAD30 size 4 virtual_protect 1 //camera position Y
80+
0A8D: 3@ = read_memory 0x6FAD34 size 4 virtual_protect 1 //camera position Z
81+
end
82+
83+
0172: 4@ = actor $PLAYER_ACTOR z_angle
84+
02F6: 5@ = sine 4@
85+
02F7: 6@ = cosine 4@
86+
if 0AB1: @isVC 0
87+
then
88+
0A8D: 16@ = read_memory 0x7E48BC size 4 virtual_protect FALSE
89+
else
90+
0A8D: 16@ = read_memory 0x6FAF44 size 4 virtual_protect FALSE
91+
end
92+
16@ *= 57.295779513082320876798154814105 // 180.0 / PI
93+
02F6: 7@ = sine 16@
94+
95+
if
96+
0AB0: key_pressed VK_PRIOR
97+
then
98+
3@ += 0@
99+
end
100+
101+
if
102+
0AB0: key_pressed VK_NEXT
103+
then
104+
3@ -= 0@
105+
end
106+
107+
if
108+
00E1: player 0 pressed_button forward
109+
then
110+
5@ *= 0@
111+
5@ *= -1.0
112+
6@ *= 0@
113+
7@ *= 0@
114+
000B: 1@ += 5@
115+
000B: 2@ += 6@
116+
000B: 3@ += 7@
117+
end
118+
119+
if
120+
00E1: player 0 pressed_button backward
121+
then
122+
5@ *= 0@
123+
6@ *= 0@
124+
6@ *= -1.0
125+
7@ *= 0@
126+
7@ *= -1.0
127+
000B: 1@ += 5@
128+
000B: 2@ += 6@
129+
000B: 3@ += 7@
130+
end
131+
132+
if
133+
00E1: player 0 pressed_button strafe_left
134+
then
135+
4@ -= 90.0
136+
02F6: 5@ = sine 4@
137+
02F7: 6@ = cosine 4@
138+
5@ *= 0@
139+
6@ *= 0@
140+
6@ *= -1.0
141+
000B: 1@ += 5@
142+
000B: 2@ += 6@
143+
end
144+
145+
if
146+
00E1: player 0 pressed_button strafe_right
147+
then
148+
4@ -= 90.0
149+
02F6: 5@ = sine 4@
150+
02F7: 6@ = cosine 4@
151+
5@ *= 0@
152+
5@ *= -1.0
153+
6@ *= 0@
154+
000B: 1@ += 5@
155+
05DF: write_memory 0x7E46B8 size 4 value 1@ virtual_protect 1
156+
000B: 2@ += 6@
157+
05DF: write_memory 0x7E46BC size 4 value 2@ virtual_protect 1
158+
end
159+
160+
if
161+
00E1: player 0 pressed_button prev_weap
162+
then
163+
00BF: 8@ = current_time_hours, 9@ = current_time_minutes
164+
8@ += 1
165+
if 8@ > 23
166+
then 8@ = 0
167+
end
168+
00C0: set_current_time 8@ 9@
169+
end
170+
171+
if
172+
00E1: player 0 pressed_button next_weap
173+
then
174+
00BF: 8@ = current_time_hours, 9@ = current_time_minutes
175+
8@ -= 1
176+
if 8@ < 0
177+
then 8@ = 23
178+
end
179+
00C0: set_current_time 8@ 9@
180+
end
181+
182+
if 0AB1: @isVC 0
183+
then
184+
0A8C: write_memory 0x7E46B8 size 4 value 1@ virtual_protect 1 //camera position X
185+
0A8C: write_memory 0x7E46BC size 4 value 2@ virtual_protect 1 //camera position Y
186+
0A8C: write_memory 0x7E46C0 size 4 value 3@ virtual_protect 1 //camera position Z
187+
else
188+
0A8C: write_memory 0x6FAD2C size 4 value 1@ virtual_protect 1
189+
0A8C: write_memory 0x6FAD30 size 4 value 2@ virtual_protect 1
190+
0A8C: write_memory 0x6FAD34 size 4 value 3@ virtual_protect 1
191+
end
192+
193+
if 0AB1: @KeyComboPressed 2 VK_ALT VK_V
194+
then
195+
if 0AB1: @isVC 0
196+
then
197+
0A8C: write_memory 0x46DA31 size 2 value 0x5BD9 virtual_protect 1
198+
0A8C: write_memory 0x46DA33 size 1 value 0x30 virtual_protect 1
199+
0A8C: write_memory 0x46DA38 size 2 value 0x5BD9 virtual_protect 1
200+
0A8C: write_memory 0x46DA3A size 1 value 0x34 virtual_protect 1
201+
0A8C: write_memory 0x46DA3F size 2 value 0x5BD9 virtual_protect 1
202+
0A8C: write_memory 0x46DA41 size 1 value 0x38 virtual_protect 1
203+
0A8C: write_memory 0x551040 size 1 value 13@ virtual_protect 1
204+
0A8C: write_memory 0x4A6190 size 1 value 14@ virtual_protect 1
205+
0A8C: write_memory 0x557320 size 1 value 15@ virtual_protect 1
206+
0A8C: write_memory 0xA10B48 size 1 value 0 virtual_protect 1
207+
else
208+
0A8C: write_memory 0x46E775 size 2 value 0x5BD9 virtual_protect 1
209+
0A8C: write_memory 0x46E777 size 1 value 0x34 virtual_protect 1
210+
0A8C: write_memory 0x46E77C size 2 value 0x5BD9 virtual_protect 1
211+
0A8C: write_memory 0x46E77E size 1 value 0x38 virtual_protect 1
212+
0A8C: write_memory 0x46E783 size 2 value 0x5BD9 virtual_protect 1
213+
0A8C: write_memory 0x46E785 size 1 value 0x3C virtual_protect 1
214+
0A8C: write_memory 0x500F50 size 1 value 13@ virtual_protect 1
215+
0A8C: write_memory 0x48E0E0 size 1 value 14@ virtual_protect 1
216+
0A8C: write_memory 0x5052A0 size 1 value 15@ virtual_protect 1
217+
05DF: write_memory 0x95CD8B size 1 value 0 virtual_protect 1
218+
end
219+
break
220+
end
221+
end
222+
end
223+
end
224+
225+
:KeyComboPressed
226+
if and
227+
0AB0: key_pressed 0@
228+
0AB0: key_pressed 1@
229+
then
230+
while 0AB0: key_pressed 0@
231+
wait 0
232+
if
233+
8AB0: not key_pressed 1@
234+
then
235+
break
236+
end
237+
end
238+
0485: return_true
239+
else
240+
059A: return_false
241+
end
242+
0AB2: ret 0
243+
244+
:isVC
245+
0A8D: 0@ = read_memory 0x667BF0 size 1 virtual_protect 1
246+
if 0@ == 0x55
247+
then
248+
0485: return_true
249+
else
250+
059A: return_false
251+
end
252+
0AB2: ret 0

0 commit comments

Comments
 (0)