
NPC Defenders

Give your players backup. Throw a defender item and armed NPCs show up where it lands to guard you and your team, then leave when their time is up.
Permissions
| 1 | npcdefenders.admin Use /defender |
Commands
| 1 | /defender <item> [amount] Give yourself defender items |
| 2 | /defender list Show every defender item in the config |
| 3 | defender <steamid> <item> [amount] Console: give a player defender items (server console, RCON or admins only) |
Example: /defender little or /defender xlarge 3
What defenders do
- Throw or drop the item like a flashbang. You have to be able to build where you're standing, be on the ground, and not be on the cargo ship.
- A few seconds later the defenders appear where it landed, and the item can go off as a real flashbang if you want it to.
- They protect their owner, and the owner's team when "Ignore Owner's Team" is on. They go after hostile players and hostile NPCs like scientists that come into range.
- If an animal attacks the owner, a teammate or a defender, they take it down. Other wildlife is left alone.
- They can move through player bases, including upper floors and cave or cliff bases, and they follow their target up and down stairs.
- Turrets owned by the defender's owner won't shoot them, and defenders never hurt each other.
- They leave no corpse or loot behind.
- Each item gets a scientist outfit to match its tier and a random weapon, or a random kit from its kit list if you use the Kits plugin.
- "PvE Mode" makes defenders ignore real players completely.
- With "Block Landing In Other Players' Building Areas" on, a defender item that lands in someone else's base spawns nothing and is returned.
Defender items
Five tiers ship by default: Little, Small, Medium, Large and Xlarge. Each one has its own skin ID, number of defenders, flashbang toggle, stay time, health, damage multiplier, aim spread, sense range, names and kits. Add your own by copying one and giving it a new name and a unique skin ID. In names, $displayName becomes the owner's name and $displayNames becomes "owner's".
Configuration
| 1 | { |
| 2 | "General": { |
| 3 | "PvE Mode (defenders ignore real players)": false, |
| 4 | "Block Landing In Other Players' Building Areas": true |
| 5 | }, |
| 6 | "Defender Items (item name: settings)": { |
| 7 | "Little": { |
| 8 | "Item Skin ID (must be unique per item)": 2890862070, |
| 9 | "Defenders Spawned": 1, |
| 10 | "Flashbang When Thrown": true, |
| 11 | "Stay Time (minutes)": 5, |
| 12 | "Ignore Owner's Team": true, |
| 13 | "Health": 100.0, |
| 14 | "Damage Multiplier": 1.0, |
| 15 | "Aim Spread Multiplier (higher = less accurate)": 2.0, |
| 16 | "Sense Range (meters)": 12.0, |
| 17 | "Names ($displayName = owner, $displayNames = owner's)": [ |
| 18 | "$displayNames Defender" |
| 19 | ], |
| 20 | "Kits (picked at random, needs the Kits plugin)": [] |
| 21 | } |
| 22 | } |
| 23 | } |
Small, Medium, Large and Xlarge use the same settings with their own skin ID and health (110, 120, 130 and 150).
NPCDefenders.json
| 1 | { |
| 2 | "General": { |
| 3 | "PvE Mode (defenders ignore real players)": false, |
| 4 | "Block Landing In Other Players' Building Areas": true |
| 5 | }, |
| 6 | "Defender Items (item name: settings)": { |
| 7 | "Little": { |
| 8 | "Item Skin ID (must be unique per item)": 2890862070, |
| 9 | "Defenders Spawned": 1, |
| 10 | "Flashbang When Thrown": true, |
| 11 | "Stay Time (minutes)": 5, |
| 12 | "Ignore Owner's Team": true, |
| 13 | "Health": 100.0, |
| 14 | "Damage Multiplier": 1.0, |
| 15 | "Aim Spread Multiplier (higher = less accurate)": 2.0, |
| 16 | "Sense Range (meters)": 12.0, |
| 17 | "Names ($displayName = owner, $displayNames = owner's)": [ |
| 18 | "$displayNames Defender" |
| 19 | ], |
| 20 | "Kits (picked at random, needs the Kits plugin)": [] |
| 21 | }, |
| 22 | "Small": { |
| 23 | "Item Skin ID (must be unique per item)": 2890862657, |
| 24 | "Defenders Spawned": 1, |
| 25 | "Flashbang When Thrown": true, |
| 26 | "Stay Time (minutes)": 5, |
| 27 | "Ignore Owner's Team": true, |
| 28 | "Health": 110.0, |
| 29 | "Damage Multiplier": 1.0, |
| 30 | "Aim Spread Multiplier (higher = less accurate)": 2.0, |
| 31 | "Sense Range (meters)": 12.0, |
| 32 | "Names ($displayName = owner, $displayNames = owner's)": [ |
| 33 | "$displayNames Defender" |
| 34 | ], |
| 35 | "Kits (picked at random, needs the Kits plugin)": [] |
| 36 | }, |
| 37 | "Medium": { |
| 38 | "Item Skin ID (must be unique per item)": 2890862798, |
| 39 | "Defenders Spawned": 1, |
| 40 | "Flashbang When Thrown": true, |
| 41 | "Stay Time (minutes)": 5, |
| 42 | "Ignore Owner's Team": true, |
| 43 | "Health": 120.0, |
| 44 | "Damage Multiplier": 1.0, |
| 45 | "Aim Spread Multiplier (higher = less accurate)": 2.0, |
| 46 | "Sense Range (meters)": 12.0, |
| 47 | "Names ($displayName = owner, $displayNames = owner's)": [ |
| 48 | "$displayNames Defender" |
| 49 | ], |
| 50 | "Kits (picked at random, needs the Kits plugin)": [] |
| 51 | }, |
| 52 | "Large": { |
| 53 | "Item Skin ID (must be unique per item)": 2891395741, |
| 54 | "Defenders Spawned": 1, |
| 55 | "Flashbang When Thrown": true, |
| 56 | "Stay Time (minutes)": 5, |
| 57 | "Ignore Owner's Team": true, |
| 58 | "Health": 130.0, |
| 59 | "Damage Multiplier": 1.0, |
| 60 | "Aim Spread Multiplier (higher = less accurate)": 2.0, |
| 61 | "Sense Range (meters)": 12.0, |
| 62 | "Names ($displayName = owner, $displayNames = owner's)": [ |
| 63 | "$displayNames Defender" |
| 64 | ], |
| 65 | "Kits (picked at random, needs the Kits plugin)": [] |
| 66 | }, |
| 67 | "Xlarge": { |
| 68 | "Item Skin ID (must be unique per item)": 2890862889, |
| 69 | "Defenders Spawned": 1, |
| 70 | "Flashbang When Thrown": true, |
| 71 | "Stay Time (minutes)": 5, |
| 72 | "Ignore Owner's Team": true, |
| 73 | "Health": 150.0, |
| 74 | "Damage Multiplier": 1.0, |
| 75 | "Aim Spread Multiplier (higher = less accurate)": 2.0, |
| 76 | "Sense Range (meters)": 12.0, |
| 77 | "Names ($displayName = owner, $displayNames = owner's)": [ |
| 78 | "$displayNames Defender" |
| 79 | ], |
| 80 | "Kits (picked at random, needs the Kits plugin)": [] |
| 81 | } |
| 82 | } |
| 83 | } |


Trusted hosting partner. Affordable game servers with solid support and panels.
Visit site ↗
Zombie Animals$19.99
Escape Room$19.99
Computer Station Adventure$29.99
Holy Grail$19.99
WirelessPower$19.99
SamSite Drop$10.00
Combat Turrets$10.00
Better Sentry Turrets$11.99
Custom Made Supply Drops$20.00
NPC Defenders$18.00
PurgeFX$10.00
