Skip to content

Commit

Permalink
Cool fog bugfix and helmet addition
Browse files Browse the repository at this point in the history
  • Loading branch information
DaXcess committed Feb 1, 2024
1 parent c68c771 commit 40e8251
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
**Bug fixes:**

- Fixed event handler leak in the Keyboard causing the game to hang
- Fixed weird fog rendering issue in the left eye when the radar is active

**Added configuration:**

- Added new configuration option `EnableHelmetVisor` (Default: false). When enabled, will show the first person visor model.

# 1.1.7

Expand Down
3 changes: 2 additions & 1 deletion LCVR/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public class Config(ConfigFile file)

public ConfigEntry<bool> DisableVR { get; } = file.Bind("General", "DisableVR", false, "Disables the main functionality of this mod, can be used if you want to play without VR while keeping the mod installed.");
public ConfigEntry<bool> IntroScreenSeen { get; } = file.Bind("General", "IntroScreenSeen", false, "Whether the VR intro screen has been displayed before. This configuration option should be set automatically.");

public ConfigEntry<bool> EnableHelmetVisor { get; } = file.Bind("General", "EnableHelmetVisor", false, "Enabled the first person helmet visor and helmet. This will restrict your field of view, but looks more immersive.");

// Performance configuration

public ConfigEntry<bool> EnableDynamicResolution { get; } = file.Bind("Performance", "EnableDynamicResolution", false, "Whether or not dynamic resolution should be enabled. Required for most of these settings to have an effect.");
Expand Down
9 changes: 7 additions & 2 deletions LCVR/EntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,13 @@ private static IEnumerator Start()
if (input != null)
input.enabled = false;

// Disable first person helmet
GameObject.Find("PlayerHUDHelmetModel").SetActive(false);
// Move around the volumetric plane
var helmetContainer = GameObject.Find("Systems/Rendering/PlayerHUDHelmetModel");
var helmetModel = helmetContainer.Find("ScavengerHelmet");
helmetModel.transform.Find("Plane").SetParent(helmetContainer.transform);

// Toggle helmet visor visibility
helmetModel.SetActive(Plugin.Config.EnableHelmetVisor.Value);

// Disable ui camera and promote main camera
mainCamera.targetTexture = null;
Expand Down

0 comments on commit 40e8251

Please sign in to comment.