Description
Pve Mode Rust Plugin
This plugin does not have its own functionality, it’s an optional dependency of the plugins listed below for added benefits
This plugin is only used as an API for other plugins
Creates a configurable PVE mode out of compatible events and plugins
Supported Plugins
API
void EventAddPveMode(string shortname, JObject configJson, Vector3 position, float radius, HashSet<uint> crates, HashSet<uint> scientists, HashSet<uint> tanks, HashSet<ulong> owners, BasePlayer owner)
Creates a PVE event mode
- shortname – name of event
- configJson – PVE mode configuration (more details below in the description)
- position – event position on the map
- radius – radius of the event zone
- crates – list of all event crates (including locked crates)
- scientists – list of all NPCs active during event
- tanks – list of all Bradley events
- owners – list of all event owners (this parameter is necessary if you need to create an event zone several times)
- owner – event owner (this parameter is required if you need to run an event with the owner)
void EventRemovePveMode(string shortname, bool addCooldownOwners)
Removes PVE mode for the event
- shortname – name of event
- addCooldownOwners – should there be a cooldown for all event owners if this parameter is active in the PVE mode configuration? (this parameter is necessary if you need to create an event zone several times and issue a cooldown only in the last iteration)
void EventAddCrates(string shortname, HashSet<uint> crates)
Adds crates to the event if active in PVE mode
- shortname – name of event
- crates – list of event crates to be added (including locked crates)
void EventAddScientists(string shortname, HashSet<uint> scientists)
Adds NPCs to the event if active in PVE mode
- shortname – name of event
- scientists – list of added event NPCs to be added
void EventAddTanks(string shortname, HashSet<uint> tanks)
Adds Bradley to the event if active in PVE mode
- shortname – name of event
- tanks – list of added Bradleys event to be added
HashSet<ulong> GetEventOwners(string shortname)
Returns a list of SteamID for all of the Event Owners during the operation of an event
- shortname – name of event
ulong GetEventOwner(string shortname)
Returns the SteamID of the current Event Owner (if there is no Event Owner, it returns 0)
- shortname – name of event
void SetEventOwner(string shortname, ulong owner)
Sets the current Event Owner
- shortname – name of event
- owner – SteamID of the player
HashSet<string> GetEventsPlayer(ulong id)
Returns a list of event zones where the player is located
- id – SteamID of the player
Dictionary<string, double> GetTimesPlayer(ulong id)
Returns a list of events and the time when the player participated in the event the last time
- id – SteamID of the player
PVE Mode Configuration
- float Damage – The amount of damage that the player has to do to become the Event Owner
- HashSet<ScaleDamageConfig> ScaleDamage – Damage coefficients for calculation to become the Event Owner
- bool LootCrate – Can other players and teams loot the crates if not Event Owner or their team? [true/false]
- bool HackCrate – Can other players and teams hack locked crates if not Event Owner or their team? [true/false]
- bool LootNpc – Can other players and teams loot NPC corpses if not Event Owner or their team? [true/false]
- bool DamageNpc – Can other players and teams deal damage to the NPC if not Event Owner or their team? [true/false]
- bool DamageTank – Can other players and teams do damage to Bradley if not Event Owner or their team? [true/false]
- bool TargetNpc – Can an Npc attack other players and teams if not Event Owner or their team? [true/false]
- bool TargetTank – Can Bradley attack other players and teams if not Event Owner or their team? [true/false]
- bool CanEnter – Allow other players and teams to enter the Event Zone if not Event Owner or their team? [true/false]
- bool CanEnterCooldownPlayer – Allow a player who has an active cooldown as the Event Owner to enter the event zone? [true/false]
- int TimeExitOwner – The time that the Event Owner can leave the Event Zone and retain title [sec.]
- int AlertTime – The Warning time until Event Owner status will end [sec.]
- bool RestoreUponDeath – Prevent RestoreUponDeath plugin from functioning in the Event Zone? (Player will drop gun and inventory when in Event Zone) [true/false]
- double CooldownOwner – Cooldown timer for Event Owner until they can achieve the title again, after the end of an event where the player was its owner [sec.]
- int Darkening – Darkening of the dome (0 – disables the dome)
Example:
JObject config = new JObject
{
["Damage"] = 500f,
["ScaleDamage"] = new JArray
{
new JObject { ["Type"] = "NPC", ["Scale"] = 1f },
new JObject { ["Type"] = "Bradley", ["Scale"] = 2f }
},
["LootCrate"] = false,
["HackCrate"] = false,
["LootNpc"] = false,
["DamageNpc"] = false,
["DamageTank"] = false,
["TargetNpc"] = false,
["TargetTank"] = false,
["CanEnter"] = false,
["CanEnterCooldownPlayer"] = true,
["TimeExitOwner"] = 300,
["AlertTime"] = 60,
["RestoreUponDeath"] = true,
["CooldownOwner"] = 86400,
["Darkening"] = 12
};
Chat commands
EventsTime – shows the player a list of how much time has passed since participating in the event the last time
Console commands (RCON only)
ClearTimePveMode {steamid} – clears the list of the time when the player with SteamID ({steamid}) participated in the event the last time
My Discord: KpucTaJl#8923
Join the Mad Mappers Discord here!
Check out more of my work here!
Join the Lone.Design Discord here!
Only logged in customers who have purchased this product may leave a review.
Plugin FAQ – How do I use this .zip/.7z file I just purchased on my server?
• First, you want to unzip the file. You can do so by just double-clicking it to open, then drag the contents to the desired location (you may need to install an external unzipping software if you don’t already have one such as 7zip or winrar)
• Next you will find either a structure of folders or just the .cs file itself (it’s the actual plugin file itself).
• After that just install the .cs (plugin file) into your …/oxide/plugins/ folder where you will install plugins you ever need to.
Additionally, here’s a great video that easily covers adding a plugin to your server if you need! https://youtu.be/yWC_p97FhQA
• Installation is not included with any products on the site, however, if needed we may assist if you reach out to our support.
Currently all products on Lone.Design will be contained within a zipped file which is the .7z or .zip that you see. I believe windows 10 and up can unzip on its own without 3rd party tools, but in that case, if you’re unfamiliar with zipped files here are 2 programs I recommend to easily unzip zipped files.
Video On How to Zip and Unzip: https://youtu.be/Ep-L3PjBPCk (TechInsider Youtube Channel)
Zipping/Unzipping Tools
Winrar https://www.rarlab.com (I used to use for years, but works great!)
7zip https://www.7-zip.org/a/7z2107-x64.exe (the one I use currently)
mrsnake777 (verified owner) –
Just what was missing for events on PVE servers. Thanks to the developer for the quality plugins
Александр Жигин (verified owner) –
Это самые качественные и интересные плагины в расте. Я настоятельно рекомендую этого разработчика и его работы !!!!
hc4stillo (verified owner) –
Excelente plugin, al igual que el resto de todo los eventos que son compatible, todo estan activo y no tengo queja, siempre brindan ayuda y reparan rapido los errores que se encuentran, recomendado al 100%
Jbird (verified owner) –
✯✯✯✯✯
Xacku Mapping (verified owner) –
just 5 stars. the right thing for administrators of PVE servers
Kimmi999 (verified owner) –
These are the highest quality and most interesting plugins in growth. I highly recommend this developer and his work !!!!
rustedmaster.eu (verified owner) –
Must have for PVE server! Solves a bunch of problems with fair access to events for all players!