Hash Studios Alcohol Drinks
Version: This guide is for Unity 2022.3.6f1. The steps may be different in future versions of Unity.
Hash Studios Alcohol Drinks is a Unity Udon prefab for VRChat worlds that allows players to craft drinks, experience drunkenness, and customize effects for a fun and immersive experience. It features detailed mechanics for mixing drinks, applying unique visual effects, and handling player states like drunkenness and blackouts.
Disclaimer: While this prefab simulates the effects of alcohol in a virtual environment, please remember to consume alcohol responsibly in real life. Overdrinking can have serious health consequences. Always ensure you stay hydrated with water and prioritize your safety and well-being.
Features
- Craft drinks using a variety of ingredients.
- Unique drink effects based on the ingredients and mix accuracy.
- Visual and gameplay effects as players consume alcohol, including blur, wave intensity, and chromatic aberration.
- Blackout mechanics after excessive drinking, including teleportation to recovery zones.
- Size-based alcohol tolerance system for different character scales.
- Configurable drunkenness duration and blackout recovery time.
- A sober drink option to instantly remove drunkenness.
- Performance-optimized drink despawning.
- Highly customizable visual effects and respawn settings.
Tons of Drinks!
VR Showcase World
Experience Hash Studios Alcohol Drinks for yourself here: VRChat Showcase World
Requirements
- Unity Shader Graph: Required for this prefab.
- z3y Shader Graph Fork: This prefab uses the z3y Shader Graph package for some of the shaders. Follow the steps outlined in our Shader Graph Setup Guide to install and configure it.
You can learn how to set up your project beforehand at our project setup guide.
Installation Steps
1. Download and Import the Prefab
- Download Hash Studios Alcohol Drinks from our website.
- Import the prefab into your Unity project:
- In Unity, go to
Assets > Import Package > Custom Package...
- Locate and select the downloaded prefab package.
- Click
Import
to add the prefab to your project.
- In Unity, go to
2. Add the Prefab to Your World
- Drag Hash Studios Alcohol Drinks into your world from the Project window.
- Right-click on the prefab in the Hierarchy window and select
Prefab > Unpack Prefab
.
3. Configure the Prefab
The following table lists the configurable fields for Hash Studios Alcohol Drinks in the Unity Inspector:
Category | Field Name | Description | Default Value |
---|---|---|---|
General Settings | Drunk Duration | Time a player stays drunk before starting to recover. | 30.0 seconds |
Drunkenness Build-Up Time | Time it takes to reach a blackout after exceeding alcohol tolerance. | 10.0 seconds | |
Temporary Respawn Location | Quiet location where players are temporarily teleported during a blackout. | - | |
Player Respawn Point | Final location where players are returned after recovery. | - | |
Drink Sound Effect | Audio clip that plays when a player consumes a drink. | - | |
Blackout Settings | Fade Effect Duration | Time for the screen to fade to black during a blackout. | 15.0 seconds |
Respawn Delay | Time players remain fainted before respawning. | 5.0 seconds | |
Text Fade Time | Duration for on-screen text to disappear. | 3.0 seconds | |
Canvas Display Distance | Distance of UI elements from the player. | 2.5 | |
Customization Settings | Maximum Wave Frequency | Maximum frequency of the wavy screen effect at peak drunkenness. | 3.0 Hz |
Maximum Wave Amplitude | Intensity of the wavy effect at peak drunkenness. | 0.07 | |
Maximum Wave Speed | Speed of the wavy effect at peak drunkenness. | 0.2 | |
Maximum Blur Strength | Intensity of blur effect at peak intoxication. | 0.03 | |
Maximum Chromatic Aberration | Intensity of chromatic aberration at peak drunkenness. | 0.1 | |
Alcohol Tolerance Modifier | Multiplier adjusting alcohol tolerance based on character size. | 10 | |
Audio Effect Modifier | Multiplier adjusting sound effects based on drunkenness level. | 1.0 | |
Advanced Settings | Drink Spawn Location | Position where drinks appear when created. | - |
Sound Player | Location where drink-related sounds are played (e.g., pouring, drinking). | - | |
Drink Mixer Script | Custom script controlling drink mixing logic. | - |
4. Finalize Your Setup
- Place the spawn location for drinks, trash bins for disposal, and recovery zones.
- Test your scene to ensure that drink crafting, consumption, and effects behave as expected.
By following these steps, you can successfully integrate Hash Studios Alcohol Drinks into your VRChat world, providing a fun and interactive drinking simulation.
For more detailed information and resources, visit the Official Website or watch the YouTube Tutorial.