Better Healing

Better Healing 1.0.0

Sign in to download
Change how food and medical items affect players
This plugin lets you override the default healing and metabolism effects of any consumable or medical item.



Configuration

JSON:
{
  "Version": "1.0.0",
  "Items": {
    "bandage": {
      "Instant Health": 5.0,
      "Health Over Time": 0.0,
      "Calories": 0.0,
      "Hydration": 0.0,
      "Poison (positive = adds, negative = removes)": -2.0,
      "Radiation (positive = adds, negative = removes)": 0.0
    },
    "syringe.medical": {
      "Instant Health": 15.0,
      "Health Over Time": 20.0,
      "Calories": 0.0,
      "Hydration": 0.0,
      "Poison (positive = adds, negative = removes)": -5.0,
      "Radiation (positive = adds, negative = removes)": -10.0
    },
    "largemedkit": {
      "Instant Health": 0.0,
      "Health Over Time": 100.0,
      "Calories": 0.0,
      "Hydration": 0.0,
      "Poison (positive = adds, negative = removes)": -10.0,
      "Radiation (positive = adds, negative = removes)": 0.0
    },
    "pumpkin": {
      "Instant Health": 0.0,
      "Health Over Time": 10.0,
      "Calories": 100.0,
      "Hydration": 30.0,
      "Poison (positive = adds, negative = removes)": 0.0,
      "Radiation (positive = adds, negative = removes)": 0.0
    },
    "corn": {
      "Instant Health": 0.0,
      "Health Over Time": 6.0,
      "Calories": 75.0,
      "Hydration": 10.0,
      "Poison (positive = adds, negative = removes)": 0.0,
      "Radiation (positive = adds, negative = removes)": 0.0
    },
    "mushroom": {
      "Instant Health": 3.0,
      "Health Over Time": 0.0,
      "Calories": 15.0,
      "Hydration": 5.0,
      "Poison (positive = adds, negative = removes)": 0.0,
      "Radiation (positive = adds, negative = removes)": 0.0
    },
    "apple": {
      "Instant Health": 2.0,
      "Health Over Time": 0.0,
      "Calories": 30.0,
      "Hydration": 15.0,
      "Poison (positive = adds, negative = removes)": 0.0,
      "Radiation (positive = adds, negative = removes)": 0.0
    }
  }
}
  • Items - A dictionary of item shortnames and their custom effects. Each key is the shortname of a consumable or medical item (e.g. pumpkin, syringe.medical). You can add or remove any items here to control what stats they apply. Only items listed here will be overridden.
Per-item options:
  • Instant Health - The amount of HP instantly restored to the player when the item is used.
  • Health Over Time - The total HP restored slowly over time. This simulates a regeneration effect. Higher values restore more health over several seconds.
  • Calories - How much food (hunger) is restored or removed. Positive values feed the player; negative values reduce the food bar.
  • Hydration - How much water is restored or drained. Affects thirst. Positive values hydrate the player, negative values dehydrate them.
  • Poison- Controls poisoning.
    • Positive values add poison to the player.
    • Negative values remove poison.
      Useful for spoiled or raw items, or for letting medical items clear poison.
  • Radiation- Controls radiation poisoning.
    • Positive values give radiation damage.
    • Negative values reduce radiation.
      Can be used to simulate cleansing items or harmful drinks.
  • Like
Reactions: stingz
Author
VisEntities
Downloads
7
First release
Last update

Ratings

0.00 star(s) 0 reviews

Also by VisEntities

Back
Top
Chat commands start with a /, while console commands can be entered directly in the F1 console or server console. Use find <keyword> in console to search for available commands related to the plugin. Parameters in < > are required, while [ ] are optional.
This plugin uses Oxide's permission system. Grant or revoke permissions using oxide.grant and oxide.revoke. You can assign them to individual players or groups using their Steam id or group name.
Settings are stored in the config file found under the config/ directory. You can edit this file manually, then reload the plugin to apply your changes.
Persistent data is saved in the data/ directory. This includes things like saved settings, usage stats, or player progress depending on the plugin. Deleting a data file will reset stored progress or customizations.
Language files are located in the lang/ folder. To translate messages, copy the en.json file into your target language folder (e.g. fr, de) and edit the values. Reload the plugin after changes to apply new messages.
This section lists public methods exposed by the plugin for use in other plugins. You can call these via the CallHook method. Ensure the plugin is loaded before calling its API to avoid null reference errors.
These are custom hooks that other plugins can listen for. Simply define a method with the same name and expected parameters in your plugin to handle the event. Hooks are triggered at key moments and are useful for extending or reacting to plugin behavior.
These hooks are injected into the game's code using Harmony. They let the plugin run code at key points in the game's internal logic. You can return values to block or modify behavior. Use with caution — these are powerful and can affect core mechanics.
Cart