CLEO Help Store aim data - coords from target actor.

CLEO related
Status
Not open for further replies.

Spix

Well-known member
Joined
Sep 23, 2013
Messages
353
Reaction score
1
Hey,

I want to store Aim data from another player then get it to coords XYZ, but i cant find out how. ( I need help )


[member=111]springfield[/member]
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
0BBE: samp store_player 0@ aim_data 1@
0AC8: 1@ = 31
0C0C: 2@ = struct 1@ offset 13 size 4
0C0C: 3@ = struct 1@ offset 17 size 4
0C0C: 4@ = struct 1@ offset 21 size 4
0AC9: 1@

//2@ 3@ 4@ = cam pos
 

Spix

Well-known member
Joined
Sep 23, 2013
Messages
353
Reaction score
1
springfield link said:
0BBE: samp store_player 0@ aim_data 1@
0AC8: 1@ = 31
0C0C: 2@ = struct 1@ offset 13 size 4
0C0C: 3@ = struct 1@ offset 17 size 4
0C0C: 4@ = struct 1@ offset 21 size 4
0AC9: 1@

//2@ 3@ 4@ = cam pos

Thanks alot buddy!
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
Code:
PACKET_AIM_SYNC = 203
// struct stAimData ( size = 32 )
//BYTE byteCamMode; +0
//float vecAimf1[3]; +1
//float vecAimPos[3]; +13
//float fAimZ; +25
//BYTE byteCamExtZoom : 6; +29
//BYTE byteWeaponState : 2; +30
//BYTE bUnk; +31

size is 32 in 0.3.7.
 

Spix

Well-known member
Joined
Sep 23, 2013
Messages
353
Reaction score
1
ıllıllı 0β36 ıllıllı link said:
Code:
PACKET_AIM_SYNC = 203
// struct stAimData ( size = 32 )
//BYTE byteCamMode; +0
//float vecAimf1[3]; +1
//float vecAimPos[3]; +13
//float fAimZ; +25
//BYTE byteCamExtZoom : 6; +29
//BYTE byteWeaponState : 2; +30
//BYTE bUnk; +31

size is 32 in 0.3.7.

Yeah i got the structures of all syncs, thanks anyway :)!
 

Spix

Well-known member
Joined
Sep 23, 2013
Messages
353
Reaction score
1
I didn't use "calls" that much before so im pretty new to it. Maybe you can help me with this too [member=111]springfield[/member] ? :)

Because this didn't work for me.

Sincerely Spexx!

// 24@=Player id, 26@ = 24@ Actor handle


//0AB1: @CREATE_VELOCITY_IN_LOOKING_DIRECTION 1 POWER 1.0 _STORE_TO 4@ 5@ 6@
:CREATE_VELOCITY_IN_LOOKING_DIRECTION
0087: 13@ = 0@ // (float)
Actor.StorePos(26@, 20@, 21@, 22@)
0BBE: samp store_player 24@ aim_data 19@
0AC8: 19@ = 31
0C0C: 8@ = struct 1@ offset 13 size 4
0C0C: 9@ = struct 1@ offset 17 size 4
0C0C: 10@ = struct 1@ offset 21 size 4
0AC9: 19@
0063: 20@ -= 24@ // (float)
0063: 21@ -= 25@ // (float)
0063: 22@ -= 26@ // (float)
Actor.StorePos(26@, 0@, 1@, 2@)
006B: 20@ *= 13@ // (float)
006B: 21@ *= 13@ // (float)
006B: 22@ *= 13@ // (float)
005B: 22@ += 13@ // (float)
005B: 0@ += 20@ // (float)
005B: 1@ += 21@ // (float)
005B: 2@ += 22@ // (float)
Actor.StorePos(26@, 3@, 4@, 5@)
0063: 0@ -= 3@ // (float)
0063: 1@ -= 4@ // (float)
0063: 2@ -= 5@ // (float)
0AB2: RET 3 0@ 1@ 2@
 

Codex1337

Active member
Joined
Mar 1, 2014
Messages
170
Reaction score
1
Spexx link said:
I didn't use "calls" that much before so im pretty new to it. Maybe you can help me with this too [member=111]springfield[/member] ? :)

Because this didn't work for me.

Sincerely Spexx!

// 24@=Player id, 26@ = 24@ Actor handle


//0AB1: @CREATE_VELOCITY_IN_LOOKING_DIRECTION 1 POWER 1.0 _STORE_TO 4@ 5@ 6@
:CREATE_VELOCITY_IN_LOOKING_DIRECTION
0087: 13@ = 0@ // (float)
Actor.StorePos(26@, 20@, 21@, 22@)
0BBE: samp store_player 24@ aim_data 19@
0AC8: 19@ = 31
0C0C: 24@ = struct 1@ offset 13 size 4
0C0C: 25@ = struct 1@ offset 17 size 4
0C0C: 26@ = struct 1@ offset 21 size 4
0AC9: 19@
0063: 20@ -= 24@ // (float)
0063: 21@ -= 25@ // (float)
0063: 22@ -= 26@ // (float)
Actor.StorePos(26@, 0@, 1@, 2@)
006B: 20@ *= 13@ // (float)
006B: 21@ *= 13@ // (float)
006B: 22@ *= 13@ // (float)
005B: 22@ += 13@ // (float)
005B: 0@ += 20@ // (float)
005B: 1@ += 21@ // (float)
005B: 2@ += 22@ // (float)
Actor.StorePos(26@, 3@, 4@, 5@)
0063: 0@ -= 3@ // (float)
0063: 1@ -= 4@ // (float)
0063: 2@ -= 5@ // (float)
0AB2: RET 3 0@ 1@ 2@

You allocated 0AC8: 19@ = 31
shouldn't it be "0C0C: 24@ = struct 19@ offset 13 size 4"?
 

Spix

Well-known member
Joined
Sep 23, 2013
Messages
353
Reaction score
1
Codex1337 link said:
You allocated 0AC8: 19@ = 31
shouldn't it be "0C0C: 24@ = struct 19@ offset 13 size 4"?

Oh shit, i forgot to change that, thanks codex, im so lazy right now  :sweet_jesus:


But still does not work..
//0AB1: @CREATE_VELOCITY_IN_LOOKING_DIRECTION 1 POWER 1.0 _STORE_TO 4@ 5@ 6@
:CREATE_VELOCITY_IN_LOOKING_DIRECTION
0087: 13@ = 0@ // (float)               
Actor.StorePos(29@, 20@, 21@, 22@)
0BBE: samp store_player 30@ aim_data 19@
0AC8: 19@ = 32
0C0C: 24@ = struct 19@ offset 13 size 4
0C0C: 25@ = struct 19@ offset 17 size 4
0C0C: 26@ = struct 19@ offset 21 size 4
0AC9: 19@
0063: 20@ -= 24@ // (float)
0063: 21@ -= 25@ // (float)
0063: 22@ -= 26@ // (float)
Actor.StorePos(29@, 0@, 1@, 2@)
006B: 20@ *= 13@ // (float)
006B: 21@ *= 13@ // (float)
006B: 22@ *= 13@ // (float)
005B: 22@ += 13@ // (float)
005B: 0@ += 20@ // (float)
005B: 1@ += 21@ // (float)
005B: 2@ += 22@ // (float)
Actor.StorePos(29@, 3@, 4@, 5@)
0063: 0@ -= 3@ // (float)
0063: 1@ -= 4@ // (float)
0063: 2@ -= 5@ // (float)
0AB2: RET 3 0@ 1@ 2@

Game is fps dropping when putting the targets actor handle "29@" in actor.storepos.

[member=111]springfield[/member]

help '-.-'
 

Codex1337

Active member
Joined
Mar 1, 2014
Messages
170
Reaction score
1
I fixed the code for you.

Code:
//0AB1: @CREATE_VELOCITY_IN_LOOKING_DIRECTION 3 POWER 10.0 PlayerID_ 0@ PlayerHandle_ 1@ _STORE_TO 4@ 5@ 6@
:CREATE_VELOCITY_IN_LOOKING_DIRECTION
0087: 13@ = 0@ // (float)               
Actor.StorePos(2@, 20@, 21@, 22@)
0BBE: samp store_player 1@ aim_data 19@
0AC8: 19@ = 32
0C0C: 24@ = struct 19@ offset 13 size 4
0C0C: 25@ = struct 19@ offset 17 size 4
0C0C: 26@ = struct 19@ offset 21 size 4
0AC9: 19@
0063: 20@ -= 24@ // (float)
0063: 21@ -= 25@ // (float)
0063: 22@ -= 26@ // (float)
Actor.StorePos(2@, 4@, 5@, 6@)
006B: 20@ *= 13@ // (float)
006B: 21@ *= 13@ // (float)
006B: 22@ *= 13@ // (float)
005B: 22@ += 13@ // (float)
005B: 4@ += 20@ // (float)
005B: 5@ += 21@ // (float)
005B: 6@ += 22@ // (float)
Actor.StorePos(2@, 7@, 8@, 9@)
0063: 4@ -= 7@ // (float)
0063: 5@ -= 8@ // (float)
0063: 6@ -= 9@ // (float)
0AB2: RET 3 4@ 5@ 6@
 
Status
Not open for further replies.
Top