Mighty3z's Wishlist
-
Heli Signals
Heli Signals allows players with permission to call an Attack Helicopter to their location with a custom Supply Signal, where it will engage players and patrol, allowing players to fight it to win the valuable Heli crates.
The plugin comes with 8 default heli profiles, Easy, Medium, Hard and Elite, with a duplicate profile of each set up for calling multiple helis at once for each tier. In addition there is also 2 Wave Heli profiles, which will call in a wave of different helis one after the other. Each default profile has it's own custom supply signal skin (below). Server owners can add as many profiles as they like in the config by copying and pasting an existing profile within the config and editing to suit. This may require the server owner to create their own custom skin for the inventory item.
If you are setting up Multi heli signals, set the global and player limit in the config accordingly to accommodate higher numbers of helicopters per player.
There is also an option to have a BotReSpawn profile spawn at the crash site, just set the BotReSpawn profile name in the config.
IMPORTANT:
Each heli profile or wave profile in the config MUST have its own unique name and skin ID, otherwise you will have issues.
NOTE ABOUT SHOPS:
The profile name in the config should match the Custom Supply Signal name which the shop gives the player. The Helicopter Name is separate and can be set independently from the Signal item. Also, when giving players items from shop plugins, if available, I always recommend adding the item to the shop using custom name, skinID etc, rather than the console command, but either will work.
NOTE ABOUT DEEP SEA:
There are config options to allow or disallow calling a Heli Signal while in the Deep Sea. There is also a config option to retire a players active Heli Signals if they teleport to Deep Sea. If you allow players to teleport to Deep Sea with active helis and you have return to player set to true, the heli will eventually (after a good few minutes of flying) reach the players location in the Deep Sea.
Plugin default Supply Signal Skin ID's to add items to various shops, loot plugins, kits etc are:
Heli Signal (Easy) : 2920175997
Heli Signal (Medium) : 2920176079
Heli Signal (Hard) : 2920176050
Heli Signal (Elite) : 2920176024
Heli Signal (Expert) : 3099117081
Heli Signal (Nightmare) : 3099117372
Multi Heli (Easy) : 3083234542
Multi Heli (Medium) : 3083234833
Multi Heli (Hard) : 3083234755
Multi Heli (Elite) : 3083234647
Multi Heli (Expert) : 3099124338
Multi Heli (Nightmare) : 3099124426
Heli Wave Signal : 3099117224
Heli Wave Signal (Normal): 3104667036
Heli Wave Signal (Hard): 3104666951
Default Permissions:
helisignals.admin (to use give|hsclearcd command) helisignals.buy (to use /hsbuy command) helisignals.bypasscooldown helisignals.easy helisignals.medium helisignals.hard helisignals.elite helisignals.easy_multi helisignals.medium_multi helisignals.hard_multi helisignals.elite_multi helisignals.wave_normal helisignals.wave_hard Please note: Permissions above are with default config, permission for each Heli profile can be customised in the config.
Commands (Prefix with / to use in game):
hsgive <Profile ShortName> <Steam64ID> <Amount> hsbuy list hsbuy <Profile Shortname> hsreport (Get details of all active helis) hsretire (Retire all a player or their teams called Helis, no refunds) hsclearcd (clear all cooldowns) hsclearcd <SteamID|Name> (clear cooldown for player) (Buy and Retire command customisable in config)
Please note correct usage for Supply Signal name and Helicopter display name. These values CAN be different if you wish:
Default Config:
Default has Heli Signal (Easy) - Elite
The skins for Expert adn Nightmare can be found above for you to create your own profiles if you need those.
Loot Options:
Use the loot item example entries in the default config to create custom loot tables for crates.
How to Add Loot Table Items (Example):
For Other Developers:
The following hook is available to use in your plugins to check custom Supply Signals or Patrol Helicopters to avoid conflict with your plugins:
object IsHeliSignalObject(ulong skinID)
This will return true if the item is a Bradley Drop item/entity, or null if not.
Call it directly without referencing the plugin:
if (Interface.Call("IsHeliSignalObject", skinID) != null) return true; // IsHeliSignalObject Or reference my plugin and call like this:
[PluginReference] Plugin HeliSignals; if (HeliSignals.Call("IsHeliSignalObject", skinID) != null) return true; // IsHeliSignalObject To return some basic info about a Heli Signal object:
object GetHeliSignalData(Patrolhelicopter heli)
Returns object as Dictionary<string, object>.
Returned data is:
["heliProfile"] // string - Actual heli profile (from config) ["heliName"] // string - Heli display name ["skinId"] // ulong ["heliId"] // ulong (Net.ID.Value) ["owner"] // BasePlayer ["lastAttacker"] // BasePlayer ["calledPosition"] // Vector3 ["callingTeam"] // List ["cratesToSpawn"] // Number of Heli crates to spawn ["lockedCratesToSpawn"] // Number of locked crates to spawn Example usage:
var hdata = HeliSignals.Call("GetHeliSignalData", heli) as Dictionary<string, object>; string _heliProfile = hdata["heliProfile"]; string _heliName = hdata["heliName"]; string _heliSkin = hdata["skinId"]; string _owner = hdata["owner"]; etc Hooks:
object CanSpawnHeliSignalCrates (PatrolHelicopter heli, BasePlayer lastAttacker, ulong ownerId, ulong skinId, string heliProfile) { // Returning non-null prevents Heli crates spawning Puts("CanSpawnHeliSignalCrates hook fired!); return null; } object CanSpawnHeliSignalLockedCrates (PatrolHelicopter heli, BasePlayer lastAttacker, ulong ownerId, ulong skinId, string heliProfile) { // Returning non-null prevents locked crates spawning Puts("CanSpawnHeliSignalLockedCrates hook fired!); return null; } void OnHeliSignalHeliKill (PatrolHelicopter heli) { // No return behaviour Puts("OnHeliSignalHeliKill hook fired!); } void OnHeliSignalHeliRetire (PatrolHelicopter heli) { // No return behaviour Puts("OnHeliSignalHeliRetire hook fired!); }
- #helicopter
- #helicopters
- (and 17 more)
-
SimplePVE
By Iftebinjan in Plugins
SimplePVE
Simple, powerful PVE for Rust. Control every damage, raid, loot and protection rule from a clean in-game menu. Save rules as profiles and switch between them on a schedule. Run a full PVE server, weekend purges or a hybrid PVE/PVP server, all from one plugin.
TIP
No server.pve needed. SimplePVE handles everything itself. Keep server.pve false.
Video Showcase
Features
Rules and profiles
In-game rule manager (/sprules). Toggle every rule with one click, no config editing needed. Rule profiles. Save several rule sets (for example Normal PVE, Raid Weekend, Event Night), then duplicate, rename and switch them live. Easy rule categories. Damage, raiding, looting, NPCs, traps, vehicles, Deep Sea and Apartments. Debug mode (/spdebug). Shows exactly which rule blocked or allowed a hit. Schedules and purges
Automatic PVE/PVP purges. PVP turns on and off by itself on your schedule. Weekly schedules. Pick days and times, like Friday 18:00 → Sunday 22:00 or weekends only. Dated schedules. For example January 1 → January 7, holiday events or wipe weekends. Priorities. Several schedules can overlap and the highest priority wins. Outside every schedule, your base profile runs. Run commands when a purge starts or ends. Master switch (/simplepve on|off). Pauses everything and turns the server vanilla in one command. Protection
Loot protection. Corpses, backpacks, boxes and supply drops are protected from other players, with team access. Building, vehicle and boat protection. Separate rules for your own, your team's and other players' property. Vehicle auto-claim. Vehicles are claimed when you start the engine. You can also lock claimed vehicles to the owner and their team. Admin bypass permissions for loot and damage. Zones and events
ZoneManager support. Create PVP zones inside your PVE server. Exclude zones from the global PVE rules. PVP delay when leaving a PVP zone. Nobody can escape a fight by stepping out. Works with many popular event plugins. HUD, status and notifications
SimplePVE HUD. Shows the current mode, what's next, a live countdown and a progress bar. Green when safe, red during raid time. In-game HUD editor (/sp_change). Move it and save it without touching the config. Status UI for PVE/PVP, PVP zones, PVP delay, purge countdown and Deep Sea (via CustomVitalsManager). Discord embeds when a purge starts or ends, plus optional early warnings. In-game warnings before every schedule change. Chat, UI, Toastify or Notify for warning messages. Multi-language. Every message is in the lang file, sent in each player's language. Profile names can be translated too. How it works
Rules. Open /sprules and set what players can and can't do. Profiles. Save those rules as a profile, and create more for different situations. Schedules. Tell SimplePVE when each profile (or full PVP) should run. Players see it. The HUD shows the current mode and counts down to the next change, with chat and Discord warnings ahead of time. Note
Example setup: Base profile PVE all week. A weekly schedule switches to PVE OFF (full PVP and raiding) every Saturday 18:00 → Sunday 23:00. Players get a warning 30 minutes before, and Discord announces the purge.
Rule categories
Category What it controls General Friendly fire, suicide, sleepers, radiation, codelock raids, wallpaper, bee swarms, clan support Player Player vs player, animals, NPCs, vehicles, boats, buildings (own / team / others), twigs Deep Sea PVP and boat damage out in the Deep Sea NPC NPCs, animals, Patrol Heli, Bradley and SAM sites vs players and buildings Entity Walls, barricades, MLRS, vehicle collisions and all traps Loot Loot protection, team access, PVP-zone looting, supply drops, Deep Sea looting Zone ZoneManager integration and the PVP delay Apartment Apartment combat zones, master keys, break-ins, rental shops, basement bribes Commands
Command Type Description /sprules Chat Open the menu for rules, profiles and schedules /simplepve Chat & Console Toggle SimplePVE on or off /simplepve on / /simplepve off Chat & Console Turn SimplePVE on, or turn it off (vanilla, schedules paused) /spdebug Chat & Console Debug mode: shows why damage was blocked or allowed /sp_change Chat Open the in-game HUD position editor /sp_hide Chat Hide or show the SimplePVE HUD (players, name set in the config) /spve.langkeys Chat & Console Create lang keys for your profile names so they can be translated /resetsprules Chat & Console Reset the rules to default Permissions
Permission Allows simplepve.admin Using the admin commands and the /sprules menu simplepve.adminloot Looting other players' protected containers and using their claimed vehicles simplepve.admindamage Damaging any entity while PVE is on Hosting partner
Installation
Upload SimplePVE.cs to oxide/plugins. Make sure server.pve is false. Grant yourself admin: oxide.grant user YourName simplepve.admin Type /sprules in game and set up your rules. (Optional) Create profiles and schedules in the same menu. (Optional) Set your timezone (see below) if you use schedules. Schedule timezone
Schedules use UTC plus your offset in minutes. Set it in the config under Schedules Setting → UTC Time Difference.
Your timezone Calculation Value UTC 60 × 0 0 United Kingdom (GMT+1, summer) 60 × 1 60 Central Europe (UTC+2) 60 × 2 120 Bangladesh (UTC+6) 60 × 6 360 US Eastern (UTC−4) 60 × −4 -240 US Pacific (UTC−7) 60 × −7 -420 Warning
Schedules starting at the wrong time? Your UTC Time Difference doesn't match your timezone. Fix it and reload the plugin.
Configuration
Tip
Translating: copy the lang file to another folder (for example oxide/lang/de/SimplePVE.json) and translate the values. Each player gets their own language. Run /spve.langkeys to add lang keys for your profile names too.
FAQ
Does SimplePVE need server.pve?
No. Keep server.pve set to false. SimplePVE does all the protection itself.
Where do I change the rules?
Type /sprules in game (needs simplepve.admin). Every rule is a toggle, and changes save to the profile you're editing.
What are profiles?
A profile is a saved set of rules. Make one for normal PVE days and one for raid weekends, then switch them by hand or let a schedule switch them.
Can I make automatic purges?
Yes. Create a schedule in /sprules → Schedules, pick what it runs (a profile, PVE ON or PVE OFF) and when. Outside every schedule, your base profile runs.
Weekly or date-based schedules?
Both. A schedule's time windows can be weekly (days and times, or a day-to-day span) or dated (a date range, or a daily time inside a date range). When schedules overlap, the one with the highest priority wins.
My schedules start at the wrong time.
Your UTC Time Difference doesn't match your timezone. See Schedule timezone above.
How do I turn PVE on or off by hand?
/simplepve on or /simplepve off (needs simplepve.admin). Off makes the server vanilla and pauses all schedules until you turn it back on.
Damage still happens in PVE mode. Why?
Either one of your rules allows that damage, or another plugin changes damage too. Turn on /spdebug to see which rule decided each hit, and turn it off again when you're done.
How does loot protection work?
Players can't loot other players' corpses, backpacks, containers and called supply drops. Teammates can if you allow it. Admins with simplepve.adminloot can bypass it. Add entity short names to Loot Protection Excluded Entitys to keep them open to everyone (mailboxes and drop boxes by default).
Can admins damage things while PVE is on?
Yes, with the simplepve.admindamage permission.
Does it support ZoneManager?
Yes. ZoneManager zones can run PVP inside your PVE server, with an optional PVP delay when players leave. List zone IDs under Exclude Zone IDs From Rules to keep SimplePVE out of them completely.
Can it post to Discord?
Yes. It sends embeds when a purge starts or ends, and optional warnings a set number of minutes before. In-game warnings work without Discord too (Warn Players Before Schedule Change).
Can I run commands when a purge starts or ends?
Yes. Add them to Commands when PVP Purge Starts and Commands when PVP Purge Ends.
The menu or HUD looks see-through.
Keep UI - Use blur materials set to false. Blur is broken on Rust's new render pipeline.
For developers
Hooks and API
void OnSPVEPurgeStarted() void OnSPVEPurgeEnded() TimeSpan GetPVPStartTimeRemaining() TimeSpan GetPVPEndTimeRemaining() bool IsServerPVE() bool IsStatusEnabled_API() bool AddToExcludeZone(string zoneId) bool RemoveFromExcludeZone(string zoneId) Override hooks. Return true or false to force the result and skip SimplePVE's own checks. Return null to let SimplePVE decide.
object CanEntityTakeDamage(BaseCombatEntity entity, HitInfo hitInfo) // true = allow damage, false = block object CanEntityBeTargeted(BasePlayer player, BaseEntity entity) // true = allow targeting, false = block object CanEntityTrapTrigger(BaseTrap trap, BasePlayer player) // true = allow trigger, false = block Support
Need help or found a bug? Open a support ticket on this page or join the Discord.
Check out my other plugins
-
Raidable Base Event Islands + Barge
By monsterqueen in Prefabs
These islands were created to be event locations for your custom maps and were made with Raidable Bases in mind. These islands are approved by nivex for the use of Raidable Bases.
To use custom Spawn Points with Raidable Bases you must use the "Spawns Database” PlugIn by k1lly0u.
Included
1 Large Event Island 1 Small Event Island 1 "Landing Barge” The Landing Barge was created to be used as a teleporting point to the islands for players if you use those. Features
Recycler + Repair Bench at prefab T3 Workbench on Landing Barge Different vantage points around the islands for unique base raiding angles Installation
NOTE: Clear the ocean topology layer layer over the islands after placing.
These floating prefabs work best when placed at the specified height (Y Value):
MQ Large Event Island 1 - Y Height: 6.684 MQ Small Event Island 1 - Y Height: 2.075 MQ Landing Barge 1 - Y Height: 2.059 Helpful Links
Rustedit Training: HOW TO INSTALL RUSTEDIT
RustEdit - Working With Custom Prefabs Tutorial
Tutorial for Spawns Database
Feel free to reach out to me on Discord (MonsterQueen) for any questions or help needed.
-
Clans
Clans gives your players one menu for everything a clan does: create it, invite people, hand out roles, make alliances, set gather quotas and clan skins, and check where the clan sits in the top. If you run ServerPanel, the menu opens inside it as its own category and matches your template, V1, V2 or V4. Without ServerPanel it opens fullscreen, in the Old Style or the New Rust look.
Clans also takes over Rust's own clan system. The F1 clan menu, the clan chat tab, clan names on the map and Rust+ all show Clans data, and in-game clan score events count toward your clan rating. Players get one clan, not two that disagree with each other.
Clan leaders build their own ranks. A role has a name, a color and twelve rights, from inviting and kicking to changing the avatar or toggling ally friendly fire, so a big clan can run itself without handing everyone leader rights. Data lives in JSON, Protobuf or MySQL, and one console command moves it between them. Updating from 1.x keeps your settings: old moderators become roles and the page settings move into the new menu.
🌟 Features of Clans
Five menu layouts: ServerPanel V1, V2 and V4, picked from your ServerPanel template on its own, plus two fullscreen styles, Old Style and New Rust. Every layout is a template file in data/Clans/Templates, where positions, colors and sizes can be changed Clan roles: leaders create roles with their own name and color and pick the rights: invite, kick, promote, demote, alliances, avatar, description, tag color, gather rates, skins, friendly fire and ally friendly fire Rust's clan system runs on Clans: the F1 clan menu, the clan chat tab, clan names on the map and Rust+, with in-game clan score events counting toward the rating Alliances: send, accept, cancel and revoke alliances, with a separate friendly fire switch for allies Friendly fire: per clan, with turret protection for clan mates as an option Gather rates: the clan sets how much of each resource every member has to bring in, and the menu shows how far each member got Clan skins: one set of skins for the whole clan, so you can tell your own people from the enemy at a glance Clan identity: avatar, tag color and a description, each behind its own role right Clan and player tops: pages with a page number field; the columns and the stat tiles on the About Clan page and in profiles are set in the config, each can be turned off or put behind a permission Player and clan profiles: open them from the member lists and the top tables Your menu, your pages: reorder, rename, hide or lock menu categories and pages behind permissions Paid actions: charge for creating, joining, leaving, kicking, disbanding, setting skins or the avatar, and for invites, through any economy plugin or with items Tag rules: minimum and maximum length, a blocked words list and an allowed characters filter. Errors show right in the Create a clan window Clan and alliance chat, with BetterChat support Clans Discord companion plugin: clan events and clan chat go to Discord through webhooks, and clan leaders can set their own webhook Storage: JSON, Protobuf or MySQL, and clans.convertstorage moves everything to another type Cleanup: purge inactive clans, and wipe clans, players or invites on a new map, each on its own switch Built for big servers: the top is rebuilt in small steps, data is written only when something changed, and the menu template is prepared in the background at startup
⚡ Performance
Clans is built for big servers. Statistics, friendly fire checks and turret targeting run without allocating memory on every call, the clan and player top is rebuilt in small steps instead of one long freeze, and data is written to storage only when something changed.
🖼️ Showcase
Fullscreen: Old Style
Fullscreen: New Rust
ServerPanel V1
ServerPanel V2
ServerPanel V4
✨ What makes it different
Clan roles: a name, a color and twelve rights per role
Rust's own clan menu shows the same clan
Clan events and chat in Discord
🎮 Commands
Players (the /clan and /clans names can be changed in the config):
/clan: open the clan menu /clan create <tag>: create a clan /clan disband: disband your clan /clan leave: leave your clan /clan join: open your invites /clan invite <name/steamid>, /clan withdraw <name/steamid>: invite a player, cancel an invite /clan kick <name/steamid>: kick a member /clan promote <name/steamid>, /clan demote <name/steamid>: move a member up or down a role /clan allyinvite <tag>, allywithdraw, allyaccept, allycancel, allyrevoke <tag>: manage alliances /clan ff, /clan allyff (also /cff, /aff😞 toggle friendly fire for the clan and for allies /clan description <text>, /clan tagcolor <hex>: set the description and the tag color /clan discord: set the clan's Discord webhook (Clans Discord) /cinfo <tag>: information about a clan /c, /cchat: clan chat; /a, /achat: alliance chat Admins: clans.manage (needs clans.admin)
list, listex: all clans, with members and online status in listex show [name/userId]: one clan and its members msg [clanTag] [message]: send a message to a clan create [name/userId] [clanTag], rename [oldTag] [newTag], disband [clanTag] invite, join, kick, owner, promote, demote [clanTag] [name/userId] Console:
clans.convertstorage <JSON|Protobuf|MySQL>: move all player and clan data to another storage type clans.refreshtop: rebuild the clan and player top now clans.refreshskins: reload the skins players can pick for clan skins clans.reborn.convert (Clans Converter) reads the data file of Clans Reborn (data/Clans.json) and makes clans from it clans.umod.convert (Clans Converter) does the same for the uMod Clans plugin (data/clan_data.json) clans.convert.olddata (Clans Converter) moves player settings from the data of Clans 1.x, such as friendly fire and clan skins clans.import.playerdatabase [field] (Clans Converter) brings player data over from the PlayerDatabase plugin. The field name defaults to Clans, and PlayerDatabase has to be loaded
🛡️ Permissions
clans.admin: the clans.manage command clans.cancreate, clans.canjoin, clans.canleave, clans.candisband, clans.cankick, clans.canskins: each is checked only when its switch is on in the "Permission Settings" section of the config Menu categories, pages, top columns, stat tiles, clan skins and the avatar change can each take a permission name of your own. The plugin registers it on load.
⚙️ Web Config Editor
Manage the Clans settings in our web config editor. Every section of the config has its own form, so you set up roles, pages, top columns, paid actions and storage in the browser instead of editing the JSON file by hand.
P.S. The web config editor is open to members of the "Clans" group in our Discord server. Join at https://discord.gg/mevent and ask for the group.
🎥 Video
🧪 TEST SERVER
Join our test server and try all the features yourself!
Copy the IP address below to start playing.
connect 155.103.86.38:28015
📚 FAQ
Q: What are the files in the download, and which ones do I need?
A: The archive has three plugin files, and only Clans.cs is required. It is the plugin itself, with the menu, roles, alliances, gather rates, skins, tops and storage, and it runs fine without the other two. ClansDiscord.cs is optional: it posts clan events and clan chat to Discord webhooks, so skip it if you do not use Discord. To use it, put your server webhook into "Admin webhook URL". Every event has its own switch and color, and team chat is off by default. Clan leaders can add their own webhook with the DISCORD button or /clan discord, and you can limit that to a permission and to the hosts you allow. ClansConverter.cs is optional and needed once, only when you move clan data from another plugin: install it, run the matching command from the server console or RCON (they do not work from the in-game F1 console), check that your clans came over, then delete the file. The commands are listed under Console above. If you start from scratch, you do not need it.
Q: How do I add Clans to ServerPanel?
A: In ServerPanel, create a category with Type: Plugin, Plugin Name: Clans, Plugin Hook: API_OpenPlugin. Clans reads your ServerPanel template and picks the matching layout: t1 and t1_1 give V1, t2 and t3 give V2, t4 gives V4. While that category exists, /clan opens it. To force a layout, set "UI Pattern" in the config to V1, V2, V4 or Fullscreen instead of Auto.
Q: Which storage type should I pick?
A: JSON is the default and works out of the box. Protobuf is faster and smaller on disk for big servers. MySQL lets several servers share clan data. You can switch any time with clans.convertstorage.
Q: I am updating from Clans 1.x. What happens to my data?
A: Clans and settings carry over. Old moderator settings and member colors become clan roles, and the page settings move into the new menu categories. The interface settings moved from the config to the template files in data/Clans/Templates. If you used PlayerDatabase, run clans.import.playerdatabase from Clans Converter once.
Q: Does Clans work with my other plugins?
A: Clans has the same API as other popular clans plugins, so plugins that support clans work with it too.
Q: How do I show the clan top on the screen?
A: Install Clans Top.
Q: Which other plugins do I need?
A: ImageLibrary on Oxide, for avatars and icons. Carbon has the image module built in.
Q: Where do I edit the text, or add my own language?
A: oxide/lang/en/Clans.json (or carbon/lang/en/). Copy it to lang/<code>/Clans.json and translate the values. English and Russian are included.
Q: Where can I see an example of the config?
A: Config
🔧 Hooks
void OnClanCreate(string tag) void OnClanCreated(IClan clan, ulong leaderId) void OnClanUpdate(string tag) void OnClanDestroy(string tag) void OnClanDisbanded(string tag, List<ulong> memberUserIDs) void OnClanRenamed(string oldTag, string newTag) void OnClanLeaderChanged(ulong newLeader, ulong oldLeader, string tag) void OnClanMemberJoined(ulong userId, string tag) void OnClanMemberLeft(ulong userId, string tag) void OnClanMemberGone(ulong userId, string tag) void OnClanMemberKicked(ulong userId, ulong actorId, string tag) void OnClanMemberPromoted(ulong userId, ulong actorId, string tag, string role) void OnClanMemberDemoted(ulong userId, ulong actorId, string tag, string role) void OnClanInvite(ulong inviterId, ulong targetId, string tag) void OnClanInviteRejected(ulong userId, string tag) void OnClanInviteWithdrawn(ulong inviterId, ulong targetId, string tag) void OnClanAllianceInvite(string tag, string targetTag, ulong actorId) void OnClanAllianceAccepted(string tag, string targetTag, ulong actorId) void OnClanAllianceInviteRejected(string tag, string targetTag, ulong actorId) void OnClanAllianceInviteWithdrawn(string tag, string targetTag, ulong actorId) void OnClanAllianceRevoked(string tag, string targetTag, ulong actorId) void OnClanChat(BasePlayer player, string message, string tag) void OnClanTopUpdated()
Questions, ideas and bug reports go to our Discord.
-
Raidable Bases
Create fully automated raidable bases with NPCs in Rust.
Raidable Bases supports maintained, scheduled, buyable and manually spawned events, with separate options for each difficulty.
📄Compatibility notes
server.pve true is not supported; please use TruePVE or another compatible PVE plugin that calls the necessary hooks required by Raidable Bases. Raidable Bases does not currently use Harmony patches. I could implement such patches, but it's often better to use a supported hook when it exists instead. Raidable Bases is not compatible with Raid Windows in Softcore mode after the Tool Cupboard is destroyed or after raidwindow_fresh_tc_seconds elapses. This will be supported when the appropriate hooks exist for this behavior. 📄Raidable Bases & Boats Loot Editor by @beee 😎
This is the easiest way to create and manage Raidable Bases loot tables. It provides a visual editor for item selection, amounts, probability, skins and other loot fields, making it the best starting point for most server owners.
https://codefling.com/tools/raidable-bases-boats-loot-editor/ ⚙️Built with performance in mind
Raidable Bases manages a lot of work behind the scenes, so performance is treated as a core part of development. Pasting and cleanup are batched, recurring work is shared through central schedulers, temporary collections are pooled, and spawn searches are spread across frames to reduce noticeable spikes.
These systems help provide a smoother experience across a wide range of server sizes. Performance will continue to be reviewed and improved anywhere measurable gains can be made.
📄There are just a few steps
Get bases spawning within minutes
An experienced administrator may finish in a few minutes. A novice should allow roughly 30 minutes, while a complete beginner may need 60 to 120 minutes. Fine-tuning depends on how large you want the project to become. Once the initial setup is complete, maintaining the plugin is fairly simple, and growing your base catalog becomes an art form of its own. Server owners regularly report that players love the variety, which makes building that collection rewarding for everyone involved.
Step 1 - Add your bases
You can obtain bases by:
Downloading them from Fortify. Purchasing a Raidable Bases package. Purchasing compatible CopyPaste files from another creator. Creating your own bases. Place the CopyPaste JSON files in:
Oxide — oxide/data/copypaste/ Carbon — carbon/data/copypaste/ Step 2 - Set up profiles
Profiles serve a specific purpose: they extend the main configuration file. For clarity, they should always be referred to as profiles.
Profiles are located in:
Oxide — oxide/data/RaidableBases/Profiles/ Carbon — carbon/data/RaidableBases/Profiles/ Bases can be added manually or with the command:
rb.config add "Easy Bases" raideasy1 raideasy2 raideasy3 rb.config add "Medium Bases" raidmed1 raidmed2 raidmed3 The named profile can contain any number of CopyPaste bases that share its options. Quotes around the profile name are required, and it is best practice to use them even when the name has no spaces. Use straight double quotes only; curly quotes will not work correctly.
Step 3 - Enable automatic events
For public automated events, enable Maintained Events or Scheduled Events in the main configuration and choose how many events you would like active.
The main configuration file is located in:
Oxide — oxide/config/RaidableBases.json Carbon — carbon/configs/RaidableBases.json Edit the configuration file.
Maintained Events: keeps the configured number of raids available. Max Maintained Events: Set this to the amount of events that you want to always have spawned. Max Amount Allowed To Automatically Spawn Per Difficulty: Set this to the amount of events that you want to spawn per difficulty. Scheduled Events: spawns raids according to a timer. Max Scheduled Events: Set this to the amount of events that you want spawned on a timed basis. Max To Spawn At Once: Set this to the amount of events that can spawn at once from Max Scheduled Events. Set to 0 to use the full amount from Max Scheduled Events. Step 4 - Save your files then use the commands:
Oxide: o.reload RaidableBases Carbon: c.reload RaidableBases Shortcuts: rb.reloadconfig rb.reloadprofiles Once grid initialization completes, automatic events can begin spawning. The included Default_Loot table is enough to get started and can be replaced whenever you are ready. Ultimately, the Default_Loot table should be discarded once your other loot tables are configured.
📁File locations
Main configuration
Oxide: oxide/config/RaidableBases.json Carbon: carbon/configs/RaidableBases.json Profiles
Oxide: oxide/data/RaidableBases/Profiles/ Carbon: carbon/data/RaidableBases/Profiles/ CopyPaste bases
Oxide: oxide/data/copypaste/ Carbon: carbon/data/copypaste/ Loot and data
Oxide: oxide/data/RaidableBases/ Carbon: carbon/data/RaidableBases/ The main configuration controls server-wide behavior. Profiles contain options for specific difficulties, while loot tables and CopyPaste files provide the content used by each event.
🗺️Map terrain and spawn locations
Raidable Bases depends on the map having enough flat, unobstructed terrain for automated events. Most procedural maps provide plenty of locations, while custom or heavily modified maps may need additional flat terrain, islands, or custom spawn points.
The grid scans the map when the plugin initializes and reports the number of potential spawn locations. A low location count usually means the map offers fewer suitable areas or the current settings narrow the available terrain. Spawns Database files are useful for sky bases, underwater bases, custom maps and any setup that needs exact locations. You can disable using the grid by providing a valid spawn file for each raid type (buyable, maintained, scheduled and manual). You may view the grid by typing /rb grid in-game to view detailed drawings of all locations on the grid.
X - Green - Potential spawn point, generally in clusters X - Red - Currently in use C - Cyan - Construction detected nearby TC - Yellow - TC detected nearby W - Blue - Water depth is too high - Refreshes on ocean level change Green clusters have the highest chance of being picked as a spawn point, constantly changing depending on player activity and remaining a safe distance away.
📄Profiles and difficulties
A profile is where options can be found that pertain to specific difficulties. Any number of CopyPaste bases can share the same profile, so a large base rotation can be managed while the difficulty is adjusted in one place.
Profiles can control loot, NPCs, PVP or PVE behavior, protection radius, damage, doors, locks, water placement, height, rewards, building options and much more. Dynamic difficulties
rb.difficulty add "Sky" rb.difficulty remove "Sky" Adding a difficulty creates the matching configuration and language entries. Profiles and loot tables can then be assigned to it. Removing a difficulty removes its active configuration entries without deleting the related files.
📄Event types
Maintained — Keeps up to the configured number of public raids available. Another can spawn after one despawns. Scheduled — Spawns public raids between the configured minimum and maximum interval. Buyable — Lets players purchase a raid through the configured buy command, subject to availability, costs and cooldowns. Manual — Lets an administrator spawn a selected raid at a chosen location. Each event type can use the automatic grid or its own Spawns Database file.
🔧Loot tables
Loot can come from a base-specific table, difficulty table, weekday table and the default table. The plugin combines the available sources according to the profile and loot settings until it has enough usable entries.
Default loot
Default_Loot.json contains a small demonstration loot list. It is enough to show how the plugin works, but most servers should replace it with loot tables in the Base_Loot and/or Difficulty_Loot folders. Loot table editor
For most servers, the Loot Table Editor by @beee 😎 is the quickest way to build and manage these files. Thanks, beee!
https://codefling.com/tools/raidable-bases-boats-loot-editor/ Important loot fields
shortname — Rust item shortname. amount — Maximum amount created for the entry. amountMin — Minimum amount created for the entry. probability — Spawn chance from 0.0 to 1.0, where 1.0 is 100%. stacksize — Optional stack-size override. Use -1 to use the item's normal Rust stack size. skin — Optional skin ID. Editable item lists
The rb.populate all command creates a file for each difficulty inside the Editable_Lists folder. Each file contains every available Rust item, allowing you to remove unwanted entries and configure the amounts for items you would like to spawn. Any items with an amount set to 0 will be inactive, so you do not have to remove any entry.
A list containing hundreds of items may look intimidating at first, but deleting unwanted entries or configuring from a preset list is usually much faster than adding every item manually. The command also includes items already present in your Difficulty_Loot files. This makes it useful when you want to rebuild a list and reevaluate which items should be available later. Files inside Editable_Lists are for editing only. Their contents need to be copied into an active loot file before the plugin will use them.
To use Editable_Lists/Easy.json for Easy raids, copy its contents into Difficulty_Loot/Easy.json. To use Editable_Lists/Expert.json for a profile named Expert Bases, copy its contents into Base_Loot/Expert Bases.json. Item amounts and probability
An item will not spawn when both amount and amountMin are set to 0. You may remove these entries or leave them in the file for later use.
When amountMin is 0, probability determines whether the item spawns. If the item fails its probability check, another item will not automatically replace it unless additional eligible entries are available. Tool Cupboard loot
Items moved into the Tool Cupboard may combine into larger stacks. The visible stack count can therefore be lower than the amount that was originally generated. Loot priority
Loot is loaded from the data files inside:
Oxide: oxide/data/RaidableBases/ Carbon: carbon/data/RaidableBases/ The Profiles folder is not a loot source. It contains the options used by each profile and difficulty. Please do not place any file in the Profiles folder that is not a profile, the hamsters will cry.
Base Loot
If a file inside Base_Loot has the same name as a profile, the bases assigned to that profile can use that loot table. For example: Base_Loot/Expert Bases.json applies to the profile named: Expert Bases Enable Always Spawn Base Loot Table in the profile when items from that table should always be included. Difficulty Loot
Files inside Difficulty_Loot are selected according to the difficulty assigned to the profile. For example: Difficulty_Loot/Hard.json is used by profiles assigned to the Hard difficulty. Day of Week Loot
When Use Day Of Week Loot is enabled, the plugin selects the loot table matching the current day. Default Loot
Default_Loot.json acts as the fallback table. It is used when the other available loot tables do not provide enough eligible items to satisfy Amount Of Items To Spawn. Generally, this file should be discarded once Base Loot and Difficulty Loot tables have been created. 🤖NPCs
Profiles include NPC options for scientists, murderers and sleepers. You can keep the defaults or tailor their amount, health, accuracy, kits, movement and loot to suit each difficulty.
Valid Kits entries take priority over the matching manual loadout lists. NPCs spawned inside bases remain stationary, while outdoor NPCs can roam and engage players around the event. More NPCs naturally create more work, so busy servers may prefer to increase counts gradually. ⚔️PVP, PVE, ownership and raid options
Raid behavior is controlled by a combination of profile options and server-wide configuration. Together, these determine whether a raid is PVP or PVE and can control ownership, team or clan access, building, teleporting, cupboard access, damage across the dome, PVP delay, completion requirements and rewards.
Ownership and participation
Public raids can lock to the first attacker, while purchased raids can remain associated with their buyer. Players may become participants by damaging the base, killing NPCs, looting or using other supported raiding methods. PVP delay
PVP delay can keep a player temporarily vulnerable after leaving a PVP raid. This discourages zone hopping across the event boundary to gain an unfair advantage on a PVE server, where normal protection would otherwise resume immediately after leaving. 🛒Buyable raids and shop plugins
Buyable raids use the configured buy command, commonly /buyraid. A purchase can still be declined by cooldowns, ownership options, event limits, permissions, availability or the inability to find a suitable location.
Using a shop plugin (support is not guaranteed)
The shop should provide the buyraid command for free or at zero cost, while Raidable Bases handles the actual payment and any refund. This allows the plugin to safely return the payment when the raid cannot be created. Shop plugins that cannot sell the command at zero cost are not supported. buyraid 0 <steamid> The player placeholder depends on the shop plugin. Prices are configured in Raidable Bases and should remain zero in the external shop. If using a Tier Package of mine, the only requirement to use Buyable Events with the /buyraid command is to enable a cost per difficulty in the config file. These are not configured for obvious reasons; I don't know your servers economy. 🙂
Config snippet: https://i.ibb.co/x8XW9Lbs/image.png
⚙️ Options that benefit from an explanation (the majority have names that are meant to be self-explanatory to save time)
The complete configuration already lists every available option. This section only covers settings that are easier to understand with a little context.
Advanced Protection Radius — Controls the event area used by domes, markers, damage checks, ejection, NPC ranges and nearby spawn checks. Configurable per event type: Buyable Events, Maintained Events, Manual Events, and Scheduled Events. Amount Of Items To Spawn — Sets the target amount of generated loot, limited by available entries from your loot tables and container space in each base. Divide Loot Into All Containers — Spreads generated loot across the raid's available containers. This does not serve much purpose when disabled, it is advised to keep it set to true. Create Dome Around Event Using Spheres — Creates the visible event boundary. Set to 0 to disable it. Spawn Silently — Hides the normal announcement, dome and map marker for the profile. Height Adjustment Applied To This Paste — Adds the same vertical offset whenever a base using this profile is pasted. Forced Height — Uses a fixed world height for controlled sky or special-event setups. Allow Players To Raid With Items Up To What Workbench Level? — Limits raiding items according to their workbench level. Water Settings — Controls floating, surface, underwater and seabed placement. Workbench-level option
-1 — No workbench-level limit, future-proof where level 3 may be increased to 4 in a later Rust update. 0 — Allows raiding items that require no workbench. 1 — Allows items up to Workbench Level 1. 2 — Allows items up to Workbench Level 2. 3 — Allows items up to Workbench Level 3. The plugin checks the available workbench information for weapons, ammunition, attack entities and projectiles. A player is notified when the item being used exceeds the profile's allowed level.
⌨️Commands and permissions
Many command names are configurable. The examples below use their common defaults.
/buyraid — Open or use the buyable raid system. /rb — View player-facing raid information and available subcommands. rbe [base] [difficulty] — Spawn a manual event using the configured event command. rb.config add "<profile>" <bases...> — Add CopyPaste bases that share the selected profile options. Straight quotes around the profile name are required. rb.config list — List configured bases. rb.config remove <base> — Remove a configured base from any profiles containing it. rb.config maintained — Toggle Maintained Events in the config on or off. rb.config scheduled — Toggle Scheduled Events in the config on or off. rb.toggle - Temporarily toggles events on or off, refreshing when toggled back on or when the plugin is reloaded again. rb.reloadconfig — Reload the main configuration. rb.reloadprofiles — Reload profiles. rb.reloadtables — Reload loot tables. rb.populate all — Create editable item reference lists. rb.difficulty add "name" — Create a new difficulty and its matching configuration entries. rb.difficulty remove "name" — Remove a difficulty from the active configuration without deleting its files. rbe despawn - Despawns the base you are nearest to. Use noclip or vanish to ensure other options do not block the despawn. Cannot be used while a base is pasting or being setup by the plugin, wait to use until after the event has started. Players do not require permissions by default. Administrative permissions are best limited to trusted administrators, moderators and staff only.
raidablebases.allow — Allows player to use the available ADMIN commands. This is NOT recommended as players can use the commands 'buyraid' and 'rb' already. raidablebases.canbypass — Bypass dome restrictions. Noclip or vanish will bypass many features too, so you can assist players without interfering. raidablebases.blockbypass — Bypass Owning More Than One Raid settings for Clans/Friends/Teams raidablebases.mapteleport — Teleporting to map marker now simply requires this permission and to be enabled in config raidablebases.ddraw — Allows support for direct draw to players. raidablebases.config — Allows access to rb.config command in-game (server console does not require this permission) raidablebases.banned — Bans the user from entering any raids - accidentally banned yourself? Use /rb unban raidablebases.durabilitybypass — Bypass `Block Plugins Which Prevent Item Durability Loss` raidablebases.notitle — Exclude users from ranked title rewards raidablebases.buyraid — Optionally require this permission with `Use Permission (raidablebases.buyraid)` (not required by default) See other permissions using Permissions Manager (click the link to visit the page on Codefling) 🧾RBE DEBUG
The RBE DEBUG command displays information related to the configuration, profiles, map and spawn checks. Using it before requesting support usually makes the cause much easier to identify.
Too much information displayed at once? Not a problem, it is constantly recording data but the solution is very simple. Run RBE DEBUG once to enable it, then run it again to disable it and clear the previously recorded data. Next, attempt to spawn the raid using /buyraid or /rbevent Run RBE DEBUG again to view any newly recorded information. Do this promptly, as it will immediately continue to record. When you are finished, toggle it off by typing the command again. It will continue to output debug until it is turned off. Helpful information to include
Raidable Bases and CopyPaste versions. The base filename, profile, difficulty and event type. The command used and relevant console output. Whether the same file works when pasted directly with CopyPaste. Map seed, size and whether the map is procedural or custom when the issue involves placement. Debug contains all relevant information to events, good or bad. Use this information to determine what is happening and how to resolve the issue on your own. 📄Facepunch Terms of Service
Raidable Bases includes safeguards designed to help servers remain compliant with Facepunch policies for paid DLC items and restricted cosmetic content. These safeguards may remove restricted deployables or loot and prevent unauthorized pickup.
Server-owner responsibility
Changes that disable or bypass these safeguards can place a server outside Facepunch policy. Custom loot tables, imported workshop skins, CopyPaste files and third-party content should be reviewed before use. 🧰Tools and further reference
Community-made Facepunch content checker by ninco90: https://app.rustspain.com/facepunch/checkitems Loot Table Editor: https://codefling.com/tools/raidable-bases-boats-loot-editor/ 🧩Developer API
Signatures reflect Raidable Bases 3.1.5
The following hooks receive this argument set: OnRaidableBaseStarted, OnRaidableBaseEnded, OnRaidableBasePrivilegeDestroyed, OnRaidableBaseDespawn, OnRaidableBaseDespawned and one overload of OnRaidableBaseCompleted and OnRaidableAwardOwner. Please note that unused args will be removed in a future update.
object[] raidData = { Vector3 location, int level, bool allowPVP, string id, float unused1, float unused2, float loadTime, ulong ownerId, BasePlayer owner, List<BasePlayer> raiders, List<BasePlayer> intruders, List<BaseEntity> entities, string baseName, DateTime spawnDateTime, DateTime despawnDateTime, float protectionRadius, int lootRemaining }; OnPlayerPvpDelayStart, OnPlayerPvpDelayReset and OnPlayerPvpDelayExpired receive this argument set.
object[] delayData = { BasePlayer player, ulong userid, int level, Vector3 location, bool allowPVP, string id, ulong ownerId, string baseName, DateTime spawnDateTime, DateTime despawnDateTime, int lootRemaining }; Event hooks
void OnRaidableBaseStarted(Vector3 location, int level, bool allowPVP, string id, float unused1, float unused2, float loadTime, ulong ownerId, BasePlayer owner, List<BasePlayer> raiders, List<BasePlayer> intruders, List<BaseEntity> entities, string baseName, DateTime spawnDateTime, DateTime despawnDateTime, float protectionRadius, int lootRemaining) — Called when setup finishes. void OnRaidableBaseStarted(RandomBase rb) — Also called with the active spawn request. void OnRaidableBaseEnded(Vector3 location, int level, bool allowPVP, string id, float unused1, float unused2, float loadTime, ulong ownerId, BasePlayer owner, List<BasePlayer> raiders, List<BasePlayer> intruders, List<BaseEntity> entities, string baseName, DateTime spawnDateTime, DateTime despawnDateTime, float protectionRadius, int lootRemaining) — Called when the raid object is being released. void OnRaidableBaseDespawn(Vector3 location, int level, bool allowPVP, string id, float unused1, float unused2, float loadTime, ulong ownerId, BasePlayer owner, List<BasePlayer> raiders, List<BasePlayer> intruders, List<BaseEntity> entities, string baseName, DateTime spawnDateTime, DateTime despawnDateTime, float protectionRadius, int lootRemaining) — Called when despawn begins. void OnRaidableBaseDespawned(Vector3 location, int level, bool allowPVP, string id, float unused1, float unused2, float loadTime, ulong ownerId, BasePlayer owner, List<BasePlayer> raiders, List<BasePlayer> intruders, List<BaseEntity> entities, string baseName, DateTime spawnDateTime, DateTime despawnDateTime, float protectionRadius, int lootRemaining) — Called after entity cleanup completes. void OnRaidableBasePrivilegeDestroyed(Vector3 location, int level, bool allowPVP, string id, float unused1, float unused2, float loadTime, ulong ownerId, BasePlayer owner, List<BasePlayer> raiders, List<BasePlayer> intruders, List<BaseEntity> entities, string baseName, DateTime spawnDateTime, DateTime despawnDateTime, float protectionRadius, int lootRemaining) — Called when the primary Tool Cupboard is destroyed. void OnRaidableBaseCompleted(Vector3 location, int level, bool allowPVP, string id, float unused1, float unused2, float loadTime, ulong ownerId, BasePlayer owner, List<BasePlayer> raiders, List<BasePlayer> intruders, List<BaseEntity> entities, string baseName, DateTime spawnDateTime, DateTime despawnDateTime, float protectionRadius, int lootRemaining) — Called when the raid is completed. void OnRaidableBaseCompleted(Vector3 location, int level, bool allowPVP, ulong ownerId, List<ulong> raiders) — Completion overload containing eligible raider IDs. void OnRaidableAwardOwner(Vector3 location, int level, bool allowPVP, string id, float unused1, float unused2, float loadTime, ulong ownerId, BasePlayer owner, List<BasePlayer> raiders, List<BasePlayer> intruders, List<BaseEntity> entities, string baseName, DateTime spawnDateTime, DateTime despawnDateTime, float protectionRadius, int lootRemaining) — Called when the owner qualifies for awards. void OnRaidableAwardOwner(Vector3 location, int level, bool allowPVP, ulong ownerId, List<ulong> raiders) — Compact overload containing eligible raider IDs. void OnRaidableAwardGiven(string username, string userid, string serializedPlayerInfo) — Called after ranked-ladder data is updated. void OnRaidableDespawnUpdate(Vector3 location, int level, bool allowPVP, ulong ownerId, string baseName, float protectionRadius, int lootRemaining, DateTime despawnDateTime) — Called when the despawn time changes. void OnRaidableTurretsInitialized(List<AutoTurret> turrets, Vector3 location, float radius, int level, bool allowPVP, ulong ownerId) — Called after event turrets finish initialization. void OnPlayerEnteredRaidableBase(BasePlayer player, Vector3 location, bool allowPVP, int level, string id, float unused1, float unused2, float loadTime, ulong ownerId, string baseName, DateTime spawnDateTime, DateTime despawnDateTime, float protectionRadius, int lootRemaining) — Called when a player enters the event. void OnPlayerExitedRaidableBase(BasePlayer player, Vector3 location, bool allowPVP, int level, string id, float unused1, float unused2, float loadTime, ulong ownerId, string baseName, DateTime spawnDateTime, DateTime despawnDateTime, float protectionRadius, int lootRemaining) — Called when a player exits the event. void OnPlayerPvpDelayStart(BasePlayer player, ulong userid, string pluginName, int level, Vector3 location, bool allowPVP, string id, ulong ownerId, string baseName, DateTime spawnDateTime, DateTime despawnDateTime, int lootRemaining) — Called when PVP delay begins. void OnPlayerPvpDelayReset(BasePlayer player, ulong userid, string pluginName, int level, Vector3 location, bool allowPVP, string id, ulong ownerId, string baseName, DateTime spawnDateTime, DateTime despawnDateTime, int lootRemaining) — Called when an active PVP delay is refreshed. void OnPlayerPvpDelayExpired(BasePlayer player, ulong userid, string pluginName, int level, Vector3 location, bool allowPVP, string id, ulong ownerId, string baseName, DateTime spawnDateTime, DateTime despawnDateTime, int lootRemaining) — Called when PVP delay expires.
Purchase, ownership, backpack, and other special hooks
void OnRaidableBasePurchased(string userid, Vector3 location, string grid, int level, bool allowPVP, string baseName, DateTime spawnDateTime, DateTime despawnDateTime) — Called when a purchased raid is created. void OnRaidableBaseLocked(string userid, Vector3 location, string grid, int level, bool allowPVP, float loadTime, string baseName, DateTime spawnDateTime, DateTime despawnDateTime) — Called when a public raid becomes locked. void OnRaidableBaseUnlocked(string userid, Vector3 location, string grid, int level, bool allowPVP, string baseName, DateTime spawnDateTime, DateTime despawnDateTime) — Called when a raid unlocks. object OnRaidableResetPublicOwner(ulong ownerId, Vector3 location, float radius, List<BasePlayer> raiders, List<BaseEntity> entities, int level) — Return a non-null value to prevent the public owner reset. object OnRaidableResetPayLock(ulong ownerId, Vector3 location, float radius, List<BasePlayer> raiders, List<BaseEntity> entities, int level) — Return a non-null value to prevent the purchased lock reset. object OnRaidableBaseBackpackEject(DroppedItemContainer container, ulong playerSteamID, Vector3 location, bool allowPVP, int level, BasePlayer owner, List<BasePlayer> raiders, string baseName, bool playersLootable) — Return a non-null value to prevent Raidable Bases from ejecting the backpack. void OnRaidableBaseBackpackEjected(BasePlayer player, ulong playerSteamID, BaseEntity container, Vector3 location, bool allowPVP, int level, BasePlayer owner, List<BasePlayer> raiders, string baseName) — Called after a backpack or corpse container is ejected. object OnRaidablePlayerCorpseCreate(PlayerCorpse corpse, Vector3 location, bool allowPVP, int level, BasePlayer owner, List<BasePlayer> raiders, string baseName, bool playersLootable) — Return a non-null value to prevent Raidable Bases corpse handling. void OnRaidableLootDestroyed(Vector3 location, float radius, int lootRemaining, StorageContainer container, int level) — Called when a tracked loot container is destroyed. void OnRaidableBaseHint(BasePlayer player, Vector3 location, float radius, int level, int lootRemaining, BasePlayer owner, List<BasePlayer> raiders) — Called after loot hints are drawn. void OnRaidableTableLoaded(string filename, int count, string serializedLoot) — Called after a loot table is loaded. object OnRaidableNpcStrip(BasePlayer npc, int reason) — Return a non-null value to prevent inventory stripping. object OnBlockRaidableBasesTeleport(BasePlayer player, Vector3 location) — Return a non-null value to allow another plugin to override RB's teleport block. object CanRaidableBasesRemoveClutter(BaseEntity entity, Vector3 location, float radius, bool kill) — Return a non-null value to prevent clutter removal or ejection. object OnPurchaseBase(BasePlayer buyer, BasePlayer recipient) — Return a non-null value to stop the no-argument purchase flow. object OnPurchaseTakePayments(BasePlayer buyer, BasePlayer recipient, string value, string mode) — Return a non-null value to replace or stop the normal payment flow. float GetGridWaitTime() — Return a float to override the grid coroutine wait time. int GetGridWaitThreshold() — Return an int to override how many grid checks occur before yielding.
Callable API methods
bool AddLootToDifficultyProfile(string mode, List<object[]> lootObjects) — Adds loot entries to a difficulty profile. float GetSpawnHeight(Vector3 position, bool max = true, bool shouldSkipSmallRock = false, int mask = 8454145, BasePlayer player = null) — Returns the spawn height calculated by Raidable Bases. List<string> GetRaidableModes() — Returns the configured difficulty names. List<(string mode, int level)> GetAllDifficulties() — Returns difficulty names and numeric levels. bool HasPVPDelay(ulong userid) — Returns true while the player has an active PVP delay. int GetAllEventsCount() — Returns the total number of active raid objects. int GetActiveEventCount() — Returns the number of raids with progress. List<(Vector3 location, string mode, int level, bool allowPVP, string id, float unused1, float unused2, float unused3, ulong ownerId, BasePlayer owner, List<BasePlayer> raiders, List<BasePlayer> intruders, HashSet<BaseEntity> entities, string baseName, DateTime spawnDateTime, DateTime despawnDateTime, float protectionRadius, int lootRemaining)> GetAllEvents() — Returns information for all current raids. void GetAllEventsNonAlloc(List<(Vector3 location, string mode, int level, bool allowPVP, string id, float unused1, float unused2, float unused3, ulong ownerId, BasePlayer owner, List<BasePlayer> raiders, List<BasePlayer> intruders, HashSet<BaseEntity> entities, string baseName, DateTime spawnDateTime, DateTime despawnDateTime, float protectionRadius, int lootRemaining)> results) — Fills a supplied list with current raid information. bool EventTerritory(Vector3 position, float extra = 0f) — Returns true when the position is inside an event. bool EventTerritoryAny(Vector3[] positions, float extra = 0f) — Returns true when any supplied position is inside an event. bool EventTerritoryAll(Vector3[] positions, float extra = 0f) — Returns true when all supplied positions are inside events. List<BasePlayer> GetPlayersFrom(Vector3 position, float extra = 0f, bool intruders = false) — Returns raiders or intruders from the event at the position. BasePlayer GetOwnerFrom(Vector3 position, float extra = 0f) — Returns the owner of the event at the position.