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

ReservedFlashlightSlot

Gives a free, dedicated Flashlight slot on the right side of your screen. You can press [F] to activate the Flashlight at anytime.

Date uploaded 11 months ago
Version 1.5.3
Download link FlipMods-ReservedFlashlightSlot-1.5.3.zip
Downloads 219263
Dependency string FlipMods-ReservedFlashlightSlot-1.5.3

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 you a free, dedicated item slot for flashlights. Both flashlight items, and only flashlights can fill this slot.
These item slots are aligned on the right side of the screen, and stack vertically with my other ReservedItemSlot mods, such as the ReservedWalkieSlot mod.

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 in the config.

The flashlight sits nicely on your shoulder when not in your hand. (patch 1.3.0)

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