Author Topic: Please Fix your Add-ons to STOP FORCING FOV  (Read 859 times)

Okay, every since one of the latest updates, Badspot added a fov slider. Hooray! Now I can play in 120 without having to use console commands or it resetting every time I zoom, right? Nope, because for some reason, a TON of add-ons force your fov back to 90. This includes things from weapons to playertypes. I've already told gcat about his weapons doing this, but there are many other add-ons out there that force fov back to 90. It's pretty annoying when you have to press zoom all the time just to get it back to your set fov. So coders, for the good of everything in this world, DON'T make your stuff force fov (Unless it's something like iron sights, as long as it goes back to the player's set fov when not in use it's fine).

^^^^^ this

temporary client-sided solution: PlayGUI.forceFOV = 120;
for add-ons developers, cache this value on the server-side: %client.getControlCameraFOV()

temporary client-sided solution: PlayGUI.forceFOV = 120;
This breaks zoom though. It doesn't work when you use this.

Could you package setfov on the client side for if it gets setfov(90) it will set it to an arbitrary value the user wants?

Code: [Select]
package setfovfix
{
function setfov(%fov)
If(%fov == 90) %fov = $Pref::Client::defaultFov;
parent::setfov(%fov);
};
ActivatePackage("setfovfix");
« Last Edit: December 25, 2013, 07:14:42 PM by Lugnut »

Pretty sure that GameConnection::setControlCameraFOV does not call setFOV. Haven't tested it though.


But also when i join other peoples server it zooms in too
« Last Edit: December 30, 2013, 06:30:32 PM by nicecool »