About Life Support
Tired of dying from "bots-cheaters" shots? Can't handle Bradley / Heli? Use life support to stay alive! If enabled and player has needed amount of currency - life support will heal player to maximum health instead of being dead. The most valuable thing is you keep your items and don't need to go and find your dead body. Also it can be very handy in the battle with very hard opponents (like bot-boss, Higher tier Bradley/Heli etc.)
This plugin supports both Economics and ServerRewards plugins. You may set price for both of them or just any you like. If both prices are set - plugin will try to use RP's first and if there will be not enough - it will check for Coins.
After you set everything up in your config file and give all permissions to all players/groups plugin will track for changes automatically, so if some player will be added to VIP for example or upgraded to Elite plugin will apply changes automatically without need to reload plugin. If you will edit config file you still will need to reload plugin.
By default, life support is allowed on the entire map. If you want to restrict the use of life support, you must enable the desired options in the config file.
Using cupboard so as ZoneManager zones are supported in 2 different modes:
- Include mode will only allow players to use life support inside specific zones/cupboard range.
- Exclude mode will prevent players from using life support inside specific zones/cupboard range.
When cupboard range is checked, team / friend / clan members are checked automatically if enabled in config file and the required plugin is installed. It means members of team / friend / clan cupboard = players cupboard. This is handy if you want to strict players to use life support only inside cupboard range or you want to allow use it everywhere except cupboard owned by other players.
## Permissions
-
lifesupport.blocked -- Prevents player from using plugin (Has the highest priority among other permissions)
More permissions with costs and cooldown are created in config file (see Configuration section below)
## Commands
This plugin provides both chat and console commands using the same syntax. When using a command in chat, prefix it with a forward slash: `/`
- /ls | /lifesupport - Toggle using of life support
## Configuration
- You can remove unnecessary default permissions and also add as many permissions as you want. For cases where the player has more than one, the permission with the higher priority will be applied.
- Enable / disable notifications / logging
- Set SteamIDIcon steamid to set desired account icon in chat messages
- Set commands list (default are "ls", "lifesupport")
- Enable / disable modes/plugins support
Quote{ "Reset Cooldowns On Wipe": true, "Prevent DropActiveItem": false, "Prevent 'Wound' state": false, "Prevent Suicide": false, "Exclude offline players": false, "Exclude players in duels": false, "Exclude players in Raidable Bases Zones": false, "Exclude players in Dangerous Treasures Zones": false, "Use Clans": false, "Use Friends": false, "Use Teams": false, "Use cupboard": false, "Cupboard include mode (true = include mode / false = exclude mode)": false, "Use ZoneManager": false, "ZoneManager include mode (true = include mode / false = exclude mode)": false, "ZoneIDs": [ "12345", "54321" ], "Enable notifications in chat": false, "Chat steamID icon": 0, "Commands list": [ "ls", "lifesupport" ], "Permissions": [ { "Permission": "default", "Priority": 10, "Stop Bleeding": false, "Server Rewards cost": 100, "Economics cost": 1000.0, "Cooldown duration (seconds)": 900 }, { "Permission": "vip", "Priority": 20, "Stop Bleeding": true, "Server Rewards cost": 50, "Economics cost": 500.0, "Cooldown duration (seconds)": 600 }, { "Permission": "elite", "Priority": 30, "Stop Bleeding": true, "Server Rewards cost": 25, "Economics cost": 250.0, "Cooldown duration (seconds)": 300 }, { "Permission": "free", "Priority": 40, "Stop Bleeding": true, "Server Rewards cost": 0, "Economics cost": 0.0, "Cooldown duration (seconds)": 0 } ], "Log Level (Debug, Info, Warning, Error, Off)": "Off" }
## Localization
- Plugins phrases are available on 3 languages out of the box: English, Russian and Ukrainian
{ "Error.NoPermission": "You do not have permission to use this command!", "Format.Coins": "Coins", "Format.Disabled": "<color=#B22222>Disabled</color>", "Format.Enabled": "<color=#228B22>Enabled</color>", "Format.Free": "free", "Format.Prefix": "<color=#00FF00>[LifeSupport]</color>: ", "Format.RP": "RP", "Info.LifeSaved": "Your life saved. Cost = <color=#FFA500>{0} {1}</color>", "Info.LifeSupport": "LifeSupport is now {0}" }
## API
### Developer Hooks
CanUseLifeSupport
Called when a player is about to die (or get into wounded state if enabled in options). Returning a non-null value (true is default) will prevent life support activation
object CanUseLifeSupport(BasePlayer player)
Example of hook usage to prevent player from life saving
private object CanUseLifeSupport(BasePlayer player)
{
if (playerList.ContainsKey(player.userID))
{
return true;
}
return null;
}
There is a free version on uMod, why do you even need this plugin?
- First of all, this plugin was designed to be efficient and performant. It uses unique caching system that should not consume no additional server resources
- Much more options and plugins native support
- Any plugin support will be added if requested