PDA

View Full Version : Unlimited Zooming?


MaAnon
7th December 2006, 20:20
Hey guys.
I wanted to make a Unlimited-Zoom Hack (no comparing with maximum-value, 0.106 in the most cases).
The commands, which are accesing the zoom, are:

0x58CA95 fst dword ptr [esi+0xC0] <---- set zoom
0x58C6B5 fcomp dword ptr [ecx+0xC0]
0x58C6FA fcomp dword ptr [ecx+0xC0]
0x6286E0 fld dword ptr [ecx+0xC0]
0x58CA58 fld dword ptr [esi+0xC0]
(The following appeared when I tried to "Patch" the other commands with autohack)
0x58C71C fcomp dword ptr [ecx+0xC0]
0x58C729 mov edx,[ecx+0xC0]

Im not sure, what they exacactly do (except the first one, it sets the zoom on zooming, the others are called constantly I think).
The values for zoom I used are in mods/bf2142/objects/weapons_server.zip/[any sniper]/*.tweak
I searched for the first addzoomfactor when the weapon wasnt zoomed and for the second, when it was zoomed totally.
The first command is called for other things too, its only called for the zoom, if you try to change the zoom with your mousewheel.
Can you help me please?

Excuse my english (if its hard to understand :nervous: ), Im from Germany^^

Leonon
8th December 2006, 00:42
This guy is making a video tutorial on zoom hacks. (http://www.battlecoders.com/forum/index.php?showtopic=851) I personally have no idea how to do it though.

MaAnon
8th December 2006, 20:55
Yes, i know that video tutorial, but I didn't want to wait^^.
I have solved the problem now.
I just added an command in the code cave that divides the fov by any number.
Thats how I did it, in this case I divide by 2 (float):

008F9DC1 D835 DD9D8F00 FDIV DWORD PTR DS:[8F9DDD]
008F9DBB D996 C0000000 FST DWORD PTR DS:[ESI+C0]

008F9DDD 00000040 <---- 2 in float

On this way I can zoom 2 times more.
The same works with the normal non-sniper zoom.
But I have now the problem with the mouse sensitivity. Has anyone solved that problem yet? Please tell me!

caliber1942
11th December 2006, 17:28
mouse sensitivity can be controlled somewhat, but when playing the game, the lag or the "ping" affects how little you can move your aim when zoomed in quite a ways. this has always been a problem with the battlefield series. when zoomed in quite a lot then you will find that even minimal moves of the mouse kind of "jump" the aim in that direction, not but the little pixel amounts that you get when zoomed slightly-

just my 2 cents-
best,
Cal

Spontaneous
12th December 2006, 08:00
Actually, if done right, you can get mouse sensitivity working great. For example, I had it working great in Omega for BFVietnam. You just have to decrease the sensitivity a lot.

caliber1942
12th December 2006, 18:09
well i guess the way to do it then would be to go to options, controls and then move the sensitivity slider back and forth and using tsearch isolate the DMA that controls it. then you can modify sensitivity to match your zoom- if what spon is saying holds true-

best,
Cal

dar
12th December 2006, 20:46
so basicly you could also link every sensitivity to every zoom distance. so that every zoom is optimized with your sens ...

Spontaneous
13th December 2006, 07:36
Well yes, caliber is right on how to find it. If I remember correctly, 0.0 was the float value for it being all the way down in the game options and 1.0 being all the way up. But yes, changing the value in the game options is how I found it.

Also, depending on how you have your zoom setup, you can do was dar suggests and have different levels of sensitivity for different levels of zoom. I had in Omega, you could set your own level of zoom and your own level of sensitivity for each level of zoom. It worked out real nice.

Leonon
15th December 2006, 22:13
well i guess the way to do it then would be to go to options, controls and then move the sensitivity slider back and forth and using tsearch isolate the DMA that controls it. then you can modify sensitivity to match your zoom- if what spon is saying holds true-

best,
Cal

Would someone be so kind as to point me to a tutorial which explains how to do this? I've looked for it and have come to the conclusion that I have absolutely no idea what I'm looking for.

MaAnon
17th December 2006, 01:31
Mouse sensitivity isn't easy to modify, because the value I found isn't called constantly. But I think the mouse sensitivity isnt the cause of all that trembling... I noped two lines (read it anywhere, dont know where, but they should correct the zoom) and it worked (I think because that commands checked the zoom and if it was wrong, they called the function I patched. So the zoom was wrong again and my function was called again...) but ONLY in vehicles! (But Im not sure how it worked without that two nops...:ponder: I think I have to try that out)
With my normal weapon I still can't aim on anything!
Maybe the vehicle aiming is not so much affected by the ping as the normal aiming, but I think I just have to find the commands that are checking the zoom when you are not in a vehicle.
I noped the following addresses:
BFMainBase + 0x18C6C0
BFMainBase + 0x18C6E2
And the following I guessed, but they didnt work:
BFMainBase + 0x18C705
BFMainBase + 0x18C727
Please you can correct me if Im wrong and help me to find those commands.
MaAnon

carefull
18th December 2006, 12:58
Yes, i know that video tutorial, but I didn't want to wait^^.
I have solved the problem now.
I just added an command in the code cave that divides the fov by any number.
Thats how I did it, in this case I divide by 2 (float):

008F9DC1 D835 DD9D8F00 FDIV DWORD PTR DS:[8F9DDD]
008F9DBB D996 C0000000 FST DWORD PTR DS:[ESI+C0]

008F9DDD 00000040 <---- 2 in float

On this way I can zoom 2 times more.
The same works with the normal non-sniper zoom.
But I have now the problem with the mouse sensitivity. Has anyone solved that problem yet? Please tell me!


Im so sorry, but im a little noob in this theme.
My question...... where i can write this code pls and where i can see my "real" or "Empty byte" ??

Thank you