View previous topic :: View next topic |
Author |
Message |
simbim Newbie cheater
Reputation: 0
Joined: 14 Jun 2016 Posts: 21
|
Posted: Sun Jun 19, 2016 1:42 am Post subject: Help with opk |
|
|
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 |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sun Jun 19, 2016 1:47 am Post subject: |
|
|
You have no jump for the condition (after the compare).
|
|
Back to top |
|
 |
simbim Newbie cheater
Reputation: 0
Joined: 14 Jun 2016 Posts: 21
|
Posted: Sun Jun 19, 2016 2:31 am Post subject: |
|
|
++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 |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sun Jun 19, 2016 2:45 am Post subject: |
|
|
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 |
|
 |
simbim Newbie cheater
Reputation: 0
Joined: 14 Jun 2016 Posts: 21
|
Posted: Sun Jun 19, 2016 3:50 am Post subject: |
|
|
++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 |
|
 |
simbim Newbie cheater
Reputation: 0
Joined: 14 Jun 2016 Posts: 21
|
Posted: Sun Jun 19, 2016 8:43 pm Post subject: sorry for dubble post, I needed to know few thing |
|
|
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 |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Jun 19, 2016 9:48 pm Post subject: |
|
|
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 |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sun Jun 19, 2016 9:57 pm Post subject: Re: sorry for dubble post, I needed to know few thing |
|
|
A lot of ways to skin a cat...but some people just expect you to do it for them.
Anyway, this doesn't even make sense:
simbim wrote: | If I want to store my position to enemy pos |
|
|
Back to top |
|
 |
_Veggy Cheater
Reputation: 2
Joined: 30 Apr 2013 Posts: 34 Location: BReWErS rox your dox
|
Posted: Mon Jun 20, 2016 11:18 am Post subject: |
|
|
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 |
|
 |
|