How to change the FoV

1dominator11dominator1 Join Date: 2010-11-19 Member: 75011Members
What the title says, I have seen it on here before but for the love of me cannot find it. No thanks to the fact that the search engine does not accept anything with less than 4 letters.

Comments

  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    <!--quoteo(post=1947031:date=Jun 27 2012, 12:33 PM:name=1dominator1)--><div class='quotetop'>QUOTE (1dominator1 @ Jun 27 2012, 12:33 PM) <a href="index.php?act=findpost&pid=1947031"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->What the title says, I have seen it on here before but for the love of me cannot find it. No thanks to the fact that the search engine does not accept anything with less than 4 letters.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Sadly, there is no way to change this (minus a server-side mod). Current FoVs are:
    Default = 90
    Skulk = 105
    Gorge = 95
    Lerk = 100
    Fade =90
    Onos = 90

    As for the search, I find typing something like "FoV site:http://www.unknownworlds.com/ns2/forums/" into Google much more effective when searching these forums.
  • 1dominator11dominator1 Join Date: 2010-11-19 Member: 75011Members
    <!--quoteo(post=1947034:date=Jun 27 2012, 03:37 PM:name=ScardyBob)--><div class='quotetop'>QUOTE (ScardyBob @ Jun 27 2012, 03:37 PM) <a href="index.php?act=findpost&pid=1947034"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Sadly, there is no way to change this (minus a server-side mod). Current FoVs are:
    Default = 90
    Skulk = 105
    Gorge = 95
    Lerk = 100
    Fade =90
    Onos = 90

    As for the search, I find typing something like "FoV site:http://www.unknownworlds.com/ns2/forums/" into Google much more effective when searching these forums.<!--QuoteEnd--></div><!--QuoteEEnd-->


    Thanks, that is a lot easier than using the search function.
  • DghelneshiDghelneshi Aims to surpass Fana in post edits. Join Date: 2011-11-01 Member: 130634Members, Squad Five Blue, Reinforced - Shadow
    edited June 2012
    FoV is client side. You can edit it to your liking in Client.lua.
    Either modify the <i>function GetScreenAdjustedFov(horizontalFov, standardAspect)</i> starting in line 498 or just change the call to that function in line 595 (<i>local horizontalFov = GetScreenAdjustedFov( camera:GetFov(), 4 / 3 )</i>).
    <i>GetScreenAdjustedFov</i> converts a given horizontal FoV value (like 90 degrees for marine) into a different one based on a vertical FoV value generated from a standard screen aspect ratio (which is 4:3 in the function call). This means that 4:3 monitors will get the 90 degrees horizontal FoV for marines since it is the standard aspect ratio, 5:4 users will get less than that and 16:9/16:10 will get a higher FoV.

    I personally just change the standard aspect to 1 (i.e. change line 595 to <i>local horizontalFov = GetScreenAdjustedFov( camera:GetFov(), 1 )</i>). I don't really mind the distortion and I also get nausea/vertigo with the standard FoV on my 5:4 monitor.

    You will have to repeat this almost every patch.
  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    Doesn't that get overwritten by the server values?
  • 1dominator11dominator1 Join Date: 2010-11-19 Member: 75011Members
    <!--quoteo(post=1947105:date=Jun 27 2012, 07:40 PM:name=Dghelneshi)--><div class='quotetop'>QUOTE (Dghelneshi @ Jun 27 2012, 07:40 PM) <a href="index.php?act=findpost&pid=1947105"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->FoV is client side. You can edit it to your liking in Client.lua.
    Either modify the <i>function GetScreenAdjustedFov(horizontalFov, standardAspect)</i> starting in line 498 or just change the call to that function in line 595 (<i>local horizontalFov = GetScreenAdjustedFov( camera:GetFov(), 4 / 3 )</i>).
    <i>GetScreenAdjustedFov</i> converts a given horizontal FoV value (like 90 degrees for marine) into a different one based on a vertical FoV value generated from a standard screen aspect ratio (which is 4:3 in the function call). This means that 4:3 monitors will get the 90 degrees horizontal FoV for marines since it is the standard aspect ratio, 5:4 users will get less than that and 16:9/16:10 will get a higher FoV.

    I personally just change the standard aspect to 1 (i.e. change line 595 to <i>local horizontalFov = GetScreenAdjustedFov( camera:GetFov(), 1 )</i>). I don't really mind the distortion and I also get nausea/vertigo with the standard FoV on my 5:4 monitor.

    You will have to repeat this almost every patch.<!--QuoteEnd--></div><!--QuoteEEnd-->


    If this works then you are my hero, if it doesnt you are still a hero just not mine.
  • playerplayer Join Date: 2010-09-12 Member: 73982Members
    <!--quoteo(post=1947115:date=Jun 28 2012, 12:10 AM:name=ScardyBob)--><div class='quotetop'>QUOTE (ScardyBob @ Jun 28 2012, 12:10 AM) <a href="index.php?act=findpost&pid=1947115"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Doesn't that get overwritten by the server values?<!--QuoteEnd--></div><!--QuoteEEnd-->
    It's entirely client-side script he's is changing, instead of the entity FoV-variable (which indeed would've been synced with the server immediately). People have been using this trick for many a builds now (plenty of youtube-videos out there that sport a higher-than-90 FoV as a marine).
Sign In or Register to comment.