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:
Tank View Zoom
Re: Tank View Zoom
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.
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™
-
- Posts: 590
- Joined: Mon Oct 01, 2012 3:13 pm
- Location: Canada
- Contact: