Pve Mode

$15.00

Sold by: KpucTaJl

Pve Mode – 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

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!

7 reviews for Pve Mode

  1. 5 out of 5

    mrsnake777 (verified owner)

    Just what was missing for events on PVE servers. Thanks to the developer for the quality plugins

  2. 5 out of 5

    Александр Жигин (verified owner)

    Это самые качественные и интересные плагины в расте. Я настоятельно рекомендую этого разработчика и его работы !!!!

  3. 5 out of 5

    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%

  4. 5 out of 5

    Jbird (verified owner)

    ✯✯✯✯✯

  5. 5 out of 5

    Xacku Mapping (verified owner)

    just 5 stars. the right thing for administrators of PVE servers

  6. 5 out of 5

    Kimmi999 (verified owner)

    These are the highest quality and most interesting plugins in growth. I highly recommend this developer and his work !!!!

  7. 5 out of 5

    rustedmaster.eu (verified owner)

    Must have for PVE server! Solves a bunch of problems with fair access to events for all players!


Only logged in customers who have purchased this product may leave a review.

Version 1.2.3 | Updated February 13, 2025
  • Added Added a new API - CanActionEventNoMessage
Version 1.2.2 | Updated October 8, 2024
  • Fixed Fixed a bug that caused NPCs not to attack Hosts in the new Ferry Terminal Event
  • Fixed Fixed a bug where players could enter the event area on a zipline
Version 1.2.1 | Updated July 6, 2024
  • Fixed Fixing the latest Rust update
Version 1.2.0 | Updated June 20, 2024
  • Fixed Fixed a bug where NPCs didn't shoot Scientist in the Arctic Base Event plugin
Version 1.1.9 | Updated March 10, 2024
  • Fixed Even more optimization of RAM usage
Version 1.1.8 | Updated March 9, 2024
  • Fixed Fixed NRE bug when killing Npcs from BetterNpc and BossMonster plugins
Version 1.1.7 | Updated March 8, 2024
  • Fixed Fixed high RAM consumption by the plugin
  • Updated It is necessary to clear the data file before installing the new version of the plugin
  • Updated It is necessary to update all events that use PveMode
Version 1.1.6 | Updated March 2, 2024
  • Fixed Fixed a bug where a patrol helicopter or Bradley was attacked with non-machine guns and damage was inflicted on the buildings of players who do not participate in the event
  • Fixed Fixes from Adem for JetPack
  • Updated A second optional argument has been added to the console command "ClearTimePveMode", which indicates the name of the event
  • Added Added the console command "ClearOwnerPveMode" to delete the owner of an active event
  • Added Added a new chat message for players who have entered the event area and they cannot become the owner of the event
  • Updated Now the "AlertTimerEvent" and "TimerStartEvent" messages will show the time in minutes. and sec. instead of just seconds. (don't forget to edit these lang messages accordingly)
  • Updated The "EventsTime" chat command has been redesigned, now this message can be edited via lang, and if the event is active, the time until the end of cooldown will be displayed for the player
Version 1.1.5 | Updated January 30, 2024
  • Fixed Fixed a bug where the main gun of the tank did not deal damage to the player
  • Fixed Added better interaction with the Jetpack plugin
Version 1.1.4 | Updated December 24, 2023
  • Fixed Fixed a conflict with the GasStationEvent plugin
Version 1.1.3 | Updated December 16, 2023
  • Fixed Fixed a bug with the helicopter
Version 1.1.2 | Updated December 12, 2023
  • Fixed Fixed a bug where the entity of the event could cause damage to an entity not the owner of the event
  • Added Added logging in the logs folder when a zone is created and when a zone is destroyed
  • Added Added a Hook when the owner appears at the event zone and a hook when the owner is cleared
  • Added Added the ability to add crate when Pve mode is running for an individual Npc
  • Added Added support for all turrets and API for adding event turrets
  • Added Added better support for TruePVE
Version 1.1.1 | Updated September 7, 2023
  • Added Plugin update for the September Rust update
Version 1.1.0 | Updated August 4, 2023
  • Added Added a new hook for events with a dynamic zone - EventAddCooldown
Version 1.0.9 | Updated June 3, 2023
  • Fixed Fixed a conflict with the GasStationEvent plugin
Version 1.0.8 | Updated May 4, 2023
  • Updated Updated for May Rust update
Version 1.0.7 | Updated February 15, 2023
  • Fixed NRE Fix
Version 1.0.6 | Updated January 22, 2023
  • Added added helicopter support
  • Added added support for JetPack and PogoStick plugins
Version 1.0.4 | Updated January 4, 2023
  • Added Added a new command in the chat for players - EventsTime. Shows how long ago the player participated in the event for the last time
  • Added Added API - GetEventsPlayer, which gives in the zone of which event the player is currently located
  • Added Added API - GetTimesPlayer, which gives a list of the time that has passed since the player's last participation in the event
Version 1.0.3 | Updated March 26, 2022
  • Fixed Fixed NRE error in IsTeam method
  • Added Added checks when the player comes out of the mount state inside the event zone
  • Added Added a parameter in the plugin configuration to ignore the administrator
  • Added Added a console command to clear the player's time (ClearTimePveMode {SteamID})
Version 1.0.2 | Updated March 20, 2022
  • Fixed Fixed NRE SetOwner
  • Added A new parameter has been added to the configuration that prohibits a player from entering the event zone if he is the owner of another event
  • Fixed Fixed a bug where NPCs shot at a player when the parameter was set in the configuration that they should not shoot (NpcSpawn needs to be updated)
Version 1.0.1 | Updated February 25, 2022
  • Added Added support for events

6 thoughts on "Pve Mode"

Leave a reply

Your email address will not be published. Required fields are marked *

  1. Having issues with this… Unsure if you were ever made aware. I reported this 12+ weeks ago

    – PVEMode does not allow administrators to loot backpacks of player killed NPC’s or event boxes – Video proof and configs already provided in madmappers discord ticket

    – PVEMode does not have the functionality to clear event owners, thus when players for no reason get kicked from their own events they have to wait while the timed event is running. This is also an issue when players get in over their heads, have to log out, etc.
    A /cleareventowner for admins would be great. Similar to how raidablebases has /rbe clearowner

    • Can you confirm that there are issues with admins looting after the recent updates? Double check the core PveMode config file to ensure admins are set to be ignored and let us know if you are still having issues.

      The owner clearing suggestion has been added to our notes.

  2. Is anyone else getting this after updating to 1.1.7? It’s happening when players kill a BetterNpc npc.

    Exception while calling NextTick callback (NullReferenceException: Object reference not set to an instance of an object)
    at Oxide.Plugins.PveMode+c__DisplayClass79_1.b__1 () [0x00010] in :0
    at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x00051] in :0

  3. Players seem to be losing ownership often. Can you please explain this config option.

    “The time to clear the information of the players’ damage to NPC after NPC has take the last damage [sec.]”: 60,

    What does this mean after 60 seconds someone else can damage 100 damage to armored train then someone can take the event? What should I set this to?

    • The config you are sharing is in the PveMode configuration correct? This is regarding NPCs when using them with PveMode. For example bosses from BossMonster and NPCs from BetterNpc. This also includes the event NPCs but there are also rules that might take precedence for the event itself.

      So if an NPC is being attacked, with 60 seconds as the timer, if the player stops attacking and does no damage for 60 seconds, then their damage against the NPC is cleared from calculations of who that NPC will be locked to. If consistent damage is done to an NPC with no break of 60 seconds or more, then whomever does the most damage will claim the body, unless overruled by the configuration otherwise if in an event.

      Depending on your event configuration for Event Owner, there might be something you need to look at there in an example like ArmoredTrain. There is an entire section to configure the nature of the event area that would take place wherever the train is stopped. There are several options you can customize such as total damage done at the event, how that adds up, what the rewards are, and what damage is allowed in different directions.

      Let me know if you have any issues with any of that. 60 seconds is a good time for the NPC timer but you may want to increase it so that it is locked to a person or team that do a lot of damage, giving them more time to resume damage if something stops them or pauses their progress.

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)

Product Enquiry

Please Login to make enquiry about this product