Page 1 of 1

Tank View Zoom

Posted: Mon Nov 12, 2012 5:05 pm
by frankharkov
Does anyone know how to code that?

I'm looking for the sniper rifle zoom code, the one that makes you zoom when pressing the second mouse button.
Then, I want to copy paste that into the tank code.

Final result:

I am hoping that after some tweaking, I will have a second in-tank view, that I can switch to with the C button, and that view will be the zoomed version (2.5x), so that I can destroy bots in SP. Like Forgotten Hope 2 (Battlefield 2 mod)

Example from Forgotten Hope 2:
Image

Re: Tank View Zoom

Posted: Mon Nov 12, 2012 11:56 pm
by Swaffy
I wish people would search before making a new thread.

If you go to the second page in the "1942 Modding Discussion" section, you'll find this:
http://bfmods.com/viewtopic.php?f=6&t=1437

Though it does have a different title, I understand if you couldn't find it. I hope this helps! From what I know, you cannot switch between zoom/unzoom. I think you'd have to have two player slots for something like what you want. There is a code you can use to get the "zoom" effect you want, but it's more like a permanent zoom. You'd have to adjust the forward/backward position of the vehicle's camera, because the FOV change makes the scope object further/closer.


Re: Tank View Zoom

Posted: Tue Nov 13, 2012 12:31 am
by Diamondback
That flashing gun is terribly annoying.