Jump to content

Npc Random Raids 2.1.1

$22.00 $16.50
   (8 reviews)

1 Screenshot

  • 136.2k
  • 6k
  • 325.88 kB
  • Update details
    v2.1.1
    Released
    Download size 325.88 kB
    Total versions 39
    Typical update pace About every 10 days
    Freshness Updated yesterday

About Npc Random Raids

Npc Random Raids

Nobody is safe when the raiders come looking. Npc Random Raids sends squads of armed NPC raiders against your players' bases on their own terms. Farm too many scientists, clear a Raidable Base, or simply get unlucky, and a raid party shows up at your door.

The raiders surround the base, blow through it layer by layer with rockets and explosives, and hunt anyone they can see. Bring in attack helicopters, MLRS strikes and juggernaut bosses for the bigger raids. Kill every wave before time runs out and airdrops fall from the sky, or pay the raiders off with /surrender.

Tip

It comes to your players. Unlike a raid they buy for themselves, these raids are triggered by the world around them: a timer, their NPC kills, their Raidable Base wins, or a raid call flare.

Note

New in 2.1: loot thieves that rob your boxes and run, a completely new raider AI with roles, surrounding and moving around the base, pushing in through breaches, raiders that fight defenders first, Loottable support, permission-based raid types, commands on win or lose for XP and rewards, SimplePVE support and an admin debug view. Older configs upgrade themselves, there's nothing to delete.

 

 

Features

Four ways to start a raid

  • Random timer (optional). On a timer you set, there's a chance a suitable base gets raided.
  • Revenge for NPC kills (optional). Kill enough of a chosen NPC type and they come for your base. Set the kills needed, chance and delay per NPC type, or combine a whole list of NPCs into one counter.
  • Revenge for Raidable Bases (optional). Complete enough Raidable Bases of a difficulty and the raiders may strike back.
  • Raid call flares. Skinned flares thrown inside your own base call a raid of that tier. Hand them out, sell them, or let them spawn in loot crates.

Raiders that actually raid

  • They surround the base. Raiders spread out all around the base and keep moving, repositioning every few seconds. You can switch a tier to attack from one side instead.
  • Real aim. Every rocket goes at the first wall or door between the raider and its target, so a base gets opened up layer by layer.
  • Open line? They pick another wall. If the middle of the base is already blown out, raiders choose a standing wall and move to that side.
  • Roles. Each wave is split into Rocketeers who fire from a distance, Breachers who walk up and plant C4 or satchels, and Assault raiders who come in closer and hunt defenders. You set the split per tier.
  • They don't always know where your TC is. On most tiers raiders aim for the middle of the base until the last wave, then find the TC and go straight for it.
  • Pushing in. When a wall or door breaks, a few raiders go through the gap toward the target, and chat tells defenders which side was breached.
  • Limited ammo. Each raider has a set number of rockets and explosives. Once it's out, it patrols the base and fights.
  • Twig is no defence. Raiders shoot twig walls down with their guns.

Defenders come first

  • Any raider with a gun fights the player it can see, firing long bursts instead of three shots. Raiders without a gun use rockets on you. Nobody plants C4 while you're aiming at them.
  • Squad awareness. Raiders notice anyone they can see from around the base, tell nearby raiders where you are, react straight away when shot, and hunt you for a few seconds after you duck out of sight.
  • They move like players. Raiders strafe after a burst, take cover to reload and walk while shooting.
  • No friendly fire. Raiders never kill each other, whatever the weapon.

Loot thieves

  • Breach the base, lose your loot. Turn it on per tier and once a wall or door breaks, raiders near a destroyed box's loot bag or an unlocked box take what's inside.
  • Only a couple of thieves. Up to 2 raiders per raid take loot and run for an extraction point.
  • Chase them down. Anyone holding your loot wears a large backpack, and a smoke signal and map marker show where it's going.
  • Kill them, get it back. They drop a backpack with exactly what they took, lootable only by the players on the TC.
  • Leave it, lose it. Three minutes at the extraction point by default, then your loot is gone for good.

Big raids

  • Juggernauts. Boss raiders with their own health, kits, damage and names, on the waves you choose.
  • Attack helicopter support with its own health, strafes and crates.
  • MLRS strikes (optional) on the base.
  • Waves. Send the next wave on a timer, or only when the last one is dead.

Rewards and consequences

  • Win airdrops. Clear every wave and airdrops drop on the base, optionally locked to the players on the TC.
  • Surrender. /surrender pays the raiders off with any item, Economics money or ServerRewards points, and they leave.
  • NPC and airdrop loot from CustomLoot, AlphaLoot or Loottable, with vanilla loot as the fallback.
  • Commands on win or lose. Run any server commands for the players on the TC when a raid ends, per tier. Give XP, money or kits with any other plugin.

Server friendly

  • Fair targeting. Minimum base size and number of players on the TC per tier, a cooldown between raids, and an option to only raid when someone on the TC is online.
  • Permission-based raid types (optional). A tier can need a permission. If a base doesn't have it, the raid uses the closest tier that base does have.
  • Notifications. Global chat with grid and direction, map marker, world text, GameTips, an on-screen timer for the base owners and Discord webhooks.
  • PvE friendly. Works with SimplePVE and TruePVE. The raid's damage rules keep working even while your PvE plugin is switched off for a PvP or purge schedule.
  • Every message in the player's own language. All text is in the lang file.
  • Admin debug view that draws what each raider is doing.

How a raid works

  1. Something triggers it. A timer, NPC kills, a Raidable Base win or a raid call flare.
  2. Warning. Depending on your settings, players on the TC get a warning, and the server sees the grid and a map marker.
  3. The raid. Raiders spawn around the base, take up positions and start working through the walls. Waves keep coming, with juggernauts and helicopters on the tiers that have them.
  4. The end.
Result When
✅ Win Every raider in every wave is dead: win airdrops drop on the base
⏱️ Time's up The timer runs out with raiders still alive: they leave, no reward
💰 Surrender A player on the TC pays with /surrender: they leave, no reward

Each tier can run its own server commands for every online player on the TC when the raid is won or lost. Surrendering counts as a loss. Admin cancels don't run any commands.

Note

Losing your TC doesn't end the raid. Raiders keep going for the remaining walls, and you can still win the airdrops by killing every wave.

Raid tiers

Each tier is a preset in the config. Timer raids pick at random from the tiers the base qualifies for. The built-in tiers come tuned like this:

Tier Min blocks Min players on TC NPCs per wave Waves Knows the TC Rockets every Pushers Shots per burst Helicopter Surrender (Scrap)
Easy 12 1 10 2 Finds it on the last wave 8-14s Off 6 No 200
Medium 24 2 15 2 Finds it on the last wave 6-11s 2 8 Yes 400
Hard 32 3 20 2 Finds it on the last wave 5-9s 3 10 Yes 600
Expert 42 4 30 2 Yes 4-8s 4 12 Yes 800
Nightmare 60 5 30 2 Yes 3-6s 5 15 Yes 1000

Note

Add your own tier: copy a tier block in the config and give it a new name. Add it under Item profiles too if you want a raid call flare for it.

Raider AI

Every tier has an AI behaviour block in the config.

Roles

Role What it does
Rocketeer Moves around the base on the stand-off ring and fires rockets at whatever is between it and the target
Breacher Walks up to the wall in its way, plants an explosive from the tier's explosive list, then falls back
Assault Stands closer, sees further and goes after defenders on walls and roofs

Rocketeers and Assault raiders also walk in to plant an explosive now and then, instead of firing a rocket (20% of the time by default).

Surround or one side

  • Surround on (default): raiders spread out around the whole base and keep moving around it.
  • Surround off: raiders gather on one random side. Once they know the TC, Rocketeers and Breachers attack from the side closest to it, and Assault raiders patrol the other sides to split the defenders. Flankers never rocket or plant at the base.

Does the raid know where the TC is?

  • Yes: raiders aim straight at the TC from the start.
  • No: raiders aim for the middle of the base. On the wave you set (0 = the last wave) they find the TC and go for it.

Fighting defenders

Raiding stops the moment a raider sees a defender. Raiders with a gun get to a spot where they can see you and fire long bursts (Shots per burst, 0 = the whole magazine). After each burst they may strafe sideways, and when the magazine runs dry they may duck out of your line of sight to reload. When you break line of sight they hunt your last position for 8 seconds by default, then go back to raiding. Raiders whose kit has no gun use rockets on you instead.

Pushing in

When a wall or door of the raided base breaks, up to the tier's max pushers go through the gap toward the target, shooting the next piece in their way. Only Breachers and Assault raiders push.

Tip

Raiders firing too many rockets? Seconds between rockets counts per raider, and Total rockets npc can fire caps each raider's supply. Raise the interval or lower the cap for a slower siege.

Loot thieves

On by default for the expert and nightmare tiers, off for easy, medium and hard. Turn it on or off per tier with "Enabled" in the tier's Loot thieves block.

When a box is destroyed, its items stay in a loot bag on the ground. Thieves take from those bags, and from boxes with no lock or an unlocked one. Locked boxes are safe until they break.

How it works

  1. Nothing can be taken until the raid has breached the base, meaning a wall or door has been destroyed.
  2. After that, the raider closest to a loot bag or unlocked box, within 10 m, takes the loot instantly: up to 6 stacks, items on your priority list first, then the biggest stacks. Any raider can do it except juggernauts.
  3. Only 2 raiders per raid become thieves by default, and each puts on a large backpack. The whole raid can take up to 40 stacks.
  4. The thief runs to an extraction point 60 m past the edge of the base, on the side away from the defenders, marked with smoke and a red map marker. It doesn't stop to fight on the way, and chat pings the nearest one every 10 seconds.
  5. A thief that holds out at the extraction point for 3 minutes escapes, and the loot is gone.

Getting it back

Anyone holding your loot drops a backpack with it when killed. It's lootable only by the players on the TC. Raider corpses stay separate, so your loot plugins can fill those as usual and never touch the stolen items.

How the raid ends Stolen loot still being carried
Every raider killed Already dropped in backpacks
Timer runs out Lost
/surrender Dropped in backpacks where the carriers stood (set Surrendering gives the stolen loot back to false to lose it)

At the end, players on the TC get a report of how many stacks were stolen, recovered and lost.

Permissions

Permission Allows
randomraids.admin Admin commands
randomraids.use Being raided, when Player must have randomraids.use inorder to get raided is on
randomraids.ignore Never being picked for timer, revenge and NPC-kill raids
randomraids.<tier> Being raided by that tier, when the tier has Permission needed to be raided by this type on

Commands

Players

Command Description
/surrender Pay the raiders to end the raid on your base

Admins

Command Description
/randomraid here <type> Start a raid on the base you're standing in, ignoring tier permissions
/randomraid random Search for a random base to raid
/randomraid item <type> [amount] Give yourself a raid call flare
/randomraid reload Cancel every running raid
/randomraid debug Draw every raider's role, ammo, state, destination and aim, plus the ring, target and breaches (needs a real admin)
/randomraid terrain Shows the terrain colliders where you stand (for the block list)

Server console

Command Description
randomraid <playerID> <type> [amount] Give a player a raid call flare (for shops and GUI plugins)
randomraid.debug One line per running raid: wave, raiders alive by role, fighting, pushing, breaches and time left

Loot

Loot only drops from raiders when the tier has Npc drop loot on death set to true. Raider corpses and win airdrops each use the first source that's set up, in this order:

  1. CustomLoot
  2. AlphaLoot
  3. Loottable
  4. Default loot: vanilla scientist loot on corpses, normal supply drop loot in airdrops

If a list has more than one name, one is picked at random. If a plugin isn't loaded or a preset doesn't exist, that source is skipped and the console tells you once.

Hosting partner

Game hosting perfected, that's Physgun.
Join the thousands of server owners using Physgun to take their game server communities to the top.

Get your server at Physgun

Installation

  1. Upload RandomRaids.cs to oxide/plugins.
  2. Open oxide/config/RandomRaids.json and choose your triggers. The timer, NPC-kill and Raidable Base triggers are all off by default.
  3. (Optional) Install Kits and create kits for each tier's raiders and juggernauts.
  4. Reload the plugin.
  5. Stand in a base and type /randomraid here easy to see it in action.

Note

Updating from 2.0.x? Just replace the file. Your config keeps all its settings and gets the new ones added on load. Upgraded tiers get the standard AI values: raiders surround the base, find the TC on the last wave, fire rockets every 5-10s and up to 3 push in. A fresh config gets the per-tier values from the table above.

Configuration

Spoiler

Config (oxide/config/RandomRaids.json), shortened to one tier

{
  "Random settings": {
    "Total raids allowed at once": 2,
    "A player on the tc must be online": true,
    "Use random raid timer": false,
    "Random raid timer time": 3600,
    "Chance of random raid at time (1-100)": 10,
    "Authorized players Cooldown minutes before random raided again by chance": 1440,
    "The maximum amount of time a rocket will fly before exploding": 4.0,
    "Npc spawn damage delay": 2.0,
    "Display global chat message on raid start": true,
    "Display global map marker on raid start": true,
    "Display Gui to base owners": false,
    "GUI AnchorMin": "0.807 0.96",
    "GUI AnchorMax": "0.996 0.99",
    "GUI2 AnchorMin": "0.807 0.92",
    "GUI2 AnchorMax": "0.996 0.95",
    "Use GameTip announcement to player": false,
    "GameTip display time in seconds": 2.0,
    "Disable radio chatter": false,
    "Wait until all NPC are dead before sending in next wave": false,
    "Player must have randomraids.use inorder to get raided": false,
    "Use world text to show base location": false,
    "World text display time": 60.0,
    "Lock airdrop to event players": false,
    "Use discord Webhook": false,
    "Discord Webhook URL": "",
    "Discord Avatar URL": "http://images.myvector.xyz/discordimage.png"
  },
  "All Random Raid Types": {
    "Random raid types": {
      "easy": {
        "Total auth players on tc needed": 1,
        "Total npcs per wave": 10,
        "How many extra waves": 1,
        "Seconds untell next wave": 120,
        "Npc fires Mlrs at base": false,
        "Send in Attack Copter support": false,
        "Total event time in seconds": 640,
        "Npc drop loot on death": true,
        "Spawn health of the npc": 100.0,
        "Total rockets npc can fire": 20,
        "Total explosives npc can toss": 10,
        "Total AirDrops on event win": 1,
        "Rocket damage scale": 1.0,
        "Player damage scale from npc": 1.0,
        "Auto turret damage scale to npc": 1.0,
        "Raiders aimConeScale": 2.0,
        "Throw Explosive item shortnames": [ "explosive.timed", "explosive.satchel" ],
        "Spawn Attack Heli profile": [ "easy" ],
        "Spawn kits for the npcs": [],
        "All npc receive the same kit": false,
        "Names to give the npcs": [ "Cobalt Scientist" ],
        "CustomLoot config profile name": [],
        "CustomLoot config profile names for AirDrop": [],
        "AlphaLoot config profile names": [],
        "AlphaLoot config profile names for AirDrop": [],
        "Juggernaut config": [ "easy" ],
        "Surrender Item": "scrap",
        "Surrender Item Name": "Scrap",
        "Surrender costs": 200,
        "Notify owners of incoming Random Raid Triggered By Timer": false,
        "Min Base Blocks Size": 12,
        "Permission needed to be raided by this type": false,
        "Permission for this type": "randomraids.easy",
        "Loottable custom preset names": [],
        "Loottable custom preset names for AirDrop": [],
        "Loot thieves": {
          "Enabled": false,
          "Max raiders that take loot per raid": 2,
          "Distance a raider can take loot from": 10.0,
          "Raiders also take from unlocked boxes that are still standing": true,
          "Max item stacks each raider can carry": 6,
          "Max item stacks stolen per raid": 40,
          "Can rob the tool cupboard": false,
          "Containers that can be robbed (prefab short names)": [ "box.wooden.large", "woodbox_deployed", "locker.deployed", "fridge.deployed", "coffinstorage", "storage_barrel_b", "storage_barrel_c" ],
          "Items taken first, in order (shortnames)": [ "explosive.timed", "explosive.satchel", "ammo.rocket.basic", "ammo.rifle.explosive", "rocket.launcher", "explosives", "rifle.ak", "rifle.lr300", "rifle.l96", "rifle.bolt", "rifle.m39", "lmg.m249", "smg.mp5", "sulfur", "gunpowder", "metal.refined", "scrap", "techparts", "targeting.computer" ],
          "Items never taken (shortnames)": [],
          "Extraction point distance from the base edge": 60.0,
          "Seconds at the extraction point before the loot is gone": 180.0,
          "Surrendering gives the stolen loot back": true
        },
        "Commands to run for each online player on the TC when the raid is won ({steamid} {name} {type} {grid})": [],
        "Commands to run for each online player on the TC when the raid is lost ({steamid} {name} {type} {grid})": [],
        "AI behaviour": {
          "NPCs know where the TC is (false = they raid one random side until they find it)": false,
          "Raiders surround the base and keep moving around it (false = they attack from one side)": true,
          "Wave the NPCs find the TC when they do not know it (0 = last wave)": 0,
          "Raid side width in degrees when the TC is unknown": 70.0,
          "Stand-off ring min distance from the base centre": 15.0,
          "Stand-off ring max distance from the base centre": 35.0,
          "Seconds between rockets min": 8.0,
          "Seconds between rockets max": 14.0,
          "Seconds between explosive plants min (per breacher)": 8.0,
          "Seconds between explosive plants max (per breacher)": 14.0,
          "Chance in percent a Rocketeer or Assault walks in to plant an explosive instead of firing a rocket": 20,
          "Seconds raiders keep hunting a defender they lost sight of": 8.0,
          "Shots per burst (0 = whole magazine)": 6,
          "Chance in percent to strafe after each burst": 40,
          "Chance in percent to take cover while reloading": 30,
          "Percent of Assault raiders that flank from other sides when the TC is known (0 = all on the TC side)": 100,
          "NPC sense range": 25.0,
          "Role split in percent (Rocketeer circles and rockets, Breacher plants explosives, Assault hunts defenders)": {
            "Rocketeer": 70,
            "Breacher": 10,
            "Assault": 20
          },
          "Push into the base through a breached wall or door": false,
          "Max NPCs pushing in at once": 0
        }
      }
    }
  },
  "AttackCopter profiles": {
    "Profile Names": {
      "easy": {
        "Heli float health": 1000.0,
        "Total crates to drop": 2,
        "Heli strafe cooldown": 50.0,
        "Heli can strafe x times": 3
      }
    }
  },
  "Block Random raid in colider": {
    "Blocked": [ "iceberg", "ice_berg", "ice_sheet", "icesheet", "cliff", "cave" ]
  },
  "Raidable Base plugin settings": {
    "Raid player on Raidable Base Completed": false,
    "Warn player in chat of upcoming revenge on them": false,
    "Raidable Base Settings": {
      "0": {
        "Total amount of mode complete before ever has chance": 3,
        "Reset kill count after chance happened": true,
        "Raidable Base Completed Delay Before Raid chance happens": 320.0,
        "raid chance (1-100)": 10,
        "Cooldown minutes after raid chance happenes": 1440,
        "Random raid to send them if chance": [ "easy" ]
      }
    }
  },
  "Trigger by npc kills": {
    "Enable log kills and random raid on kills": false,
    "Reset npc kills on player raided.": false,
    "Warn player in chat of upcoming revenge on them": false,
    "Use total players on tc check on type": false,
    "Use min Base size check on type": false,
    "Enable combine npc kills list": false,
    "Combine npc kills list": [ "scientistnpc_patrol", "scientistnpc_heavy" ],
    "Combine Profile to use": {
      "Total amount of Npc killed before chance can happen": 70,
      "Reset kill count after chance happened": false,
      "Delay before chance happens": 320.0,
      "Raid chance (1-100)": 10,
      "Cooldown minutes before chance can happen again": 1440,
      "Random raid to send them if chance": [ "easy" ]
    },
    "Npc kills settings": {
      "scientistnpc_heavy": {
        "Total amount of Npc killed before chance can happen": 30,
        "Reset kill count after chance happened": false,
        "Delay before chance happens": 320.0,
        "Raid chance (1-100)": 10,
        "Cooldown minutes before chance can happen again": 1440,
        "Random raid to send them if chance": [ "medium" ]
      }
    }
  },
  "Juggernaut profiles": {
    "easy": {
      "Juggernaut spawns on witch Wave number/Total to spawn": { "1": 1 },
      "Spawn health of the juggernaut": 500.0,
      "Player damage scale from the juggernaut": 1.0,
      "juggernaut aimConeScale": 2.0,
      "Names to give the juggernaut": [ "Juggernaut Raider" ],
      "Spawn kits for the juggernaut": []
    }
  },
  "Item profiles": {
    "easy": {
      "Raid call item skin": 2893480896,
      "Raid call item name": "Npc Raid Level 1",
      "LootContainer Spawn enabled": false,
      "Can Spawn In LootContainer types": [ "crate_normal", "crate_normal_2" ],
      "LootContainer Spawn Chance 1-100": 5.0
    }
  }
}

Key settings explained

Setting What it does
Use random raid timer Turns on timer raids. Every Random raid timer time seconds there's a Chance of random raid that a base is picked
Authorized players Cooldown minutes How long players on a raided TC are safe from another raid by chance
Wait until all NPC are dead before sending in next wave true = the next wave only comes once the last one is dead, false = waves come on the timer
Total auth players on tc needed / Min Base Blocks Size Which bases qualify for a tier
Permission needed to be raided by this type true = the base needs a player with Permission for this type. Otherwise the raid uses the closest tier the base has permission for, then the closest tier that needs no permission. If none fit, there's no raid
How many extra waves Waves after the first one, so 1 means 2 waves in total
Total rockets npc can fire / Total explosives npc can toss Each raider's supply. When both run out it patrols and fights
Surrender Item An item shortname, economics or serverrewards
Juggernaut spawns on witch Wave number/Total to spawn Which wave gets juggernauts, and how many ("1": 2 = 2 on wave 1)
Raiders surround the base true = raiders move around the whole base, false = they attack from one side
NPCs know where the TC is false = raiders aim for the middle of the base until they find the TC
Wave the NPCs find the TC The wave they find it on when they don't know it. 0 = the last wave
Stand-off ring How far from the base centre Rocketeers stand. Bigger bases push the ring out on their own
Role split in percent How each wave is split between Rocketeers, Breachers and Assault raiders
Shots per burst How many rounds a raider fires before pausing. 0 = always the whole magazine
Chance in percent to strafe after each burst How often a raider sidesteps after a burst
Chance in percent to take cover while reloading How often a raider moves out of the defender's line of sight to reload
Percent of Assault raiders that flank Only used when surround is off: the share of Assault raiders that patrol the other sides
Commands to run ... when the raid is won / lost Server commands run once for each online player on the TC. {steamid}, {name}, {type} and {grid} are filled in. Example: xp add {steamid} 500
Loot thieves / Enabled Turns loot thieves on for that tier
Seconds at the extraction point How long a thief holds the extraction point before the loot is gone
Max raiders that take loot per raid How many raiders in one raid can become thieves
Distance a raider can take loot from How close a raider has to be to a loot bag or unlocked box, in metres
Containers that can be robbed Used when taking from standing boxes is on: prefab short names of the boxes raiders can take from. The TC has its own Can rob the tool cupboard setting
Items taken first, in order The stacks thieves take first. Anything else is taken biggest stack first
Max item stacks stolen per raid A cap on how much one raid can take in total
NPC sense range How far raiders notice defenders. It never drops below what's needed to cover the whole base from the ring
Block Random raid in colider Terrain names where raids can't start. Use /randomraid terrain to find names
Spoiler

Lang file (oxide/lang/en/RandomRaids.json)

{
  "warningRevengeGrid": "<color=orange>[</color><color=red>Cobalt Scientist</color><color=orange>]</color> So you raided our base at {0}, now we are coming for your base at {1} in {2}m {3}s if you don't <color=#ce422b>/surrender</color>.",
  "warningRevengeGridNpc": "<color=orange>[</color><color=red>Cobalt Scientist</color><color=orange>]</color> So you think you can keep killing us? Now we are coming for your base at {0} in {1}m {2}s if you don't <color=#ce422b>/surrender</color>.",
  "gridMessageDirection": "<color=orange>[</color><color=red>RANDOM RAID DETECTION</color><color=orange>]</color> in grid {0}, {1} of you {2} yards!",
  "RaidersLeaving": "<color=orange>[</color><color=red>Cobalt Scientist</color><color=orange>]</color> Do not make us come back here!",
  "negotiateMessageNew": "<color=orange>[</color><color=red>Cobalt Scientist</color><color=orange>]</color> {0} {1} and we forget about this little mistake you made.",
  "payedAndSurrenderedNew": "<color=orange>[</color><color=red>{0}</color><color=orange>]</color> surrendered by paying {1} {2}.",
  "msgNorth": "North",
  "msgNorthEast": "NorthEast",
  "msgEast": "East",
  "msgSouthEast": "SouthEast",
  "msgSouth": "South",
  "msgSouthWest": "SouthWest",
  "msgWest": "West",
  "msgNorthWest": "NorthWest",
  "usageHere": "/randomraid here <raid type>",
  "usageItem": "/randomraid item <raid type>",
  "NoConfigType": "You do not have a config type of {0}",
  "BaseToSmallYet": "This base is to small yet!",
  "AdminRaidStarted": "You just started a raid here!",
  "terrainBlocked": "This base in on unradable terrain!",
  "usageChatAdmin": "/randomraid <here/random/reload>",
  "BaseToCose": "Your can not start a Npc raid when you are close to another ongoing one!",
  "gaveProtector": "<color=#ce422b>You have just got a {0}!</color>",
  "droped": "<color=#ce422b>You'r inventory was full so i dropped your {0} on the ground!</color>",
  "blocked": "<color=#ce422b>You are building blocked!</color>",
  "NoValidItem": "That is not a valid config item {0}!",
  "NoPlayer": "Player not found!",
  "ammountNot": "Amount not set correctly",
  "NeedBuildingPrivToss": "You must be in building priv to toss this.",
  "Blockedhere": "<color=orange>The Admin has blocked raids on this terrain type.</color>",
  "BlockedhereWater": "<color=orange>You can not start the event underground.</color>",
  "BlockedhereWaterDeep": "<color=orange>You can not start the event in this water depth.</color>",
  "guiMessage": "<color=#ce422b>Wave</color>: <color=#FFFF00>{0}</color>/<color=#FFFF00>{1}</color>  <color=#ce422b>Raiders</color>:<color=#FFFF00> {2}</color>  <color=#ce422b>{3}</color>: <color=#FFFF00>{4}</color>m <color=#FFFF00>{5}</color>s",
  "guiMessageSurrenderNew": "<color=#ce422b>Surrender with</color> /surrender <color=#ce422b>for</color> <color=#FFFF00>{0}</color> {1}.",
  "nextWave": "Next Wave",
  "endEvent": "Ends In",
  "locateBaseText": "Raid Incoming Here",
  "MaxEvents": "The Server Is At Max Raid Events, Please Try Again Later.",
  "IncomingRandom": "A Group of raiders are headed to your base in {0}.",
  "LockedLoot": "This loot is locked to event players.",
  "inEvent": "You are already in a event!",
  "BreachChat": "<color=orange>[</color><color=red>Cobalt Scientist</color><color=orange>]</color> We breached your wall on the {0} side!",
  "AdminMissingPerm": "You are missing {0}",
  "AdminNoTc": "There needs to be a tc here to start or your not in tc range!",
  "AdminSearching": "Looking for random base to raid!",
  "AdminStopping": "Stoping all raids!",
  "AdminUsage": "<color=red>Admin Command Usage</color>:\n\n<color=orange>/randomraid here <type></color> - Will start a random raid at your location.\n\n<color=orange>/randomraid random</color> - Will start a searching for a random raid location.\n\n<color=orange>/randomraid item <type></color> - Will give you raid item.\n\n<color=orange>/randomraid reload</color> - Will cancel all raid events.\n\n<color=orange>/randomraid debug</color> - Toggle the raid debug view.",
  "AdminRaidFound": "Random raid found in grid: {0}",
  "AdminNoLocation": "No good random raid locations at this time.",
  "RaidCalledGrid": "You are now going to get Npc raided in grid: {0}",
  "ConsoleUsage": "Usage: randomraid <playerID> <itemType>",
  "ItemListHeader": "<color=#ce422b>Raid Item List Usage /randomraidsitem <config name></color>\n\n",
  "ItemListLine": "<color=#FFFF00>Config Name</color>: {0} <color=#FFFF00>Item Name:</color> {1}\n",
  "RewardDropedOnGround": "<color=#ce422b>Your inventory was full so your reward was dropped on the ground!</color>",
  "DebugOn": "<color=orange>Raid debug view on. Only raids within 200m are drawn.</color>",
  "DebugOff": "<color=orange>Raid debug view off.</color>",
  "DebugAdminOnly": "<color=orange>The debug view needs a real admin (ddraw only draws for admins).</color>",
  "LootBoxRobbed": "<color=orange>[</color><color=red>Cobalt Scientist</color><color=orange>]</color> We are taking your loot from the {0} side!",
  "LootExtracting": "<color=orange>[</color><color=red>Cobalt Scientist</color><color=orange>]</color> Your loot is leaving through grid {0}. Stop us if you can!",
  "LootPing": "<color=#ce422b>Stolen loot</color> is <color=#FFFF00>{0}</color> of you, <color=#FFFF00>{1}</color> yards away!",
  "LootEscaped": "<color=orange>[</color><color=red>Cobalt Scientist</color><color=orange>]</color> We got away with {0} stacks of your loot!",
  "LootRecovered": "<color=#ce422b>A carrier is down.</color> It dropped a backpack with {0} stacks of your stolen loot!",
  "LootSummary": "<color=#ce422b>Raid loot report</color>: {0} stacks stolen, {1} recovered, {2} lost.",
  "BreachChatPush": "<color=orange>[</color><color=red>Cobalt Scientist</color><color=orange>]</color> We breached your wall on the {0} side, we are coming in!"
}

Optional plugins

None are required. Npc Random Raids connects to these on its own when they're installed:

Plugin Used for
Kits Raider and juggernaut loadouts
CustomLoot Raider corpse and airdrop loot
AlphaLoot Raider corpse and airdrop loot
Loottable Raider corpse and airdrop loot
Raidable Bases Revenge raids, and keeping raids away from Raidable Bases
Economics Paying with /surrender
ServerRewards Paying with /surrender
SimplePVE / TruePVE Raid combat works on PvE servers

FAQ

How is this different from NpcRaiders?

NpcRaiders lets players call a raid on their own base and pay for it. Npc Random Raids sends raids to players as a consequence of what they do on the server, with helicopters, juggernauts, surrender and win airdrops.

Does anything happen out of the box?

Only raid call flares and admin commands. The timer, NPC-kill and Raidable Base triggers are off until you turn them on in the config.

Can I protect some players from raids?

Yes. Give them randomraids.ignore, or turn on Player must have randomraids.use inorder to get raided and only grant it to players who opt in.

Can I make a tier VIP only?

Yes. Turn on Permission needed to be raided by this type for that tier and grant randomraids.<tier> to the group. Bases without it get the closest tier they qualify for.

Can raiders really take my items?

Only on tiers where loot thieves are turned on: expert and nightmare by default. After a breach, up to 2 raiders near loot can take it from the loot bags of destroyed boxes and from unlocked boxes. Locked boxes are safe until they break. You choose what's never taken, how much one raid can steal and whether standing boxes can be taken from.

How do I get stolen loot back?

Kill whoever is carrying it before time runs out at the extraction point. They drop a backpack only the players on the TC can open.

Will my loot plugin overwrite the stolen items?

No. Stolen items drop in their own backpack, separate from the raider's corpse. CustomLoot, AlphaLoot and Loottable only fill the corpse. The backpack a raider wears is only for show and can't be picked up.

Can I give XP or other rewards when a raid ends?

Yes. Add server commands to the tier's win and lose command lists, using {steamid} for the player. They run once for each online player on the TC. A loss is the timer running out or a surrender.

What happens if the TC is destroyed?

The raid keeps going. Raiders turn on the remaining walls, and defenders can still win the airdrops by killing every wave.

Can other players help defend?

Yes. Anyone can shoot the raiders, and the raiders will fight anyone they can see near the base.

Do I need to delete my config when updating to 2.1?

No. New settings are added to your existing config on load, and everything you've set stays as it is.

The raiders only shoot rockets, I want more C4.

Raise the Breacher share in the role split, lower Seconds between explosive plants, or raise the walk-in plant chance. Make sure the tier's Throw Explosive item shortnames list isn't empty and Total explosives npc can toss is above 0.

Raids won't start on my map's terrain.

That terrain is in the Block Random raid in colider list. Stand there, use /randomraid terrain to see the collider names, and remove the one you want to allow.

For developers

void OnRandomRaidStart(string raidType, Vector3 location)
void RandomRaidEventEnd(Vector3 location)
void OnRandomRaidRaiderSpawned(Vector3 location, BasePlayer raider, object juggernautConfig)
void OnRandomRaidHeliSpawned(Vector3 location, PatrolHelicopter heli)
void OnRandomRaidWin(SupplyDrop drop, List<ulong> players)
void OnRandomRaidLootStolen(Vector3 location, BasePlayer raider, BaseEntity target, int stacks)
void OnRandomRaidLootRecovered(Vector3 location, DroppedItemContainer bag, int stacks)
void OnRandomRaidLootEscaped(Vector3 location, BasePlayer raider, int stacks)
object BaseTCCanBeRaided(BuildingPrivlidge privilege)

BaseTCCanBeRaided can return true or false to decide whether a base can be raided.

Support

Need help or found a bug? Open a support ticket on this page.

Check out my other plugins

  • Like 5
  • Love 2

User Feedback

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
3.4m
Total downloads
Customers
12.5k
Customers served
Files Sold
177.1k
Total sales
Payments
3.9m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.