NPC Bases

Paid NPC Bases 1.3.1

Requires

---
Works with

---
Commands
Open me

Console, require admin rights:
  • npcbases spawn <optional: shortname from config> - spawn base randomly in the world
  • npcbases spawnatme <optional: shortname from config> - spawn base on your position

---
Information
Open me

Test base design: Click on me!

- What is radius in base settings?
Its radius for despawning base parts + zone manager zone. Use it a bit higher than you base is (1 foundation = 3m)

- Do i need to power up or fill with ammo?
If you will turn "Turrets have infinite ammo" in base settings, it will fill turrets automatically

- My base is spawning clipped in ground (or what is base offset)
When you copy bases in CopyPaste it sometimes fucks up height. If your base is clipping in terrain, use offset and it will be okay (1 foundation = 3m)

- How to use it with PVE servers?
You need to set rule in TruePVE and define there zone name/id

---
Configuration
Open me

JSON:
{
  "Debug mode": false,
  "Maximal amount of bases": 3,
  "Base spawn check interval": 300,
  "NPC distance check time": 30,
  "NPC maximal distance": 50,
  "Use Random Spawns": false,
  "Use Random Positions": false,
  "Use Power Spawn": false,
  "Entries": [
    {
      "Shortname": "test",
      "Display name": "Test Base",
      "Building settings": [
        {
          "Copy-Paste base name": "test",
          "Copy-Paste base position offset": {
            "x": 0.0,
            "y": 0.0,
            "z": 0.0
          },
          "Building radius": 50.0,
          "Spawns file name": ""
        },
        {
          "Copy-Paste base name": "test",
          "Copy-Paste base position offset": {
            "x": 0.0,
            "y": 0.0,
            "z": 0.0
          },
          "Building radius": 50.0,
          "Spawns file name": ""
        }
      ],
      "General settings": {
        "Modify turrets": true,
        "Modify cupboard": true,
        "Spawn defenders": false,
        "Maximal amount of different defender types": 5,
        "Randomize defenders types": true,
        "Show message on spawning": true,
        "Message on spawning": [
          "Base {name} was spawned on {grid} {position}",
          "SPAWNING ??? BASE ON {grid} {position}!!! WHO KNOW WHAT IS IT?"
        ]
      },
      "Marker settings": {
        "Enabled": false,
        "Marker radius": 0.4
      },
      "Zone settings": {
        "Enabled": false,
        "Zone name": "",
        "Zone id": 0,
        "Show dome": true,
        "Show message on joining": true,
        "Show message on leaving": true,
        "Message on joining": [
          "You are entering RAID BASE ZONE!",
          "You can't escape death..."
        ],
        "Message on leaving": [
          "You are leaving RAID BASE ZONE!",
          "RUN FOREST, RUUUUUUUUUUUN"
        ],
        "Flags": [
          "autolights",
          "true",
          "ejectsleepers",
          "true",
          "nobuild",
          "true",
          "notp",
          "true",
          "nostability",
          "true"
        ]
      },
      "Self destroy": {
        "Enabled": true,
        "Global self destroy timer (seconds)": 3600,
        "Self destroy timer after raid (seconds)": 600,
        "Building parts destroyed to start self-destroy": 25,
        "Building parts check interval": 60
      },
      "Defenders settings": [
        {
          "Shortname": "assets/prefabs/npc/murderer/murderer.prefab",
          "Respawning cooldown": 3600,
          "Maximal amount of defenders": 10,
          "Health": 200,
          "Kit name": ""
        },
        {
          "Shortname": "assets/prefabs/npc/murderer/murderer.prefab",
          "Respawning cooldown": 3600,
          "Maximal amount of defenders": 10,
          "Health": 200,
          "Kit name": ""
        }
      ]
    },
    {
      "Shortname": "test",
      "Display name": "Test Base",
      "Building settings": [
        {
          "Copy-Paste base name": "test",
          "Copy-Paste base position offset": {
            "x": 0.0,
            "y": 0.0,
            "z": 0.0
          },
          "Building radius": 50.0,
          "Spawns file name": ""
        },
        {
          "Copy-Paste base name": "test",
          "Copy-Paste base position offset": {
            "x": 0.0,
            "y": 0.0,
            "z": 0.0
          },
          "Building radius": 50.0,
          "Spawns file name": ""
        }
      ],
      "General settings": {
        "Modify turrets": true,
        "Modify cupboard": true,
        "Spawn defenders": false,
        "Maximal amount of different defender types": 5,
        "Randomize defenders types": true,
        "Show message on spawning": true,
        "Message on spawning": [
          "Base {name} was spawned on {grid} {position}",
          "SPAWNING ??? BASE ON {grid} {position}!!! WHO KNOW WHAT IS IT?"
        ]
      },
      "Marker settings": {
        "Enabled": false,
        "Marker radius": 0.4
      },
      "Zone settings": {
        "Enabled": false,
        "Zone name": "",
        "Zone id": 0,
        "Show dome": true,
        "Show message on joining": true,
        "Show message on leaving": true,
        "Message on joining": [
          "You are entering RAID BASE ZONE!",
          "You can't escape death..."
        ],
        "Message on leaving": [
          "You are leaving RAID BASE ZONE!",
          "RUN FOREST, RUUUUUUUUUUUN"
        ],
        "Flags": [
          "autolights",
          "true",
          "ejectsleepers",
          "true",
          "nobuild",
          "true",
          "notp",
          "true",
          "nostability",
          "true"
        ]
      },
      "Self destroy": {
        "Enabled": true,
        "Global self destroy timer (seconds)": 3600,
        "Self destroy timer after raid (seconds)": 600,
        "Building parts destroyed to start self-destroy": 25,
        "Building parts check interval": 60
      },
      "Defenders settings": [
        {
          "Shortname": "assets/prefabs/npc/murderer/murderer.prefab",
          "Respawning cooldown": 3600,
          "Maximal amount of defenders": 10,
          "Health": 200,
          "Kit name": ""
        },
        {
          "Shortname": "assets/prefabs/npc/murderer/murderer.prefab",
          "Respawning cooldown": 3600,
          "Maximal amount of defenders": 10,
          "Health": 200,
          "Kit name": ""
        }
      ]
    },
    {
      "Shortname": "test",
      "Display name": "Test Base",
      "Building settings": [
        {
          "Copy-Paste base name": "test",
          "Copy-Paste base position offset": {
            "x": 0.0,
            "y": 0.0,
            "z": 0.0
          },
          "Building radius": 50.0,
          "Spawns file name": ""
        },
        {
          "Copy-Paste base name": "test",
          "Copy-Paste base position offset": {
            "x": 0.0,
            "y": 0.0,
            "z": 0.0
          },
          "Building radius": 50.0,
          "Spawns file name": ""
        }
      ],
      "General settings": {
        "Modify turrets": true,
        "Modify cupboard": true,
        "Spawn defenders": false,
        "Maximal amount of different defender types": 5,
        "Randomize defenders types": true,
        "Show message on spawning": true,
        "Message on spawning": [
          "Base {name} was spawned on {grid} {position}",
          "SPAWNING ??? BASE ON {grid} {position}!!! WHO KNOW WHAT IS IT?"
        ]
      },
      "Marker settings": {
        "Enabled": false,
        "Marker radius": 0.4
      },
      "Zone settings": {
        "Enabled": false,
        "Zone name": "",
        "Zone id": 0,
        "Show dome": true,
        "Show message on joining": true,
        "Show message on leaving": true,
        "Message on joining": [
          "You are entering RAID BASE ZONE!",
          "You can't escape death..."
        ],
        "Message on leaving": [
          "You are leaving RAID BASE ZONE!",
          "RUN FOREST, RUUUUUUUUUUUN"
        ],
        "Flags": [
          "autolights",
          "true",
          "ejectsleepers",
          "true",
          "nobuild",
          "true",
          "notp",
          "true",
          "nostability",
          "true"
        ]
      },
      "Self destroy": {
        "Enabled": true,
        "Global self destroy timer (seconds)": 3600,
        "Self destroy timer after raid (seconds)": 600,
        "Building parts destroyed to start self-destroy": 25,
        "Building parts check interval": 60
      },
      "Defenders settings": [
        {
          "Shortname": "assets/prefabs/npc/murderer/murderer.prefab",
          "Respawning cooldown": 3600,
          "Maximal amount of defenders": 10,
          "Health": 200,
          "Kit name": ""
        },
        {
          "Shortname": "assets/prefabs/npc/murderer/murderer.prefab",
          "Respawning cooldown": 3600,
          "Maximal amount of defenders": 10,
          "Health": 200,
          "Kit name": ""
        }
      ]
    }
  ]
}

---
Spawn saved bases on random positions in the world!

Features:
  • Ability to set different base designs (from CopyPaste)
  • Works with PVE servers
  • Automatically spawns bases (manually or by timer)
  • Ability to set infinite ammo in turrets (just place turret in building)
  • Add one or multiple defender types to base
  • Block teleports near base and other flags
Author
Orange
Views
4,700
First release
Last update

More resources from Orange

Latest updates

  1. Update 1.3.1

    Fixed when player was able to loot entities in base (turrets, etc) and take items from there...
  2. Update 1.3.0

    Most of plugin functions was fully tested and remade, now all must work properly Made additional...
  3. News

    Update is planned on today, please be sure all active issues described at...
Top