Companion mod
Companion mod
A simple companion mod, makes the target follow you as a companion upon button press.
Heavily WIP atm.
This mod requires Cyberpunk Engine Tweaks 1.8.3 or higher in order to work!
This mod is still heavily WIP, which means bugs are possible, and you can also potentially mess up the game progress (by turning a boss NPC into companion, making them unkillable)! Currently the mod spawns the flathead to steal its follower role and modifies it before applying it onto NPC’s and changing NPC states to turn them into followers. This will be swapped out in newer mod versions as both CET and mod develop further. Currently turning the companion into normal NPC is not possible, and will cause a game flatline if attempted. However, it should work fine once we will be able to define roles ourselves, rather than scrapping them from flathead!
Also, do note that normal NC Citizens disappear after leaving a certain area! Only some NPC’s are persistent, that should include: street vendors, shop keepers, NCPD [static ones], main characters, and some of the enemy NPC’s. This means that only those will save as companions on game restart, and only those are able to follow you to the other side of the map, while the rest disappear after you leave their area, or reload the game!
And one more thing, most of the NPC’s do not have a weapon in their inventory on spawn, this could possibly be modded later on [if I’ll have enough time to do this] to provide them with some weaponry if they have none, so that they can help you at all times. Another thing worth noting is that most of them do quite weak damage, but once newer version of the mod is out (and things like militech AV can become your permanent companion), this should no longer be an issue because some of them pack quite a punch.
How to install:
Step 1: Make sure you have Cyberpunk Engine Tweaks 1.8.3 or higher installed
Step 2: Download the mod content
Step 3: Extract the content in “PATH TO CYBERPUNK\Cyberpunk 2077” so that you have the following structure:
PATH TO CYBERPUNK\Cyberpunk 2077\bin\x64\plugins\cyber_engine_tweaks\mods\companion_mod\init.lua
Step 4: Start the game
Step 5: Target an NPC you want to turn into a companion and press “0” (by default) to turn them into your new companion!
How to uninstall:
Step 1: Delete
PATH TO CYBERPUNK\Cyberpunk 2077\bin\x64\plugins\cyber_engine_tweaks\mods\companion_mod
How to modify key bindings:
Step 1: Open
PATH TO CYBERPUNK\Cyberpunk 2077\bin\x64\plugins\cyber_engine_tweaks\mods\appearance_changer_mod\
Step 2: Open init.lua with any text editor (notepad’s fine)
Step 3: Find the virtual key code on top (KeyPress = 0x30) and swap it with desired key code; codes can be found here: Microsoft virtual key codes
A huge thank you <3 to everyone who made this mod possible and helped me figure some stuff out :
Sombra#6668 for helping me figure out how to force the NPC’s to get into motion
\༺๖ۣۜ⟁ˢᵅᵐᵘᵉˡッ༻/#6969 for giving me the initial idea and helping with the research
Architect#0016 for giving me the idea of spawning flathead to steal its follower role
BroerJelle#3855 for the CET static function syntax
hr#2197 for figuring out what forces the NPC’s to turn into companions on the map
The whole CET & RED4sdk dev team that provided the tools to make this possible:
yamashi, WhySoSerious, Expired, gibbed, and everyone else that has worked on the Cyberpunk 2077 modding.