Skip to main content

Settings

  • DebugMode: bool - Enable additional debug messages.
  • AlcoholLevelFallOff Rate: float (0-1) - The rate at which the alcohol level decreases over time.
  • DrinkSound: AudioClip - Sound played when a drink is consumed.

Puke System

You can optionally enable random puking for your drinkers. This will make them puke after drinking a certain amount of alcohol. Upon puking, the drinker will lose a percentage of their current alcohol level.

  • PukeEnabled: bool - Enable the puke system.
  • PukeThreshold: float (0-1) - The alcohol level threshold at which puking can occur.
  • PukeChance: float (0-1) - The chance of puking after drinking.
  • PukeAlcoholLoss: float (0-1) - The percentage of alcohol level lost when puking.
  • PukeCooldown: float - The cooldown time (in seconds) between puking events.
  • PukeSound: AudioClip - Sound played when the drinker pukes.
  • PukeParticles: ParticleSystem - Particle effect played when the drinker pukes.
tip

You can use _Puke() to force a puke event on the localplayer via Udon. There is an example implementation using the "Toilet" prefab.

BlackOut System

You can enable the BlackOut system to make drinkers black out after reaching a certain alcohol level. When blacked out, drinkers screen will turn black and they will be teleported to a random point from a predefined list of locations.

  • BlackOutEnabled: bool - Enable the BlackOut system.
  • BlackOutThreshold: float (0-1) - The alcohol level threshold at which blacking out can occur.
  • BlackOutChance: float (0-1) - The chance of blacking out after drinking.
  • BlackOutCooldown: float - The cooldown time (in seconds) between blacking out events.
  • BlackOutPositions: Transform[] - An array of possible teleport locations for blacked out drinkers.

References

These are references used by the system, you shouldn't need to touch these unless you know exactly what you are doing.

  • BlackOutAnimator - Animator used for the black out effect.
  • PPV - Post Process Volume used for the drunk effect.