You are viewing a potentially older version of this package. View all versions.
FlipMods-ReservedFlashlightSlot-2.0.6 icon

ReservedFlashlightSlot

Gives a dedicated Flashlight slot on the right side of your screen that can optionally be purchased! Can be toggled with [F] to activate the Flashlight at anytime.

Date uploaded 4 months ago
Version 2.0.6
Download link FlipMods-ReservedFlashlightSlot-2.0.6.zip
Downloads 546288
Dependency string FlipMods-ReservedFlashlightSlot-2.0.6

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
FlipMods-ReservedItemSlotCore-2.0.8 icon
FlipMods-ReservedItemSlotCore

The core mod for all ReservedItemSlot mods. Adds functionality for all ReservedItemSlot mods and adds API functions!

Preferred version: 2.0.8

README

ReservedFlashlightSlot

Requires: ReservedItemSlotCore

This mod gives a dedicated item slot for flashlights!
This slot accepts both flashlight item, as well as the laser pointer because why not. It's classified as a flashlight.

This slot can be purchased at the terminal unless disabled by the ReservedItemSlotCore mod in the config.

These item slots are aligned on the right side of the screen, and stack vertically with other ReservedItemSlot mods.

You cannot switch to these slots manually by scrolling. Instead, the method for swapping to these items is to hold Alt, and scrolling up and down to switch between them.
This way, you can swap to these items to drop them, as well as other actions, such as charging, storing, etc.

You can activate the flashlight anytime by pressing [F], and with any item in your hands.
This hotkey can be changed if you have the InputUtils mod enabled. I do recommend this mod!

The flashlight sits nicely, holstered on your shoulder, when not in your hand.
This item will also be seen on Masked Enemies if they are mimicking your character, and you have this item equipped.

Item Slot is Purchasable! (new in 2.0.0)

  • The flashlight slot can now be purchased from the terminal, unless this option is disabled in the ReservedItemSlotCore config.
  • Purchased slots will sync with all players, and be linked the the game's save. This means reloading a game in progress should reload this unlocked slot.
  • Slots will not display until the game as been started by the host.

Configurable

  • Now adds more config options!
  • Item slot price can be adjusted in the config.
  • Item slot priority can be adjusted in the config.
  • Items can be added to this item slot in the config. This can be handy when adding other modded items, or variations of this item, to this item slot.
    You can also add the translated names of items to this slot so it should be more compatible between different languages.

Current Items in the Reserved Flashlight Slot

  • "Flashlight"
  • "Pro-flashlight"
  • "Laser pointer" (can be disabled in the config)

Have Issues?

Please report them on my github!

CHANGELOG

2.0.8

  • Added a config option to remove the Laser Pointer from the Reserved Flashlight Slot. (Again? Didn't I do this in 2.0.6??)

2.0.7

  • Updated mod description for latest update compatibility.

2.0.6

  • Added a config option to remove the Laser Pointer from the Reserved Flashlight Slot.

2.0.5

  • Fixed bug where I was trying to change the flashlight's lens texture without checking the "changeMaterial" bool. This caused errors when picking up/interacting with flashlights with this bool false, such as laser pointer, or various modded flashlights.

2.0.4

  • Rewrote the flashlight toggle logic.
    Flashlights not in the reserved slot will now be the target flashlight to toggle on/off when pressing [F], unless there is a flashlight in the reserved item slot. Flashlights currently in your hands will take priority.
  • Flashlight states are a lot smarter now. (it was inconsistent before)
  • When turning on a flashlight, all other flashlights will turn off. This is also triggered when picking up a flashlight that is already turned on.
  • Swapping to/from a flashlight that is turned on will automatically update the lights to be shown in the correct position. (flashlight light, helmet light, flashlight light while on other player's shoulder, etc)
  • The flashlight's light yellow "texture" by the bulb (turned on texture) should not appear on while the flashlight is turned off. (only when in a player's inventory)

2.0.3

  • Fixed issue with flashlight activating when not supposed to, such as when typing in chat, in terminal, etc.

2.0.2

  • Added reminder in config descriptions about adding items, that translated items may need to be added to the list of additional items.
  • Changed default item slot priority to 200 (from 120). Priority order should remain be unchanged for all of my reserved item slot mods.
  • Added current items in slot to the README.

2.0.1

  • Fixed issue with not being able to toggle flashlight with [F] when disabling purchasing slots.

2.0.0

  • Adds support for ReservedItemSlotCore 2.0.0 features.
  • Flashlight slot can now be purchased!
  • Item slot price can be adjusted in the config.
  • Item slot priority can now be adjusted in the config.
  • Items can be added to this reserved item slot in the config. This can be handy when adding variations of this item, or when adding an item's translated name to the slot.

1.6.3

  • Fixed warnings when InputUtils is not enabled.

1.6.2

  • Fix for issue where dead masked enemies would constantly try to re-equip flashlights.
  • Fix for issue where masked enemies wouldn't properly destroy their holstered reserved flashlight after being destroyed.

1.6.1

  • Forgot to update README and dll version.

1.6.0

  • Masked enemies will now display your holstered reserved items if they are mimicking you.

1.5.10

  • Fixed the laser pointer red cube mesh issue. Again.

1.5.9

  • Changes to support ReservedItemSlotCore 1.8.9.

1.5.8

  • Added support for InputUtils, as a soft dependency. If this mod is enabled, you will be able to access any relevant hotkeys within the game's keybind menu.
  • Tweaks to fix an issue with flashlight turning on randomly when doing something kinda specific?

1.5.7

  • Actually fixed laser pointer this time.

1.5.6

  • Fixed laser pointer having a red square around it.

1.5.5

  • Fixed a specific issue causing an error about index out of range.

1.5.4

  • Stability improvements when running this mod, but host does not. (Temporarily disabling the use of the toggle flashlight hotkey if host is not running this mod. Will re-implement this again soon)
  • Updated dependency for ReservedItemSlotCore 1.7.4

1.5.3

  • Fixed issue with the base flashlight not hiding the "strap" part of the mesh while on your shoulder.

1.5.2

  • Flashlight now renders on shoulder in some cases where you can view yourself in third person.

1.5.1

  • Removed some noisy logs.

1.5.0

  • Fixed the main issue of null object references when turning on/off flashlights at times, and/or dropping them.
  • Allows the laser pointer to populate the reserved flashlight slot.
  • Updated for ReservedItemSlotCore 1.6.0

1.4.6

  • Flashlight in currently held slot (not reserved slot) should now activate correctly when pressing LMB.

1.4.5

  • Minor fixes.

1.4.4

  • Previously broke turning on the flashlight with left click. This has been fixed.
  • Fixed some cases where the flashlight mesh's active state was incorrect.

1.4.3

  • Finally tracked down and fixed the bug preventing players from using their hotkeys to swap hotbars, or activate their reserved items with [F] or [X]

1.4.2

  • Updated load order to ensure the core mod loads first.

1.4.1

  • Fixed not properly handling PlayerActions in the OnDisable method if they were not yet initialized.

1.4.0

  • Involved in a code restructure/organization and updated to support ReservedItemSlotCore 1.4.0
  • Refer to the ReservedItemSlotCore 1.4.0 patch notes for more.

1.3.2

  • Accidentally hid flashlight mesh when other players equipped it, cause you not to see the flashlight on their shoulder.

1.3.1

  • Because of weird lighting issues, your local player will continue using their helmet light while not holding a flashlight.
    Other players will still appear to have a flashlight on their shoulder.

1.3.0

  • The flashlight now mounts to your shoulder when not in your hand.

1.2.2

  • Updated to support a few tweaks in the ReservedItemSlotCore mod.
  • Fixed some desync issues, and tweaked some other settings.

1.2.1

  • The activate flashlight keybind shouldn't "try" to run on non-owned players anymore.
  • Fixed bug causing players to get stuck on terminal.

1.2.0

  • Updated dependency to support the updated Core plugin.

1.1.0

  • You can now change the flashlight hotkey in the config.
  • Various tweaks to support the updated core mod.

1.0.1

  • Fixed a bug in the item controls tooltip where some text was duplicating.

1.0.0

  • Initial release