++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Apr 21, 2014 10:23 am Post subject: |
|
|
Depends on the game. Having enemies literally freeze and do nothing may be harder than just freezing their position (i.e. still able to move legs/arms and function, but unable to move from their position). Typically, for position freeze, I look for an instruction that handles all movement/coordinates. If you want an actual freeze, a similar approach may work, but I find that searching for actual speed works best for this.
For coordinates:
Search for player coordinates, once found, look at instructions that access the address(es). Use an instruction that accesses all coordinate addresses (may need to filter out hero coordinates). Nop'ing the instruction should be sufficient, if not, try a different instruction that accesses all coordinate addresses.
For speed:
It depends. Sometimes, this value can be located in the same structure as the coordinates structure (typically a float value, but not always). It can take time to locate this address and finding it is hit or miss. You can also look at the code near the coordinates address, since the game has to know how much force to use for gravity, and how quickly each character object must move etc. If you find this value, you can try setting it to 0 or something close to that. Typically, when I write an actual freeze cheat, I like to add a conditional parameter that ties to health, so that when the enemies are supposed to die, they don't just stand there, frozen, but instead, fall to the ground (or whatever) and actually carry out the death sequence. If you do not do this, you may be left with a bunch of frozen bodies that never disappear etc.
Alternatively, you can use a combination of scripts to achieve what you want. For example, you can write a script that will lock enemy position, and, one that will prohibit the enemy from attacking/firing etc. Just find the instruction that handles that function and NOP for the enemy...easy.
|
|