NRG AlcoEffect
A script that makes drinking alcohol on your server very realistic.
Last updated
A script that makes drinking alcohol on your server very realistic.
Last updated
In case of problems with removing the effect caused by other scripts use:
The AlcoEffect script introduces an alcohol drinking simulation system into the game, where the effects depend on the player's blood alcohol content (BAC), measured in promille. The script offers various mechanics related to alcohol that increase realism and interactions within the game. Below is a detailed description of the script's available functions.
Players can drink various alcoholic beverages that affect their blood alcohol content (BAC). Each drink has different effects, such as:
Alcohol level β Drinks vary in their impact on the body (e.g., beer has a lesser effect than vodka).
Notification β The player receives a message about the drink consumed (e.g., "You drank a beer").
Item β The alcoholic beverage is represented by an item (prop) that appears in the player's hands while drinking.
If the player consumes too much alcohol, driving vehicles becomes more challenging. The script introduces the following effects:
Difficulty controlling the vehicle.
Reaction delay while driving.
Increased randomness in vehicle movements, making maneuvering harder. This forces players to be cautious when their BAC is high.
At higher BAC levels, random falls, known as the ragdoll effect, may occur. This effect may cause the player's character to fall uncontrollably, adding realism and a humorous element to the game.
In the case of excessive alcohol consumption, the player may lose control over their character. This effect can result in random movements of the character, making it impossible to control precisely.
Players can use an item called a breathalyzer to measure their BAC. The breathalyzer is available through the targeting system, meaning only selected groups (e.g., paramedics) can use it to perform tests.
The script allows for a procedure to cleanse the body of alcohol (stomach pumping). This procedure is available to specific groups (e.g., paramedics) and enables the quick removal of alcohol from the player's body.
The script distinguishes four stages of intoxication:
π’ Tipsy β Light effects
π‘ Drunk β Noticeable difficulties
π΄ Very Drunk β Severe impairments
β« Extremely Drunk (Wasted) β The character is practically unusable
Each level introduces different effects: staggering, difficulty driving, falls, etc.
The script allows for extensive customization of many functions, so server administrators can tailor the script to their needs:
Ability to adjust alcohol levels for different drinks.
Flexibility in setting thresholds for effects like difficulty driving, ragdoll, or loss of control.
Configuration of the breathalyzer and body cleansing procedure, including deciding which groups can perform these actions.
The AlcoEffect script introduces realistic alcohol-related effects into the game, which can significantly impact gameplay, including new interactions between players related to alcohol consumption.