Patch 2.2 compatibility: ? I don't know if the mod will require to be updated, but core frameworks (CET) will In the past, the first CET updates for a new patch have been prone to be not stable and missing important features used by mods, thus I recommend waiting until all core frameworks have been fully updated.
Required mod. You can spend thousands of eddies and hard found components on optics but still can't see in the dark? Hell my Pip Boy has a flashlight...
The controller support is naff unfortunately as it conflicts with in game commands (i use alternate layout so enabling flashlight also brings up my portable radio). I'd recommend assigning it to a keyboard key and emulating that key on your controller via steam iinput or ds4 windows or something. I have it assigned to the mute key on my dualsense ps5 controller
If the mod stops working, but the option to set up the bind still shows up in CET you need to delete config.json in \Cyberpunk 2077\bin\x64\plugins\cyber_engine_tweaks\mods\flashlight as a corrupted config file will break the mod
Could you add a way to have like 3 presets and a short-key to switch between them ?
Like (irl) all nice Torch/Flashlight usually have 3 positions : low-mid-high, that define both the light intensity (and the distance too) but also the size of the halo, having the same thing would be amazing.
- One shortkey for activating/Deactivating the Flashlight/Torch - One/two shortkey(s) for switching between the following modes : Low-Mid-High (Each mode simply being a different preset)
What do you think ? Is it a lot of work to do that ? Could you do it if you think it make sense for your mod ?
763 comments
I don't know if the mod will require to be updated, but core frameworks (CET) will
In the past, the first CET updates for a new patch have been prone to be not stable and missing important features used by mods, thus I recommend waiting until all core frameworks have been fully updated.
RightThumb >> to LeftThumb :
<!-- inputUserMapping -->
<mapping name="Flashlight" type="Button" >
<button id="IK_Pad_RightThumb"/>
</mapping>
<!-- Flashlight Gamepad Combo -->
<buttonGroup id="IK_Pad_RightThumb" timeWindow="0.08f" >
A: Cyberpunk 2077\bin\x64\plugins\cyber_engine_tweaks\mods\flashlight\init.lua
line 94
1. Modify the mod: Open Cyberpunk 2077>>bin>>x64>>plugins>>cyber_engine_tweaks>>mods>>flashlight>>init.lua,
change "dpad_left" into "Flashlight"
2. Create a SimpleFlashlight.xml file (to be placed in r6\input\ - with Input Loader at Cyberpunk 2077 Nexus - Mods and community installed, of course); imputs: NativeDB
2.1 contents: (my personal taste)
<?xml version="1.0"?>
<bindings>
<!-- inputContexts -->
<context name="Flashlight" >
<action name="Flashlight" map="Flashlight" priority="-1" />
</context>
<context name="Locomotion" append="true">
<include name="Flashlight" />
</context>
<hold action="Flashlight" timeout="0.3" />
<acceptedEvents action="Flashlight" >
<event name="BUTTON_PRESSED" />
<event name="BUTTON_RELEASED" />
<event name="BUTTON_HOLD_PROGRESS" />
<event name="BUTTON_HOLD_COMPLETE" />
</acceptedEvents>
<!-- inputUserMapping -->
<mapping name="Flashlight" type="Button" >
<button id="IK_Pad_RightThumb"/>
</mapping>
<!-- Flashlight Gamepad Combo -->
<buttonGroup id="IK_Pad_RightThumb" timeWindow="0.08f" >
<button id="IK_Pad_DigitRight" />
<button id="IK_Pad_DigitDown" />
</buttonGroup>
</bindings>
if you want to use the key combination, you need to change to this:
<mapping name="Flash" type="Button" SIEJADependent="true" >
<button id="Flashlight" />
</mapping>
<buttonGroup id="Flashlight" timeWindow="0.1f" >
<button id="IK_Pad_LeftThumb" />
<button id="IK_Pad_B_CIRCLE" />
</buttonGroup>
Credits: lyff2333's Profile - Nexus Mods / Gn3xus's Profile - Nexus Mods / mangoCT137's Profile - Nexus Mods
Got future tech out the wazoo but forgot to add a Flashlight, even as an implant or gun attachment LOL.
Could you add a way to have like 3 presets and a short-key to switch between them ?
Like (irl) all nice Torch/Flashlight usually have 3 positions : low-mid-high, that define both the light intensity (and the distance too) but also the size of the halo, having the same thing would be amazing.
- One shortkey for activating/Deactivating the Flashlight/Torch
- One/two shortkey(s) for switching between the following modes : Low-Mid-High (Each mode simply being a different preset)
What do you think ? Is it a lot of work to do that ? Could you do it if you think it make sense for your mod ?