Tank View Zoom

Ask questions, discuss ideas, get answers
Post Reply
frankharkov
Posts: 1
Joined: Mon Nov 12, 2012 4:43 pm

Tank View Zoom

Post 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
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Tank View Zoom

Post 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.

(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Diamondback
Posts: 590
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada
Contact:

Re: Tank View Zoom

Post by Diamondback »

That flashing gun is terribly annoying.
See my Strasbourg map project here.
Post Reply