View previous topic :: View next topic |
Author |
Message |
bytexavier How do I cheat? Reputation: 0
Joined: 14 Nov 2017 Posts: 3
|
Posted: Tue Nov 14, 2017 6:21 pm Post subject: Damage Multiplier |
|
|
Hello there, I'm fairly new and I'm trying to write a script to multiply my damage output. I've isolated an address my damage writes to (enemies health) and this is what I get when trying to read it:
Code: | 7FF7BAE38024 - F3 0F11 81 F8000000 - movss [rcx+000000F8],xmm0 |
Like I said, I'm rather new so any help writing this script is really appreciated.
|
|
Back to top |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Tue Nov 14, 2017 8:13 pm Post subject: |
|
|
this doesnt seem to be dmg multiplier to me, anyways if you are looking for a one-hit-kill then you can do it using any of:
- look thru xmm registers and find which one is carrying value '0' and replace it with current xmm which xmm0
- move the value '0' into xmm0 which cant be done directly you have to use a register
- replace "movss" with "mov" and move an immediate float value
- use "neg" (this is my favorite lol)
- subtract their current health from itself using "sub"
- subtract xmm register from itself before the original instruction using "subss"
there is other ways to do such thing too.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Tue Nov 14, 2017 8:19 pm Post subject: |
|
|
Well the basic idea would be to find the value that's being subtracted from their health and call a multiply instruction with the factor you want to multiply by, for SSE float you can use the mulss xmmX, xmmY where the xmmX is the damage value and xmmY is the factor or more commonly mulss xmmX, [address of factor]
If all you have is something that writes the new health value into the health address, as you've given above, then you can subtract the old health from the new health to get the damage value and then multiply eg.
Code: | ...
label(damageFactor)
newmem:
subss xmm0, [rcx+F8] // get damage value by subtracting current from new
mulss xmm0, [damageFactor] // multiply by factor
addss xmm0, [rcx+F8] // re add current health
movss [rcx+F8], xmm0 // update health
jmp return
damageFactor:
dd (float) 10
... |
if you then registered damageFactor as a symbol you could add a record to the table with damageFactor as the address and let the user change the damage factor (they could even make the game harder by using a factor less than 1, effectively dividing instead of multiplying).
|
|
Back to top |
|
|
bytexavier How do I cheat? Reputation: 0
Joined: 14 Nov 2017 Posts: 3
|
Posted: Wed Nov 15, 2017 4:26 pm Post subject: |
|
|
Finding the damage or actual address that has my damage is proving rather difficult. At times I get 6 addresses doing the same thing - subtracting damage from the enemies health. They all show the same values so I'm not sure what's going on.
|
|
Back to top |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Wed Nov 15, 2017 4:48 pm Post subject: |
|
|
bytexavier wrote: | Finding the damage or actual address that has my damage is proving rather difficult. At times I get 6 addresses doing the same thing - subtracting damage from the enemies health. They all show the same values so I'm not sure what's going on. |
you found your enemies health, not weapon dmg multiplier.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
bytexavier How do I cheat? Reputation: 0
Joined: 14 Nov 2017 Posts: 3
|
Posted: Wed Nov 15, 2017 5:08 pm Post subject: |
|
|
OldCheatEngineUser wrote: | bytexavier wrote: | Finding the damage or actual address that has my damage is proving rather difficult. At times I get 6 addresses doing the same thing - subtracting damage from the enemies health. They all show the same values so I'm not sure what's going on. |
you found your enemies health, not weapon dmg multiplier. |
That might be true but my damage address has a good chance of accessing my enemies health when I ctrl+f5 - doesn't it? (See what writes to the address)
|
|
Back to top |
|
|
Csimbi I post too much Reputation: 94
Joined: 14 Jul 2007 Posts: 3110
|
Posted: Thu Nov 23, 2017 7:30 am Post subject: Re: Damage Multiplier |
|
|
bytexavier wrote: | Hello there, I'm fairly new and I'm trying to write a script to multiply my damage output. I've isolated an address my damage writes to (enemies health) and this is what I get when trying to read it:
Code: | 7FF7BAE38024 - F3 0F11 81 F8000000 - movss [rcx+000000F8],xmm0 |
Like I said, I'm rather new so any help writing this script is really appreciated. |
You got the enemy's health and you know it comes from XMM0.
Start backtracking and see where XMM0 gets it value.
You will end up with either at anaddition (of a negative value), subtraction (of a positive value), or multiplication/division of some kind.
That's when you understand how damage is applied. You can hack it at that point, or, trace it back to the source (when the actual damage is a calculated) and patch it there, before any damage bonuses/penalties.
Good luck!
|
|
Back to top |
|
|
|