[1.3.9] Field Of View (FOV) Addon, A SCP-CB Modification

If you have models, sound effects, textures or anything else you would like to be put in the game, post them here. Ideas and suggestions are also welcome.
User avatar
TheHappyJammer
Technician
Posts: 57
Joined: Sun Nov 15, 2015 4:35 am

[1.3.9] Field Of View (FOV) Addon, A SCP-CB Modification

Postby TheHappyJammer » Wed May 23, 2018 6:32 am

Field Of View (FOV) For "SCP - Containment Breach" for v1.3.9.

Image
Image

Download: https://mega.nz/#!U7YhmB4T!LS2lIaskMAIpRyBYwXT1Hrdv2o2KwqSduatbMkZZKoo

Created and Compiled by TheHappyJammer.

Featured in "SCP Professional Mod" made by Inclination (http://undertowgames.com/forum/viewtopic.php?f=11&t=9701)

With extensive help from Vane Brain of Third Subvision Studio for help in finding bugs with the Blinking and Light Sprites.


"SCP - Containment Breach" Created by Undertow Games and Third Subvision Studio (https://github.com/Regalis11/scpcb).

Compiled Using Blitz3D by Blitz Research. (https://blitzresearch.itch.io/blitz3d).
Using "Mavless Bin" by juanjpro (http://undertowgames.com/forum/viewtopic.php?t=5433).

Utilizes "Resource Hacker" by Angus Johnson (http://www.angusj.com/resourcehacker/).
and "FreeImage.dll" by Hervé Drolon (http://freeimage.sourceforge.net/intro.html)

FOV Source Code is based on the work of sswift of the Blitz Forums and Earok of Earok.net.
Sswift's Original Code: https://www.syntaxbomb.com/index.php?topic=666.0
Expansion of Sswift's Code by Earok: http://earok.net/sections/articles/game-dev/theory/widescreen-issues-blitz3d


What does it do?
Spoiler
It simply allows changes to the Horizontal Field of View or simply (FOV) in SCP - Containment Breach.


What is Field of View (FOV)?
Spoiler
Field of View simply means the extent of the observable environment being visible to the player in a 3D First Person Video Game. Most FOV settings in other games (like Minecraft) utilize only Horizontal FOV and this addon will do the same. Although in this case, it can't be changed in-game but through the "options.ini" file.
Learn more in the following links about FOV: https://en.wikipedia.org/wiki/Field_of_view_in_video_games
https://pcgamingwiki.com/wiki/Glossary:Field_of_view_(FOV)


What does the code change?
Spoiler
It adds a FOV option as a Global for MouseLook()'s CameraZoom to utilize

Code: Select all

Global FOV# = GetINIInt(OptionFile, "options", "FOV")

It then changes the CameraZoom setting in the "MouseLook" Function" to enable a Field of View

Code: Select all

CameraZoom(Camera, Min(1.0+(CurrCameraZoom/400.0),1.1) / Tan((2*ATan(Tan((FOV#)/2)*RealGraphicWidth/RealGraphicHeight))/2.0))

"FOV#" is the number you set in the "options.ini" file


Why the new FreeImage.dll?
Spoiler
It replaces the FreeImage.dll that already comes with SCP - Containment Breach which is outdated (from 2012) to the Latest Version of the 32Bit Version (2015). There probably isn't that much difference in performance if at all, but hell why not? If it's arbitrary, I will remove it in the future.


Install Instructions After Download:
Spoiler
Extract the contents and simply drag and drop the "SCP - FOV.exe" file, the new "FreeImage.dll", and the new "options.ini" file to the main game folder of a fresh install of SCP - Containment Breach. Image


Gameplay Instructions:
Spoiler
Simply go to "options.ini" and find the "FOV" setting at the "[options]" section. Change the number to what number you please (The default setting is 90).Image


I am experiencing bugs (Graphics, Lag, MAVs etc).
Spoiler
Install "4GB Patch" and run it on the exe file (https://undertowgames.com/forum/viewtopic.php?t=6498)
If that doesn't work, go to this thread for further instructions to deal with MAVs (http://undertowgames.com/forum/viewtopic.php?t=3742)
If all else fails, it is likely a bug in the current version of the game proper.


More Images
Spoiler
Image Intro, Regular
Image Intro, FOV Setting "90"
Image 173 Chamber, Regular
Image 173 Chamber, FOV Setting "90"
Image Initial Breach, Regular
Image Initial Breach, FOV Setting "90"
Last edited by TheHappyJammer on Tue Jun 26, 2018 4:49 am, edited 1 time in total.
[1.2.3] SCP Containment Breach 087-B Mod:
http://undertowgames.com/forum/viewtopic.php?f=11&t=4944
[1.3.9] Field Of View (FOV) Setting Addon:
https://undertowgames.com/forum/viewtopic.php?f=5&t=8433

User avatar
Zackonark
Guard
Posts: 210
Joined: Thu Aug 20, 2015 2:40 pm

Re: [1.3.9] Field Of View (FOV) Addon, A SCP-CB Modification

Postby Zackonark » Thu Jun 21, 2018 2:11 am

It's a shame no one has said anything about this mod. It's a fantastic little addition I feel should be in the base game. I mean, the fact you even got it working is impressive from my point of view.
I'm a lead developer of the SCP Containment Breach Unity Remake. Check it out! You might enjoy it
Official Website

User avatar
TheHappyJammer
Technician
Posts: 57
Joined: Sun Nov 15, 2015 4:35 am

Re: [1.3.9] Field Of View (FOV) Addon, A SCP-CB Modification

Postby TheHappyJammer » Thu Jun 21, 2018 4:34 am

Zackonark wrote:It's a shame no one has said anything about this mod. It's a fantastic little addition I feel should be in the base game. I mean, the fact you even got it working is impressive from my point of view.


Thanks for the support! It really wasn't that hard to implement. The code is based on code I found in the now defunct Blitz Forums, but it was really just me wanting to have FOV as a feature since I always found the player looks like he's hugging the wall with how close the FOV was in regular SCP-CB lol
[1.2.3] SCP Containment Breach 087-B Mod:
http://undertowgames.com/forum/viewtopic.php?f=11&t=4944
[1.3.9] Field Of View (FOV) Setting Addon:
https://undertowgames.com/forum/viewtopic.php?f=5&t=8433

User avatar
Zackonark
Guard
Posts: 210
Joined: Thu Aug 20, 2015 2:40 pm

Re: [1.3.9] Field Of View (FOV) Addon, A SCP-CB Modification

Postby Zackonark » Thu Jun 21, 2018 7:42 pm

TheHappyJammer wrote:Thanks for the support! It really wasn't that hard to implement. The code is based on code I found in the now defunct Blitz Forums, but it was really just me wanting to have FOV as a feature since I always found the player looks like he's hugging the wall with how close the FOV was in regular SCP-CB lol

Well, if it was so easy to implement, then all the more reason to have it in the game. It really just makes me question what stopped them from doing so in the time frame of 4+ years.

One could also argue that the simple fact you can go through the source code and understand just what the hell is going on in there is impressive. Heaven knows I couldn’t
I'm a lead developer of the SCP Containment Breach Unity Remake. Check it out! You might enjoy it
Official Website

User avatar
TheHappyJammer
Technician
Posts: 57
Joined: Sun Nov 15, 2015 4:35 am

Re: [1.3.9] Field Of View (FOV) Addon, A SCP-CB Modification

Postby TheHappyJammer » Sat Jun 23, 2018 3:47 am

Zackonark wrote:
TheHappyJammer wrote:Thanks for the support! It really wasn't that hard to implement. The code is based on code I found in the now defunct Blitz Forums, but it was really just me wanting to have FOV as a feature since I always found the player looks like he's hugging the wall with how close the FOV was in regular SCP-CB lol

Well, if it was so easy to implement, then all the more reason to have it in the game. It really just makes me question what stopped them from doing so in the time frame of 4+ years.

One could also argue that the simple fact you can go through the source code and understand just what the hell is going on in there is impressive. Heaven knows I couldn’t

I do hope that the new engine that the devs are working on for CB won't be much of a hard learning curve.
[1.2.3] SCP Containment Breach 087-B Mod:
http://undertowgames.com/forum/viewtopic.php?f=11&t=4944
[1.3.9] Field Of View (FOV) Setting Addon:
https://undertowgames.com/forum/viewtopic.php?f=5&t=8433


Return to “Collaboration”

Who is online

Users browsing this forum: No registered users and 3 guests