Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help with opk

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
simbim
Newbie cheater
Reputation: 0

Joined: 14 Jun 2016
Posts: 21

PostPosted: Sun Jun 19, 2016 1:42 am    Post subject: Help with opk Reply with quote

I just wrote a simple code to test if opk works only on enemy if I check teamnumber, it usully works with infinite health & one shot kill but that dosnt with teleporting. Its effect both player and enemy. What am I missing here.
Code:

cmp [ecx+02d4],00000002
mov [ecx+60],(float)-108.6269302  //X pos
mov [ecx+68],(float)-145.1070404 //Y pos
mov [ecx+64],(float)-14.42904377 //Z pos
jmp originalcode
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Jun 19, 2016 1:47 am    Post subject: Reply with quote

You have no jump for the condition (after the compare).
Back to top
View user's profile Send private message
simbim
Newbie cheater
Reputation: 0

Joined: 14 Jun 2016
Posts: 21

PostPosted: Sun Jun 19, 2016 2:31 am    Post subject: Reply with quote

++METHOS wrote:
You have no jump for the condition (after the compare).

Ofcourse, I have to jump there if equal then do the magic. Im so noob. Thanks!
Now I have something to work with. Ill try to make it teleports to me instead of one and same place. thats boring!

So now all I have to do is send them to playerposition write?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Jun 19, 2016 2:45 am    Post subject: Reply with quote

If you're referring to a vac cheat, I have posted several examples on this forum that you can use as reference.
Back to top
View user's profile Send private message
simbim
Newbie cheater
Reputation: 0

Joined: 14 Jun 2016
Posts: 21

PostPosted: Sun Jun 19, 2016 3:50 am    Post subject: Reply with quote

++METHOS wrote:
If you're referring to a vac cheat, I have posted several examples on this forum that you can use as reference.


You have to much post I cant go through them all. I found one but its for a 2d game. Could it work if I add z_c?

Can you please link me to one that I need to analyze it.
Back to top
View user's profile Send private message
simbim
Newbie cheater
Reputation: 0

Joined: 14 Jun 2016
Posts: 21

PostPosted: Sun Jun 19, 2016 8:43 pm    Post subject: sorry for dubble post, I needed to know few thing Reply with quote

sorry for double post

I need to know few thing, I would be very greatfull is someone could answer them.
Here is what I think about. Please tell my where Im wrong or if Im missing something.
Here was the simple code that I want to work with,
Code:

cmp [eax+offset_teamnum],teamnumber
je originalcode
mov [eax],(x_c) //X pos
mov [eax+04],(y_c) //Y pos
mov [eax+08],(z_c) //Z pos

If I want to store my position to enemy pos, is it write to use fld or something else? Do I need to copy and then store it or is it okey to only use fld?

Do I need to write my current position and then store it on offset_teamnumber+teamnumber xyz_pos?


Do I need to check teamnumber again before storeing? can you please just give an example?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Jun 19, 2016 9:48 pm    Post subject: Reply with quote

Assuming those are your variables and you've set them...
Code:
cmp [eax+offset_teamnum],teamnumber
je originalcode
fld [x_c]
fstp [eax]
fld [y_c]
fstp [eax+04]
fld [z_c]
fstp [eax+08]
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Jun 19, 2016 9:57 pm    Post subject: Re: sorry for dubble post, I needed to know few thing Reply with quote

A lot of ways to skin a cat...but some people just expect you to do it for them. Razz

Anyway, this doesn't even make sense:

simbim wrote:
If I want to store my position to enemy pos
Back to top
View user's profile Send private message
_Veggy
Cheater
Reputation: 2

Joined: 30 Apr 2013
Posts: 34
Location: BReWErS rox your dox

PostPosted: Mon Jun 20, 2016 11:18 am    Post subject: Reply with quote

If you want to make like a translocation ammo cheat you simply store your enemy coords into the player.

like this considering enemy_struct is a reference (pointer) to the player structure.
mov eax, [enemy_struct+20]
mov [playerstruct+20], eax

etc....
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites