Skip to main content

Hash Studios Alcohol Drinks

warning

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.


warning

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.


Example GIF



Example GIF Example GIF


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!

Example GIF Example GIF Example GIF Example GIF Example GIF Example GIF Example GIF Example GIF Example GIF Example GIF Example GIF Example GIF Example GIF Example GIF Example GIF Example GIF


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

  1. Download Hash Studios Alcohol Drinks from our website.
  2. 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.

2. Add the Prefab to Your World

  1. Drag Hash Studios Alcohol Drinks into your world from the Project window.
  2. Right-click on the prefab in the Hierarchy window and select Prefab > Unpack Prefab.

3. Configure the Prefab

Example GIF Example GIF Example GIF Example GIF Example GIF

The following table lists the configurable fields for Hash Studios Alcohol Drinks in the Unity Inspector:

CategoryField NameDescriptionDefault Value
General SettingsDrunk DurationTime a player stays drunk before starting to recover.30.0 seconds
Drunkenness Build-Up TimeTime it takes to reach a blackout after exceeding alcohol tolerance.10.0 seconds
Temporary Respawn LocationQuiet location where players are temporarily teleported during a blackout.-
Player Respawn PointFinal location where players are returned after recovery.-
Drink Sound EffectAudio clip that plays when a player consumes a drink.-
Blackout SettingsFade Effect DurationTime for the screen to fade to black during a blackout.15.0 seconds
Respawn DelayTime players remain fainted before respawning.5.0 seconds
Text Fade TimeDuration for on-screen text to disappear.3.0 seconds
Canvas Display DistanceDistance of UI elements from the player.2.5
Customization SettingsMaximum Wave FrequencyMaximum frequency of the wavy screen effect at peak drunkenness.3.0 Hz
Maximum Wave AmplitudeIntensity of the wavy effect at peak drunkenness.0.07
Maximum Wave SpeedSpeed of the wavy effect at peak drunkenness.0.2
Maximum Blur StrengthIntensity of blur effect at peak intoxication.0.03
Maximum Chromatic AberrationIntensity of chromatic aberration at peak drunkenness.0.1
Alcohol Tolerance ModifierMultiplier adjusting alcohol tolerance based on character size.10
Audio Effect ModifierMultiplier adjusting sound effects based on drunkenness level.1.0
Advanced SettingsDrink Spawn LocationPosition where drinks appear when created.-
Sound PlayerLocation where drink-related sounds are played (e.g., pouring, drinking).-
Drink Mixer ScriptCustom script controlling drink mixing logic.-

4. Finalize Your Setup

  1. Place the spawn location for drinks, trash bins for disposal, and recovery zones.
  2. 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.