Cyberpunk 2077

File information

Last updated

Original upload

Created by

RMK

Uploaded by

rmk1234

Virus scan

Safe to use

About this mod

Adds custom quickslots/hotkeys to the bottom of the screen for consumables, grenades, and cyberware abilities. Fully configurable with in-game menu. Supports controllers and keyboard/mouse.

Requirements
Permissions and credits
Changelogs
Donations
Overview

First, a HUGE thanks to psiberx, who helped me with several UI issues and wrote a module I'm using to autoscale the added UI elements based on resolution.

This mod gives quickslots for consumables, multiple healing items, cyberware, grenades, basically everything. It fully supports gamepads and any keyboard/mouse bindings, and has an easy to use menu IN-GAME!





Item Types
  • Food, Drinks, Alcohol: These slots are are filled automatically with one from your backpack. Cat food is chosen last. Otherwise highest quality is chosen first (in vanilla game all have the same quality, but if you use FGR it will match that). Pressing the key/button causes the item to be consumed.

  • Boosters (Health, Stamina, Ram Jolt, Carry Capacity, Oxy): These items will be consumed if you press the key/button.

  • Max Doc / Bounce Back: These slots will instantly change the equipped item in the normal healing item slot, use it, and then change the equipped item back. Therefore you only need to use one of these two slot types, while keeping the other healing item variety equipped normally and bound to X/dpad up. The highest quality version in your inventory is always equipped (even though it says "Mk. 1" in the menu).

  • Optical Camo and Blood Pump: These slots will contain these items if you equip them at a ripperdoc. Using the slot will activate the item.

  • Grenades and Projectile Launcher: There is one slot type for each grenade (frag, flash, incendiary, etc.) and the projectile launcher cyberware. These slots just equip the item in the normal gadget slot, so they let you quickly change between multiple gadgets. In the menu you can choose preferred grenade type (Regular, Sticky, or Homing), and whether pressing the button multiple times will cycle between types.

Each consumable item has a sound effect (food and drink actually have sounds if you consume them directly instead of picking them up when looting, did you know that??).



I also changed the animations (little flashes and shakes) on all the quickslots, including the existing inhaler and grenade quickslots. It seems like those are a bit bugged in the game, as there's code to have animations for starting, completion, etc. but most of them don't work. I made it so that all the quickslots react when you use them. So what was previously the animation for the inhaler slot when you try to use it and are prohibited (in the middle of a melee attack, in the middle of taking the last inhaler, ect.) is now the animation for using any consumable (except grenade/combat), and a different little expanding animation is used for when it fails. The grenade skake/vibration animation is now used whenever you press the button, not just when it finishes. It feels better to me.

Configuration
With the Native Settings UI dependency (big thanks to keanuWheeze for this!), this mod is configured from the "Mods" menu in the Settings menu. This can be done any time, including in the middle of gameplay. The slots will update automatically. Some elements of the menu are translated for different interface languages automatically.



General Settings
  • At the top are options for controlling slot opacity (defualts to hidden while subtitles are onscreen), hiding empty slots, and choosing the number of slots.
  • By default there is a limit of 20 slots, which should be enough for everyone. There are 21 item types but one of those is Oxy Booster. At standard aspect ratio I think you can fit 19 slots, but it should be different on ultrawide.
  • On gamepad there are only 12 distinct input options (3 hold modifier buttons times 4 dpad directions), but you could set multiple slots to the same buttons (for example, food and drink on the same button) to get a few more useable slots.



Slot Settings
  • For each enabled slot you can set the slot type, keyboard/mouse input, and gamepad inputs (hold modifier and dpad button).
  • Keyboard/mouse inputs have to be duplicated in the CET bindings tab (open the console, click on "Bindings" tab, then "Inputs"). The Mods menu part controls what button hints appear in-game, the CET bindings are required to actually activate the slots.
  • Additionally, if a grenade is selected you can set the grenade type (Regular, Sticky, Homing) and whether to cycle through the grenade types by pressing the button repeatedly.



Installation:
  • IMPORTANT: This mod depends on redscript, Cyber Engine Tweaks, and Native Settings UI. Download and install them first!
  • To install this mod, extract the zip file into the Cyberpunk 2077 installation folder (the mod files go to "Cyberpunk 2077/bin/x64/plugins/cyber_engine_tweaks/mods/CustomQuickslots" and "Cyberpunk 2077/r6/scripts/custom_quickslots/").

Issues
  • If you have a lot of items in your inventory, when an item is removed (e.g. when you eat your last of a particular food) the game has a noticeable slight hickup / slowdown (on my CPU, anyway!). When I first noticed this I assumed it was my implementation of searching for a new item to put in the quickslot. Actually the slowdown is there without this mod if you use your last of an inhaler/injector, and it's still there if I disable the UI being updated. So I think it's the game refreshing some data for the inventory whenever its contents change (item removed), and it involves (at least) looping over all the items, causing a noticeable hickup only when you have enough items. I haven't been able to find the right thing that's causing it yet, but I'll keep looking.

Compatibility
  • This mod should work fine with any other mods that change or add to the food, drinks, and other consumables. Highest quality (according to names in game files) items are chosen first, which matches with FGR item qualities.
  • There is an option in the mod menu for compatibility with E3 2018 HUD - Spicy HUD! Thanks spicy for making the new patch 1.5 version of E3 HUD compatible with this mod!
  • There is also an option in the mod menu for compatibility with WE3D - Drugs of Night City! Turn the option on and you get a separate profile for all your slots, and those drugs appear at the end of the item type lists.
  • Later I would like to make it easier for other mods adding items to be compatible by just adding a JSON config file or something similar. 

Future Work
  • With v3.0.0+ this mod is mostly complete. I will revisit having a weapon wheel type UI for it in the future.
  • I may make my own food, drink, and alcohol stats overhaul soon as an addon.

Check out my other mods:

Installation:
  • IMPORTANT: This mod depends on redscript, CET, and Native Settings UI. Download and install those first!
  • To install this mod, extract the zip file into the Cyberpunk 2077 installation folder (the mod files go to "Cyberpunk 2077/r6/scripts").

Credits
  • psiberx for huge help with UI issues and the rest of the modders on the Discord for sharing UI help as well.
  • redscript by jekky is essential for this mod.
  • Cyber Engine Tweaks for debugging redscript-based mods.