Parazitas said:
Parazitas said:
shanker said:Parazitas said:
you still want press "spawn" button?
i found a solution
supahdupahnubah said:shanker said:Parazitas said:
you still want press "spawn" button?
i found a solution
yo share it
{$CLEO}
0000:
:shet
wait 0
056D: actor $PLAYER_ACTOR defined
jf @shet
0@ = Actor.Angle($PLAYER_ACTOR)
Actor.Angle($PLAYER_ACTOR) = 0@
if
0AB0: key_pressed 68 //D
then
00BC: show_text_highpriority GXT 'FEC_RFA' time 100 flag 1 //RIGHT
end
if
0AB0: key_pressed 65 //A
then
00BC: show_text_highpriority GXT 'FEC_LEF' time 100 flag 1 // Left
end
jump @shet
_=Gigant=_ said:Code:{$CLEO} 0000: :shet wait 0 056D: actor $PLAYER_ACTOR defined jf @shet 0@ = Actor.Angle($PLAYER_ACTOR) Actor.Angle($PLAYER_ACTOR) = 0@ if 0AB0: key_pressed 68 //D then 00BC: show_text_highpriority GXT 'FEC_RFA' time 100 flag 1 //RIGHT end if 0AB0: key_pressed 65 //A then 00BC: show_text_highpriority GXT 'FEC_LEF' time 100 flag 1 // Left end jump @shet
Parazitas said:So you think this work when i run .path file?
supahdupahnubah said:Depends on why you need it, if you need it to record your character's movement and position then you might wanna try this :
CPed +0x558 = [float] Current rotation (Z angle)
CPed +0x55C = [float] Target rotation (Z angle)
CPed +0x560 = [float] Rotation speed (Z angle)
Parazitas said:If i correctly understand snippet. This snippet just going to poss, pressing W and make char sprint , but not pressing A or D
So i wanna - add A And D Press
supahdupahnubah said:Parazitas said:If i correctly understand snippet. This snippet just going to poss, pressing W and make char sprint , but not pressing A or D
So i wanna - add A And D Press
Well at first you said you need to detect (get if) that, anyways, you can just emulate A\D key presses at random time (there's opcode to pick a random number)
Parazitas said:How get car ratation?
I tryed use this , but failed or just doing wrong.:
[shcode=cpp]
+0 = [float] X-axis Rotation (Grad)
+4 = [float] Y-axis Rotation (Grad)
+8 = [float] Z-axis Rotation (Grad)
+16 = [float] X-axis Rotation (Looking)
+20 = [float] Y-axis Rotation (Looking)
+24 = [float] Z-axis Rotation (Looking)
[/shcode]
I wanna with memory change car ratation like.:
[shcode=cpp]
if
car is like that " ↑ "
then
put car like that " → "
end
[/shcode]
supahdupahnubah said:Parazitas said:How get car ratation?
I tryed use this , but failed or just doing wrong.:
[shcode=cpp]
+0 = [float] X-axis Rotation (Grad)
+4 = [float] Y-axis Rotation (Grad)
+8 = [float] Z-axis Rotation (Grad)
+16 = [float] X-axis Rotation (Looking)
+20 = [float] Y-axis Rotation (Looking)
+24 = [float] Z-axis Rotation (Looking)
[/shcode]
I wanna with memory change car ratation like.:
[shcode=cpp]
if
car is like that " ↑ "
then
put car like that " → "
end
[/shcode]
Honestly, never tried doing something like this, you might wanna calculate the Z angle and then simply sub\add it just like the aimbot