Real PvE
Plugin for Real PvE servers, featuring damage prevention, anti-griefing measures, customizable PvP zones, an automatic loot queue in radtowns and raid zones, and much more.
codefling.com
Plugin for Real PvE servers, featuring damage prevention, anti-griefing measures, customizable PvP zones, an automatic loot queue in radtowns and raid zones, and much more.
- The ability to set "server.pve" to "true", which allows the server to have a "PvE" flag;
- Damage from NPC's are enabled when server.pve is true;
- The ability to inflict damage to one's own structures with "server.pve true";
- The ability to ignore Hostile depending on the zone(PvE/PvP) ;
- The ability to destroy(including external walls) or rotate one's structures without any time constraints;
- The ability to toggle the gather resource restriction in someone else's Building Privileges;
- No one, except the owner or their friends, will be able to open their loot containers (chests, storages, bodies, etc.);
- Administrators can bypass loot restrictions;
- The ability to schedule the killing of players if they disconnect within someone else's Building Privilege;
- Disabling backpack and active item drop upon death, even if backpack is full;
- The ability to modify the items given at spawn on the beach;
- The ability to create an unlimited number of custom permissions;
- The ability to allow players to bypass the queue;
- The ability to set limits on sleeping bags, shelters and auto turrets for each permission;
- The ability to set a multiplier for the prices of monuments and events for each permission;
- The ability to customize the price and amount of vehicles for each of your custom permissions;
- The ability to assign vehicles to each player;
- The ability to customize the assigned price and available amount of vehicles for each of your custom permissions;
- An assigned vehicle can't be damaged, looted or pushed by other players, but it can be pushed if it is within someone else's Building Privilege;
- The ability to loot monuments through a queue system;
- The ability to configure monuments, setting their looting price and time, and adjusting status bars for each monument;
- The ability to acquire the privilege to loot events (helicopters, bradleys, and raidable bases) through a purchase;
- The ability to customize the price of each event types and loot attempts (lives);
- NPCs only aggress against players who are looting monuments, events or raidable bases;
- Only players who are looting monuments, events or raidable bases can inflict damage to NPCs;
- RaidableBases are protected from griefing(no damage, no loot and etc). Only the owner can interact with the raid;
- Neutral RaidableBases can be purchased;
- Prices for purchasing neutral raids are configurable for each difficulty level;
- Configurable raid limits (currently available) along with discount multipliers for purchases, for each permission.
{
"List of permissions. NOTE: The first permission will be used by default for those who do not have any permissions.": [
{
"Permission Name": "realpve.default",
"Bypass Queue": false,
"Limit of beds": 15,
"Limit of shelters": 1,
"Limit of auto turrets": 12,
"Seconds that will be skipped when opening HackableLockedCrate": 0.0,
"Monuments price multiplier": 1.0,
"Events price multiplier": 1.0,
"Limit of RaidableBases(at the time)": 1,
"RaidableBases price multiplier": 1.0,
"Vehicles settings": {
"Horse": {
"Limit": 1,
"Price": 10.0
},
"Bike": {
"Limit": 1,
"Price": 5.0
},
"MotorBike": {
"Limit": 1,
"Price": 20.0
},
"Car": {
"Limit": 1,
"Price": 25.0
},
...
}
},
{
"Permission Name": "realpve.vip",
"Bypass Queue": true,
"Limit of beds": 20,
"Limit of shelters": 2,
"Limit of auto turrets": 15,
"Seconds that will be skipped when opening HackableLockedCrate": 450.0,
"Monuments price multiplier": 0.9,
"Events price multiplier": 0.9,
"Limit of RaidableBases(at the time)": 2,
"RaidableBases price multiplier": 0.9,
"Vehicles settings": {
"Horse": {
"Limit": 5,
"Price": 9.0
},
"Bike": {
"Limit": 5,
"Price": 4.5
},
"MotorBike": {
"Limit": 5,
"Price": 18.0
},
"Car": {
"Limit": 5,
"Price": 22.5
},
...
}
}
],
"Version": {
"Major": 0,
"Minor": 1,
"Patch": 1
}
}
{
"Chat command": "realpve",
"Chat admin command": "adminpve",
"Is it worth enabling GameTips for messages?": true,
"Is it worth using Notify plugins for messages instead of the vanilla UI?": false,
"Is it worth forcibly implementing PvE for a server?": true,
"Is it worth forcing the tutorial mode support?": true,
"Is it worth rechecking the limits when removing permissions?": true,
"Is it worth preventing death on logout in safe zones?": true,
"Entities spawned by the server allowed to be looted in someone else's building privilege zone(None, Wood, Ore, Flesh, Collectible, All)": "All",
"Is it worth forcibly blocking damage from the patrol helicopter to building blocks and deployables?": false,
"Is it worth preventing players from handcuffing others?": true,
"Is it worth assigning portals(Halloween and Christmas) to the first player?": true,
"Is it worth preventing a backpack from dropping upon player death?": true,
"Is it worth preventing damage to the laptop of the Hackable Crate?": true,
"Is it worth removing the penalties for recyclers in safe zones?": true,
"Is it worth allowing all players to pick up items dropped by others? If enabled, personal settings will be ignored": false,
"Is it worth protecting sleeping players from animals?": true,
"Is it worth allowing players to loot banned players items?": false,
"Specify the regular message type for notify": 0,
"Specify the warning message type for notify": 1,
"The format that will be used for prices": "${0}",
"Vehicles - Time in seconds to display the marker when searching for a vehicle. A value of 0 disables the marker": 15.0,
"Anti-Sleeper - Time in seconds after which a player will be killed if they disconnect while inside someone else's Building Privilege. Set to 0 to disable": 1200.0,
"Is it worth enabling support for the 'Npc Random Raids' plugin?": true,
"List of language keys for creating language files(excluding ru)": [
"en"
],
"Settings id for the admin loot status bar": "admin_loot",
"Is friendly fire enabled by default when creating a new team?": false,
"PvP - Is it worth adding map markers for PvP zones?": true,
"PvP - Name of the map maker": "PvP Zone!",
"PvP - Settings id for the status bar": "pvp",
"PvP - Settings id for the progress status bar": "pvp",
"Wipe ID": null,
"Version": {
"Major": 0,
"Minor": 1,
"Patch": 24
}
}
"ferry_terminal_1": {
"Type(This parameter is just a hint. Changes won’t have any effect)": "RadTown",
"Is it worth displaying the suffix(if any) in the monument's name?": true,
"Is it worth notifying all players about the occupation/release of the monument?": true,
"The cost for the right to loot the monument. A value of 0 makes the monument free": 15.0,
"The time in seconds(1-3600) given for looting the monument": 900,
"The time in seconds(1-15) given to make a decision to purchase the monument": 5.0,
"Map marker display mode: 0 - disabled, 1 - enabled, 2 - enabled during PvP mode": 1,
"Is it worth creating a circle in the map marker?": true,
"PvP - Is PvP enabled at this monument? If so, players will be able to kill each other and loot will be publicly accessible": false,
"PvP - The time in seconds(0-60) during which the player retains PvP mode after leaving the PvP monument": 10.0,
"Is it worth using a progress bar for bars with a counter?": true,
"Settings for the status bar": {
"Order": 10,
"Height": 26,
"Main_Color(Hex or RGBA)": "#FFBF99",
"Main_Transparency": 0.8,
"Main_Material": "",
"Image_Url": "
"Image_Local(Leave empty to use Image_Url)": "RealPVE_ferry_terminal_1",
"Image_Sprite(Leave empty to use Image_Local or Image_Url)": "",
"Image_IsRawImage": false,
"Image_Color(Hex or RGBA)": "#FFDCB6",
"Image_Transparency": 1.0,
"Is it worth enabling an outline for the image?": false,
"Image_Outline_Color(Hex or RGBA)": "0.1 0.3 0.8 0.9",
"Image_Outline_Transparency": 0.0,
"Image_Outline_Distance": "0.75 0.75",
"Text_Size": 12,
"Text_Color(Hex or RGBA)": "1 1 1 1",
"Text_Font( "RobotoCondensed-Bold.ttf",
"Is it worth enabling an outline for the text?": false,
"Text_Outline_Color(Hex or RGBA)": "#000000",
"Text_Outline_Transparency": 1.0,
"Text_Outline_Distance": "0.75 0.75",
"SubText_Size": 12,
"SubText_Color(Hex or RGBA)": "1 1 1 1",
"SubText_Font": "RobotoCondensed-Bold.ttf",
"Is it worth enabling an outline for the sub text?": false,
"SubText_Outline_Color(Hex or RGBA)": "0.5 0.6 0.7 0.5",
"SubText_Outline_Transparency": 0.0,
"SubText_Outline_Distance": "0.75 0.75"
},
"Settings for the progress status bar": {
"Main_Color(Hex or RGBA)": "1 1 1 0.15",
"Main_Transparency": 0.15,
"Progress_Reverse": true,
"Progress_Color": "#FFBF99",
"Progress_Transparency": 0.7,
"Progress_OffsetMin": "0 0",
"Progress_OffsetMax": "0 0"
}
}
"List of tracked types of monuments": [
"RadTown",
"RadTownWater",
"RadTownSmall",
"TunnelStation",
"Custom"
]
{
"Is it worth enabling forced auto-buy for vanilla events where the final price is greater than 0?": false,
"Settings for the PatrolHelicopter events": {
"IsEnabled": true,
"Time in seconds (1-15) given to respond for purchasing this event. Note: This is shown to everyone who deals damage, and the first person to buy it will claim it": 5.0,
"Is it worth removing fire from crates?": true,
"The price to claim the event. A value of 0 means it's free": 50.0,
"The number of deaths after which the event becomes public. A value of 0 disables the limit": 5,
"The time in seconds for which the event is locked to the player. A value of 0 disables the time limit": 1800.0
},
"Settings for the BradleyAPC events": {
"IsEnabled": true,
"Time in seconds (1-15) given to respond for purchasing this event. Note: This is shown to everyone who deals damage, and the first person to buy it will claim it": 5.0,
"Is it worth removing fire from crates?": true,
"The price to claim the event. A value of 0 means it's free": 50.0,
"The number of deaths after which the event becomes public. A value of 0 disables the limit": 5,
"The time in seconds for which the event is locked to the player. A value of 0 disables the time limit": 1800.0
},
"Version": {
"Major": 0,
"Minor": 1,
"Patch": 0
}
}
"List of items for the main inventory": [
{
"ShortName": "note",
"Slot": 0,
"Amount": 1,
"SkinID": 0,
"Text": "MsgNoteText"
}
]
[PluginReference]
private Plugin RealPVE;
Interface.CallHook("OnPlayerEnterPVP", player, "*Your unique zone identifier*");//Calling the OnPlayerEnterPVP hook to tell PVE plugins that the player needs to be added to the specified PVP zone.
Interface.CallHook("OnPlayerExitPVP", player, "*Your unique zone identifier*", 10f);//Calling the OnPlayerExitPVP hook to tell PVE plugins that the player needs to be removed from the specified PVP zone, with the pvpDelay(10 seconds) specified if the player no longer has any active PVP zones.
Interface.CallHook("OnEntityEnterPVP", entity, "*Your unique zone identifier*");//Calling the OnEntityEnterPVP hook to tell PVE plugins that the entity needs to be added to the specified PVP zone.
Interface.CallHook("OnEntityExitPVP", entity, "*Your unique zone identifier*", 10f);//Calling the OnEntityExitPVP hook to tell PVE plugins that the entity needs to be removed from the specified PVP zone, with the pvpDelay(10 seconds) specified if the entity no longer has any active PVP zones.
Interface.CallHook("CreatePVPMapMarker", "*Your unique zone identifier*", pos, 25f, "ATTENTION! This is a PVP zone!");//Calling the CreatePVPMapMarker hook to tell PVE plugins to create a map marker for the specified zone, at the specified position with the given radius, but without specifying a parent entity.
Interface.CallHook("DeletePVPMapMarker", "*Your unique zone identifier*");//Calling the DeletePVPMapMarker hook to tell PVE plugins to delete a map marker for the specified zone.
object OnPlayerPVPDelay(BasePlayer player, float pvpDelay, string zoneID)
{
Puts($"Attempting to set a PvP delay of {pvpDelay} seconds for player {player.displayName} in zone {zoneID}!");
if (zoneID == "*Your unique zone identifier*")
{
return 15f;//Overriding the values for pvpDelay
}
return null;//Leave unchanged
}
void OnPlayerPVPDelayed(BasePlayer player, float pvpDelay, string zoneID)
{
Puts($"A PvP delay of {pvpDelay} seconds has been set for player {player.displayName} in zone {zoneID}!");
}
void OnPlayerPVPDelayRemoved(BasePlayer player)
{
Puts($"PVP delay has been removed for player {player.displayName} as they entered a PVP zone!");
}
object OnZoneStatusText(BasePlayer player, string zoneID)
{
Puts($"Text for the status bar is required for zone {zoneID}");
if (zoneID == "*Your unique zone identifier*")
{
return lang.GetMessage("*langKey*", this, player.UserIDString);//<string>Overriding the value for the status bar text
}
return null;//Leave unchanged
}
object CanRedeemKit(BasePlayer player)
{
Puts($"Attempting to give the kit to player {player.displayName}!");
if (player.IsAdmin)
{
return false;//Cancel the action
}
return null;//Leave unchanged
}
