You are viewing a potentially older version of this package. View all versions.
Azumatt-FirstPersonMode-1.1.3 icon

FirstPersonMode

Simple mod that allows First Person. It moves the camera into the player's head. It hides what is needed either through culling the character model or hiding the head by shrinking it (configuration value)

Date uploaded a year ago
Version 1.1.3
Download link Azumatt-FirstPersonMode-1.1.3.zip
Downloads 2790
Dependency string Azumatt-FirstPersonMode-1.1.3

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2202 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.2202

README

Description

Simple mod that allows First Person. It moves the camera into the player's head. It "hides" what is needed either through culling the character model or hiding the head by shrinking it (configuration value).

This mod uses a file watcher. If the configuration file is not changed with BepInEx Configuration manager, but changed in the file directly, upon file save, it will update the settings.


Configuration Options

2 - Toggles

Enable First Person []

  • If on, First Person is enabled.
    • Default Value: On

Hide Head []

  • If on, the camera will not use the culling mode and will instead shrink the head to hide it. This method is a bit better overall as your armor isn't see through, but looks a little weird. Headless people always do.
    • Default Value: Off

3 - Camera

Default FOV []

  • Default FOV for First Person.
    • Default Value: 65

NearClipPlaneMin []

  • Adjusts the nearest distance at which objects are rendered in first person view. Increase to reduce body visibility; too high might clip nearby objects.
    • Default Value: 0.3

NearClipPlaneMax []

  • Adjusts the nearest distance at which objects are rendered in first person view. Increase to reduce body visibility; too high might clip nearby objects.
    • Default Value: 0.3

4 - Keyboard Shortcuts

Toggle First Person Shortcut []

  • Keyboard Shortcut needed to toggle First Person.
    • Default Value: H + LeftShift

Raise FOV Shortcut []

  • Keyboard Shortcut needed to raise FOV.
    • Default Value: PageUp + LeftShift

Lower FOV Shortcut []

  • Keyboard Shortcut needed to lower FOV.
    • Default Value: PageDown + LeftShift
Installation Instructions

You must have BepInEx installed correctly! I can not stress this enough.

Manual Installation

Note: (Manual installation is likely how you have to do this on a server, make sure BepInEx is installed on the server correctly)

  1. Download the latest release of BepInEx.
  2. Extract the contents of the zip file to your game's root folder.
  3. Download the latest release of FirstPersonMode from Thunderstore.io.
  4. Extract the contents of the zip file to the BepInEx/plugins folder.
  5. Launch the game.

Installation through r2modman or Thunderstore Mod Manager

  1. Install r2modman or Thunderstore Mod Manager.

    For r2modman, you can also install it through the Thunderstore site.

    For Thunderstore Mod Manager, you can also install it through the Overwolf app store

  2. Open the Mod Manager and search for "FirstPersonMode" under the Online tab. Note: You can also search for "Azumatt" to find all my mods.

    The image below shows VikingShip as an example, but it was easier to reuse the image.

  3. Click the Download button to install the mod.

  4. Launch the game.



Feel free to reach out to me on discord if you need manual download assistance.

Author Information

Azumatt

DISCORD: Azumatt#2625

STEAM: https://steamcommunity.com/id/azumatt/

For Questions or Comments, find me in the Odin Plus Team Discord or in mine:

https://i.imgur.com/XXP6HCU.png

V+ Developer Credits (For some of the code used in this mod)

ValheimPlus Official Development Team ValheimPlus Icon

Credits

CHANGELOG

Version Update Notes
1.3.7 - Update for Bog Witch. Also fix zooming out with controllers.
1.3.6 - Add a configuration option for camera centering behind the player.
1.3.5 - Add a configuration option for Max Deviation. Max deviation angle before rotating the player. This is essentially the same thing as a 'Deadzone' for the camera. Similar to how a controller has a deadzone for the joystick.
- Also add Slerp to the player's rotation to hope make a bit smoother rotations to the player model when looking left or right after you're out of the deadzone. Essentially, just exposing these values so you can change however you want.
- Added configuration option for the Slerp multiplication as well. Higher values will make the camera move faster (The player's rotation will match the target rotation more quickly. This can make the rotation feel more immediate but might appear less smooth if the change is too rapid.), lower values will make the camera move slower. (The player's rotation will take longer to match the target rotation. This will make the transition appear smoother but might feel laggy if too slow.)
- README.md updated to reflect the new configuration options.
1.3.4 - Revert how I check for the scrollwheel. No longer mimicking vanilla
- Fix an issue with the use of the Barber Station
- Add smoothing to the camera distance changes
- Hide the CapeAsh when in first person mode to get rid of the annoying thing in your face. Unfortunately this hides the whole cape since it's one piece, but, oh well.
- Explicitly state in the code, that the mod isn't required on servers. If it's installed on both it will sync the configurations to those that have the mod.
1.3.3 - "Update" for Ashlands since nothing really broke
- Allow adjusting camera offset when zooming while aiming with a bow.
- Fix controller zooming out issue (again)
1.3.2 - Compatibility with Searica's CameraTweaks max zoom out.
1.3.1 - Give a warning if V+ is installed and prevent this mod from patching. People keep installing this mod alongside it and reporting the bug to me. The issue is that ValheimPlus takes control over the camera regardless of their first person being toggled off causing the camera to stutter.
Warning states: "Valheim Plus detected, disabling FirstPersonMode to prevent camera stuttering. Please use the First Person mode in Valheim Plus or disable it to use this mod."
1.3.0 - Add ServerSync
- ServerSync addition comes with new configuration changes. Ability to enforce FPM on clients for your server if it's installed there.
1.2.7 - Fix an issue on ships (while moving) that would cause some jitters if you look too far left or right.
1.2.6 - Fix not being able to doge backwards while in first person.
- Fix gamepad compatiblity (you no longer get stuck in first person and can zoom out correctly now)
1.2.5 - Compile against 0.217.28.
1.2.4 - Compile against 0.217.22 just in case.
1.2.3 - Fix a mess up that was causing your hair to show when using default configs.
1.2.2 - Provide compatibility with my Fenrir's Curse mod. Moves the camera to the correct part of the body when in Wolf form.
1.2.1 - Fix an issue caused by some mods that might make VisEquipment null. Found when testing my own unreleased mods.
1.2.0 - Fix compatibility with my BuildCameraCHE mod.
1.1.3 - Fix pickable bushes and such from being culled by the camera when the player is in first person.
1.1.2 - Fix the grass being culled (hiding) around the player when in first person.
- Fix an issue when in build mode and scrolling would cause the camera to flicker.
1.1.1 - Change the default clipping min/max (reduced from 0.3 to 0.17) It is recommended that you set to defaults and adjust your preference from there.
- Change how the camera position is calculated
- Fix an issue when scrolling while searching for recipes
- Turn the body when looking left and right in first person, if you get close to the shoulders.
1.1.0 - Changed the configuration file a bit. Make sure to delete your configuration file when upgrading to this version
- Add in the ability to scroll in and out as well as the hotkey to go into first person mode.
- Change the default hotkey from F + LeftShift to H + LeftShift. The original configuration was triggering the guardian power.
- Fix a bug that allowed overlapping pieces to appear valid.
- Change the location of damage text and your ship HUD when in first person mode for easier readability.
1.0.0 - Initial Release