(For pre-2.0) Vending/ice/weapon machines drop items/eddies/junk when hacked or hit. Arcade/pachinko machines, drop points, fuel dispensers, confession booths, and travel terminals can be hacked for eddies. All machines can have starting malfunctions: glitching, static or off. Turn off machine hack announcements and much more. Customize everything.
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou can upload this file to other sites but you must credit me as the creator of the file
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features so long as you credit me as the original creator
Conversion permissionYou can convert this file to work with other games as long as you credit me as the creator of the file
Asset use permissionYou are allowed to use the assets in this file without permission as long as you credit me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou must get permission to earn Donation Points for your mods if they use my assets
Author notes
Please don't rip off my code. If I can tell you put in your own effort to make the mod better with your own original code, I don't care.
File credits
Thanks to yakuzadeso for introducing me to the idea through their mods, Better Vending Machine Hacking & Hooligan. Because of them I was able to code this mod from scratch, to keep the code as readable/efficient as possible, and enhance it to make it fully customizable by the user.
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 2.5.3
Made JukeboxAddon its own mod
Made this mod compatible with Mod Settings again. Mod Settings was moved from... \r6\scripts\mod_settings\ModSettingsMainGameController.reds to \red4ext\plugins\mod_settings\packed.reds
Version 2.5
Fixed a bug where devices inheriting from the same class as travel terminals would not have any quickhacks.
Jukeboxes can now play vanilla radio stations.
Jukeboxes now glitch when hit.
Jukeboxes get the ability to have one of the three starting malfunctions: glitch, static, or off.
Jukeboxes can be hacked for eddies.
They can break when hit/shot.
All files are modules now
Version 2.4
Travel terminals get the ability to have one of the three starting malfunctions: glitch, static, or off.
Travel terminals can be hacked for eddies.
They can break when hit/shot, but are still useable. They also get a new flicker malfunction when hit or when they have the static/off malfunctions (only when OnHitTravelTerminal-AddOn.reds is installed). This causes the holo projection to flicker and the screen gets a black flicker.
Version 2.3
Fixed various bugs that resulted from separating code into their own modules. Also refactored code to allow for more devices to be hackable for eddies.
30% of junk that vending/weapon machines drop will be junk *items* that can be disassembled for common components instead of literal junk that can't be picked up at all.
Fuel dispensers & confession booths can be hacked for eddies.
Confession booths get the ability to have one of the three starting malfunctions: glitch, static, or off.
Version 2.2
Separated parts of the mod into their own (mostly) isolated modules that can be downloaded individually, with full customization. You can simply turn the settings all the way down to disable some parts of the mod. To get the full mod, download All Files. To only get some parts of the mod, download Base Files Only. After downloading Base Files Only, choose between: * Hack devices for items & eddies. * New device behavior & drops when hit. * Devices have malfunctions.
Arcade Hacking 1. Arcade & pachinko machines can be hacked for eddies & they can only be hacked twice instead of infinitely. 2. Arcade machine glitching has been improved so the visual/sound spark FX can't stack when another FX is already occurring.
Vending Machine Hack additions 1. Added the option to silence vending/weapon/ice machines when hacking them. Machines with the static starting malfunction are automatically silenced so you don't constantly hear 'NICOLA!' as the machines initialize while you run around Night City. 2. Slaughtomatics use the ice-cube-falling SFX from the ice machines for when a weapon is dispensed. It was silent before. 3. Eddies falling from ice machines now use the same noise as the vending machines while maintaining the ice-cube-falling SFX for ice cubes.
Vending Machine On-Hit Vandal additions 1. Machines gain a "flicker" malfunction after being hit once that is barely perceivable. Vending machine screens will occasionally turn black very briefly, the Slaughtomatic buy button will disappear briefly, & ice machines will show their Sold Out sign briefly. 2. Depending on the current malfunction, machines can drop up to a certain number of items before selling out. 3. Vending machines have a new glitch effect when hit. Instead of a short glitch, the screen goes black while going static for 1-3 seconds. 4. The menu already was able to hide/unhide settings if they were unneeded/disabled. Now it's scalable and many mods can build off of the included Mod Settings file instead of only this mod.
Malfunctions 1. Added starting malfunctions for weapon/ice/vending/arcade/pachinko machines & drop points. * Glitch: the screen has a brief reoccurring glitch. They can be hacked once & drop loot when beaten. * Static: the screen has a non-stop static. They can't be hacked but can be beaten for loot. * Broken: the machine is completely off and can't be used, except drop points can still be interacted with. 2. Machines with no malfunction or the glitch malfunction will gain the static malfunction after using all their hacks (1 or 2 hacks).
Version 2.1
Added the ability to hack drop points for eddies twice and after that drop points can no longer be hacked until they reset. Without the mod, drop points can be hacked infinitely. Beating them does nothing, until hacked twice, and then they'll be able to break. Breaking drop points doesn't stop you from using them; it only stops you from hacking them.
Vending machines and drop points continuously glitch when they're sold out after being hacked twice. Ice machines don't continuously glitch because their big screens don't turn off when broken. Being unable to stop the glitching was annoying me.
Glitching machines can be beaten up to turn them off. Any impact counts as a hit. You could land on it from a high distance, NPCs could accidently shoot it when in a firefight, or vehicles could crash into it.
Non-glitching machines will only count player impacts as a hit to prevent them from randomly dispensing items while NPCs are fighting amongst themselves and smashing up the machines.
Any machine that is off can no longer be hacked even if they hadn't been hacked twice yet. This is a change from vanilla behavior.
Version 2.0
Added new functionality that makes vending machines drop items, eddies, and/or junk when beaten up with a chance to break. Fully customizable.
Version 1.4
Added the option to let ice machines drop eddies via direct deposit or dispensed bundles when hacked. The `Eddies always possible` setting doesn't apply to ice machines.
Fixed an oversight where some eddie bundles didn't make any sound when falling out of the machine. If an eddie falls and a corpo isn't around to hear it, did it even fall?
Fixed an unintended behaviour where eddie bundles would sometimes fall out of the machine all at once like a lactose-intolerant person after having milk. The vending machines feel better now so their bundle movements are regular again. (Bundles now fall out one after the other like they're supposed to)
Version 1.3
Added the ability for eddie bundles to be various amounts. It's fully customizable by the Consolidated Eddie Bundles slider when Direct Deposit is off. 100% means dropped eddies will be combined into one bundle. 0% means the machine will drop all eddies as 1's. 50% will drop about 2 bundles of various amounts, with some randomization in the number of bundles that drop. Lower = more bundles.
Version 1.2
Added the ability for vending machines to literally drop eddie bundles one at a time so that you have to pick them up manually. Each bundle only contains 1 eddie (until v1.3).
Version 1.1
Added the ability for vending machines to deposit eddies directly into the player's inventory when hacked.
Version 1.0
Added mod base functionality. Hacking a vending machine has the chance to drop up to 10 items, each with their own drop probability. If no items are dropped, junk may drop out or nothing may come out. Included an optional file to overwrite one file in the Mod Settings mod for a better menu.
Using this mod without Mod Settings means the default settings will take effect and won't be changeable until Mod Settings is installed.
Default Settings 'NICOLA!' when hacking: OFF - machines don't make announcements when hacked so they're quieter.
Items Hack Settings Max possible items: 3 - up to 3 items may drop when a machine is hacked. Item 1 dispense probability: 35% Item 2 dispense probability: 15% Item 3 dispense probability: 15% Junk dispense probability: 95% - only checked if no items/eddies have been dispensed.
Eddies Hack Settings Eddies drop probability: 50% - the likeliness eddies will drop when a machine is hacked, randomly determined by min/max eddies. Max eddies: 25 eddies Min eddies: 1 eddie Eddies always possible: OFF - eddies may only drop if items don't drop. Direct deposit: OFF - eddie bundles fall out of the machine that you have to pick up. Consolidate eddie bundles: 40% - the dispensed eddies will be split between 1-5 bundles. Hack ice machines: ON - ice machines can drop eddies when hacked. Transfer hack arcade/pachinko machines: ON - both machines can transfer eddies to the player via direct deposit. Transfer hack drop points: ON Transfer hack fuel dispensers: ON Transfer hack confession booths: ON Transfer hack travel terminals: ON Transfer hack jukeboxes: ON
On-Hit Vandal Settings Drop behavior when breaking: Never - no drops if the machine breaks. Break probability: 5% - the likeliness a machine will break per hit. Junk dispense probability: 20% Item dispense probability: 50% Eddies dispense probability: 50% Max eddies: 25 eddies Min eddies: 1 eddie Simultaneous drops: OFF - will only dispense an item or eddies per hit, but not both. Vandalize ice machines: ON - ice machines can drop eddies/junk and break when hit. Vandalize arcade/pachinko machines: ON - arcade & pachinko machines can break. Vandalize drop points: ON - drop points can break, but are still useable. Vandalize confession booths: ON - confession booths can break. Vandalize travel terminals: ON Vandalize jukeboxes: ON
Starting Malfunctions
Vending/Weapon/Ice Machines
Malfunction rate: 85% - The overall % of vending machines with a malfunction. Glitch relative odds: 11/11 - The odds a vending machine will short-glitch by default. Static relative odds: 11/11 Broken relative odds: 1/11
Arcade/Pachinko Machines
Malfunction rate: 40% - Only set the relative odds sliders of 1 or 2 types to 0 to guarantee those types won't occur. Glitch relative odds: 11/11 - They can be hacked once and also turned off by hitting them. Static relative odds: 6/11 - They cannot be hacked, but can be turned off by hitting them. Broken relative odds: 1/11 - They cannot be hacked.
Drop Points
Malfunction rate: 60% - The 3 malfunction types are only considered if malfunction rate is above 0%. Glitch relative odds: 11/11 - set a relative odds setting higher or lower than the other two to determine its frequency. Static relative odds: 6/11 - If the relative odds of all three types are equal, they will occur equally. Broken relative odds: 1/11
Download this mod via Vortex or manually. If manually installing, extract its contents into your game's base folder. (\Cyberpunk 2077\) You should see EnhancedDevices inside your r6\scripts\ folder. (\Cyberpunk 2077\r6\scripts\EnhancedDevices\)
^ this overwrites one file in Mod Settings to add extra menu functionality.
The Mod Settings replacement file is part of the included base files. It adds functionality where unused settings are hidden and reappear when needed, but only for this mod and it won't break other mods. If you delete this mod nothing will break, and other mod authors can take advantage of the additional functionality for themselves.
I'll add other settings here for easy viewing later.
On-Hit Vandal Settings
Drop behavior when breaking (Choose 1): Never: no drops if the machine breaks. Sometimes: machines can break and drop something at the same time. Exclusively: drops can only occur when the machine breaks.
Break probability (Slider): The percentage chance the machine will break per hit.
Junk dispense probability (Slider): The percentage chance junk will dispense per hit. Junk always gets checked after items and eddies have both been checked.
Item dispense probability (Slider): The percentage chance an item will dispense per hit.
Eddies dispense probability (Slider): The percentage chance an eddie bundle will dispense per hit. The amount is randomly determined by min/max settings. No Direct Deposit. You don't need it, you hooligan.
Max eddies (Slider): The max number of eddies that can dispense if the probability check passes. Cannot be lower than the min.
Min eddies (Slider): The minimum number of eddies that can dispense if the probability check passes. If higher than the max, the min will be reduced to one less than the max.
Simultaneous drops (Toggle): OFF: will only dispense an item or eddies per hit, but not both. ON: an item, eddies, and even junk can simultaneously dispense per hit. If OFF, the drop that gets checked first is randomized (items or eddies, then junk last).
Vandalize Ice Machines (Toggle): OFF: ice machines keep their default behavior of doing nothing when hit. ON: ice machines can drop eddies/junk and glitch/break when hit.