Bug #1175

Adjust fov range check

Added by Spyhawk 5 months ago. Updated 5 months ago.

Status:Fixed% Done:

100%

Priority:NormalSpent time:-
Assignee:Spyhawk
Category:Mod pak3.pk3
Target version:2.77
OS: Arch:

Description

The field of view (fov) has been adjusted in Legacy so the default value is always "natural" by default, regardless of actual the resolution. This is done by using the horizontal FOV formula

There are still a few fov adjustment left to do in the code though. These value have been designed for the 4/3 screen era, and are not adequate when used with nowadays 16/9 screens.
The competition configs we ship have a range check from [90, 120]. The modern equivalent would be [73.74, 104.82]. Currently [90,120] on Legacy would be [106.26, 133.27] in other mods, so our values are"shifted" and need to be fixed.

A few notes:
  • MGs and Tanks use a specific "zoomed" fov of 55 and 75, respectively, and are properly adjusted automatically too.
  • Maximum fov value is forced to 160, while the minimum fov is forced to 90. We might want to lower this value to allow for quick zoom when shooting?

In attachment a few screenshots for fov comparison between Legacy and other mods. Legacy fov 90 is the equivalent of other mod fov 106.

100.jpg - Legacy fov 100 (535 KB) Spyhawk, 18.01.2019 21:51

90.jpg - Legacy fov 90 (default) (552 KB) Spyhawk, 18.01.2019 21:51

106.jpg - Legacy fov 106 (526 KB) Spyhawk, 18.01.2019 21:51

110.jpg - Legacy fov 110 (522 KB) Spyhawk, 18.01.2019 21:51

133.jpg - Legacy fov 133 (483 KB) Spyhawk, 18.01.2019 21:51

120.jpg - Legacy fov 120 (506 KB) Spyhawk, 18.01.2019 21:51

m100.jpg - other mods fov 110 (558 KB) Spyhawk, 18.01.2019 21:53

m90.jpg - other mods fov 90 (564 KB) Spyhawk, 18.01.2019 21:53

m106.jpg - other mods fov 106 (547 KB) Spyhawk, 18.01.2019 21:53

m110.jpg - other mods fov 110 (540 KB) Spyhawk, 18.01.2019 21:53

m120.jpg - other mods fov 120 (529 KB) Spyhawk, 18.01.2019 21:55

1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014

Related issues

Related to ET: Legacy Development - Feature #470: Automatic fov settings Fixed 04.01.2014

Associated revisions

Revision d25ad0c6
Added by Spyhawk 5 months ago

misc: adjusted cg_fov range check in configs, refs #1175

History

#1 Updated by Spyhawk 5 months ago

#2 Updated by Spyhawk 5 months ago

#3 Updated by Spyhawk 5 months ago

To be noted: some players use some "zoom" script to temporarily reduce the field of view but ease aiming on target (spread will still be the same).

Funnily enough, that wasn’t possible in the 4/3 era, but when 16:9 screen came on market, suddenly the [90, 106] range was zoomed.
With Legacy forcing the minimum at 90, we’re more or less back to the original design.

I’m not strictly against allowing a zoom here, just pointing it out - thought that was funny.

#4 Updated by Spyhawk 5 months ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#5 Updated by Spyhawk 5 months ago

Changed range check to [90, 105]. The upper bound is now the equivalent of 120 in other mods, while the lower bound stays at 90 preventing zoomed scripts (this is what binocs and covops are for).

#6 Updated by Spyhawk 5 months ago

  • Status changed from Feedback to Fixed

#7 Updated by IR4T4 5 months ago

  • Assignee set to Spyhawk

Also available in: Atom PDF