Supported Games
- Clans0.*
- Economics3.*
- Friends3.*
- Zone Manager3.*
Life Support stops players from dying. When a player with Life Support turned on takes a fatal hit, they are healed instead of going down. They keep their gear and the item in their hands, and skip the corpse run. You decide whether saves cost money, who gets them, how often, and where they work.
A small heart icon next to the hotbar shows each player at a glance whether Life Support will save them.
Updated for the current Rust. Works on both Oxide and Carbon.
Features
Status icon. A heart icon to the left of the hotbar, styled like Rust's own status icons:
- Green: on, and the next save will work.
- Amber: on, but a save would fail right now (on cooldown, can't afford it, out of saves for the wipe, or in a blocked zone or base).
- Gray: off.
It updates the moment a player types
/ls, and is hidden for players without permission.Free or paid saves. Charge in Economics, Server Rewards or Scrap, or make saves free.
Backup currency. If a player can't pay with the main currency, Life Support can charge a second one instead, with its own cost multiplier.
Permission tiers. Give each tier (default, VIP, admin or any group you add) its own cost, cooldown and number of saves per wipe.
Cooldowns, save limits and rising costs. Limit how often players can be saved, cap saves per wipe, or make each save cost more than the last.
A real recovery. Bleeding, poison, radiation, drowning, hunger and thirst are cleared on a save, so players aren't killed again a few seconds later and charged twice. You choose how much health they come back with.
Keeps the held item. The weapon in a player's hands doesn't drop when they're saved.
PvP option. Choose whether players killed by other players can be saved.
F1 kill still works. Players stuck under a rock can still respawn.
Base mode. Make Life Support work only inside a player's own base, or never inside it. Teammates', Friends' and Clans members' bases can count as their own.
Zone support. Turn Life Support off in Raidable Bases and Dangerous Treasures event zones. With Zone Manager, either turn it off in the zones you list or allow it only in those zones.
Protect sleeping players (optional).
Turn on automatically (optional). Players with permission are protected without typing a command, and can still switch it off.
In-game help.
/ls helpshows each player the commands they can use. VIP perks are listed for everyone (grayed out for non-VIP players), and admin commands are shown only to admins. The VIP perks are read from your config, so they always match your settings.On-screen notices when a player is saved, or when a save fails and why.
Wipe aware. Save counts reset each wipe, and you can turn Life Support off for everyone on wipe.
Translations: English, Russian and Spanish (the new help screen is English for now).
Developer hooks, including
CanUseLifeSupport, so event and duel plugins can block saves.
Permissions
lifesupport.default-- Can use Life Support at the default tierlifesupport.vip-- Can use Life Support at the VIP tierlifesupport.admin-- Can use Life Support at the admin tierlifesupport.blocked-- Can't use Life Support, even with another permissionlifesupport.zones-- Can use/lsZonesto manage the Zone Manager zone list
You can add, remove or rename tiers in the config. If a player has more than one tier, the cheapest one is used.
Commands
/lsor/lifesupport-- Turn Life Support on or off/ls status-- Show whether it's on, the cost of your next save, your balance, saves used and any cooldown/ls help-- Show the commands you can use/lsZones add <zone ID...>-- Add Zone Manager zones to the list/lsZones remove <zone ID...>-- Remove zones from the list/lsZones list-- Show the list/lsZones clear-- Clear the list
Whether the zone list turns Life Support off or allows it only in those zones depends on the "Zone Manager mode" setting.
Configuration
Default configuration:
{
"Currency (None, ServerRewards, Economics, Scrap)": "None",
"Backup currency, used when the player can't pay with the main one (None, ServerRewards, Economics, Scrap)": "None",
"Backup currency cost multiplier (1 = same cost)": 1.0,
"Turn on automatically for players with permission (true/false)": false,
"Use Zone Manager (true/false)": false,
"Zone Manager mode (Exclude = off in listed zones, Include = only in listed zones)": "Exclude",
"Disable LifeSupport in RaidableBases Zones (true/false)": false,
"Disable LifeSupport in DangerousTreasures Zones (true/false)": false,
"Base mode (Off, OnlyInBase, NotInBase)": "Off",
"Base mode - teammates' bases count as own base (true/false)": true,
"Base mode - Friends plugin friends' bases count as own base (true/false)": false,
"Base mode - Clans plugin clan members' bases count as own base (true/false)": false,
"Save players killed by other players (true/false)": true,
"Let F1 kill / suicide through (true/false)": true,
"Protect sleeping players (true/false)": false,
"Keep active item when saved (true/false)": true,
"Health after being saved (1-100)": 100.0,
"Clear bleeding, poison, radiation, drowning, hunger and thirst when saved (true/false)": true,
"Cooldown between saves in seconds (0 = none)": 0.0,
"Max saves per player per wipe (0 = unlimited)": 0,
"Cost increase for each save this wipe (0 = flat cost)": 0,
"Turn LifeSupport off for everyone on wipe (true/false)": false,
"Show on-screen notices (true/false)": true,
"Show status icon below the hotbar (true/false)": true,
"Enable Log file (true/false)": true,
"Log output to console (true/false)": true,
"Permissions and cost": [
{
"Permission": "lifesupport.default",
"Cost": 400,
"Cooldown in seconds (-1 = use main setting)": -1.0,
"Max saves per wipe (-1 = use main setting, 0 = unlimited)": -1
},
{
"Permission": "lifesupport.vip",
"Cost": 200,
"Cooldown in seconds (-1 = use main setting)": -1.0,
"Max saves per wipe (-1 = use main setting, 0 = unlimited)": -1
},
{
"Permission": "lifesupport.admin",
"Cost": 0,
"Cooldown in seconds (-1 = use main setting)": -1.0,
"Max saves per wipe (-1 = use main setting, 0 = unlimited)": -1
}
]
}
Notes
- With the currency set to
None, every save is free and the costs are ignored. - Each tier's cooldown and save limit override the main settings. Use
-1for a tier to follow the main setting. - Updating from 1.x: your old config is upgraded automatically. If "Use Server Rewards" was on, the currency is set to ServerRewards.
Localization
English, Russian and Spanish are included. Edit the messages or add your own language in the lang folder.
For Developers
Hooks
object CanUseLifeSupport(BasePlayer player)
Called before a save, and when the status icon checks whether a save would work. Return false (or any non-null value other than true) to stop Life Support from saving the player, for example during a duel or an arena event.
object OnLifeSupportSavingLife(BasePlayer player)
Called just before the player is saved and charged. Return a non-null value to cancel the save.
void OnLifeSupportSavedLife(BasePlayer player, int cost)
Called after a player has been saved. cost is the amount charged (0 if free).
Credits
Written and maintained by OG61.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

