View previous topic :: View next topic |
Author |
Message |
GreatUnknown Cheater Reputation: 0
Joined: 19 Oct 2014 Posts: 47
|
Posted: Mon Jan 26, 2015 8:56 am Post subject: Find Weapons Damage? |
|
|
I have a game where all guns except ones in floats share same addy, a one hit kill isn't possible without modifying the value of the damage each gun puts out.
As the game has multiple classes for enemies, how would I go about this?
|
|
Back to top |
|
|
Krampus Cheater Reputation: 0
Joined: 22 Nov 2014 Posts: 41
|
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Jan 26, 2015 6:54 pm Post subject: |
|
|
Even if the weapons are sharing the same address as you swap them out, each weapon should have a data structure with different values in them...for example...to determine which weapon it is, or how much ammo the weapon has etc. With this information, you can filter out the weapons that you do not want to increase damage on by creating a conditional jump in your script that checks what that 'ID' value is.
Look at videos/tutorials regarding data structure dissection. The last step in the CE tutorial covers this.
|
|
Back to top |
|
|
GreatUnknown Cheater Reputation: 0
Joined: 19 Oct 2014 Posts: 47
|
Posted: Thu Jan 29, 2015 3:04 am Post subject: |
|
|
Still no idea guys, I've seen this in CE tables before or am I mistaken? Thanks btw!
|
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Thu Jan 29, 2015 5:01 am Post subject: |
|
|
Almost always, one-hit-kill cheats are achieved by manipulating health...not weapon damage. For example, instead of altering the weapon damage, just alter the instruction that reads the health value for all characters. Easy.
|
|
Back to top |
|
|
GreatUnknown Cheater Reputation: 0
Joined: 19 Oct 2014 Posts: 47
|
Posted: Fri Jan 30, 2015 2:16 am Post subject: |
|
|
I gotcha, sadly this game Wolfenstein NWO is complex with spawning enemies. But must be a base/main class for all enemies to spawn off logic would dictate.
|
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Fri Jan 30, 2015 2:24 am Post subject: |
|
|
Generally, there is a single instruction that accesses ALL health values...whether enemies are constantly spawning or not. Study guides for completing the last step of the CE tutorial to learn how to make use of data structure dissection to filter out your hero's health from the enemy's health. From there, simply write a script by injecting at that instruction and manipulating it so that it gives all enemies 1 health (or something). Just make sure to perform a check in there so that when health becomes 1, the originalcode gets executed so that the death sequence can play out. In order for this to be effective, you will have to inject using an instruction that 'reads' health values...which is generally going to be the case, anyways.
This is the case for nearly ALL games.
|
|
Back to top |
|
|
GreatUnknown Cheater Reputation: 0
Joined: 19 Oct 2014 Posts: 47
|
Posted: Fri Jan 30, 2015 3:03 am Post subject: |
|
|
Cheers, I tried disarming one time but had a massive problem. So I must've done something wrong, will study last step!
This reading health value how do you mean, of course if I set it to 1 the death animation won't play so I would then add the original code along with my newmem code for it to work correctly?
Or wouldn't all enemies have one health and they would just die easily?
|
|
Back to top |
|
|
GreatUnknown Cheater Reputation: 0
Joined: 19 Oct 2014 Posts: 47
|
Posted: Fri Jan 30, 2015 1:55 pm Post subject: |
|
|
Also struggling to find the enemies address and dissect them...
|
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Fri Jan 30, 2015 7:05 pm Post subject: |
|
|
For most games, if you are going to set the health value to 1 (for example), you must put a check in your script that will run the originalcode if the health value is 1 (as I previously noted, in order for a death sequence to play out). For example:
Code: | cmp [eax+04],(float)1.0 //compare all health values to 1
je originalcode //if health value equals 1, run originalcode for death sequence, otherwise, manipulate health to be 1
mov [eax+04],(float)1.0
jmp originalcode |
In order for this to work, you must inject your code using an instruction that 'reads' the health value constantly, as opposed to just 'writes' to it. For some games, you can even create a 'kill all' cheat by setting the health value to 0 instead of 1...with no need for a health check at all.
To find enemy health...first find hero health and check to see which instructions 'access' that address. The rest can be learned by studying the last step of the CE tutorial. Geri wrote a guide for this...follow the link in his signature.
|
|
Back to top |
|
|
|