Jump to content

3 Screenshots

  • 3,606
  • 146
  • 37.99 kB

About Zombie Rocks

When running in the forest on the quest of finding some ore nodes and finally hitting the rock to get some valuable resources , there can be a zombie sleeping under the rock

Features :

  • Set configurable chance of a [Rock Zombie] spawning after a ore node is depleted (last hit)
  • Set configurable chance of a [Ore/Wood Zombie] spawning after a ore or wood spawn is picked up
  • Set configurable chance of a [Tree Zombie] spawning after a tree is cut down
  • Configurable NPC (HP, Damage scaling, spawn amount and more)
  • Support for Kits.
  • The NPC can drop a backpack (internal lootprofile through configuration)
  • The npc can only spawn on the surface (no support for tunnel/cave nodes)
  • npc has 2 starter outfits and changes weapon each time it spawns out of the box (or when assigned kit(s) is not found)
  • Ore/Wood zombies use their Stone and Tree zombie kits

Permissions :

  • zombierocks.pickup : Assign to players/groups to trigger the resource pickup mini event
  • zombierocks.nodestone : Assign to players/groups to trigger stone mining mini event
  • zombierocks.nodeiron : Assign to players/groups to trigger the  iron mining mini event
  • zombierocks.nodesulfur : Assign to players/groups to trigger the sulfur mining mini event
  • zombierocks.tree: Assign to players/groups to trigger the tree cutting mini event

Pickup items :

On resource pickups only 1 npc can spawn

  • Wood
  • stones
  • iron
  • sulfur

Commands :

  • /zrinfo : Replies plugin info and version to chat

Configuration :
To make a item spawn as a blueprint add .bp behind the shortname (for example ammo.pistol.bp)
 

{
  "Use Debug": true,
  "Tree spawns": {
    "Can spawn from trees": true,
    "Spawn chance (1-100%)": 40.0
  },
  "Pickup spawns": {
    "Can spawn from resource pickups": true,
    "Spawn chance (1-100%)": 10.0
  },
  "Node spawns": {
    "Stone Nodes": {
      "Can spawn from stone nodes": true,
      "Spawn chance (1-100%)": 50.0
    },
    "Sulfur Nodes": {
      "Can spawn from sulfur nodes": true,
      "Spawn chance (1-100%)": 40.0
    },
    "Metal Nodes": {
      "Can spawn from metal nodes": true,
      "Spawn chance (1-100%)": 40.0
    }
  },
  "NPC Settings": {
    "Spawn Amount": 1,
    "Health": 250,
    "Max Roam Distance": 20,
    "Damage multiplier": 0.6,
    "Lifetime (minutes)": 10.0,
    "Use kit (clothing)": true,
    "Kit ID Rock Zombie": [
      "RockZombie-01",
      "RockZombie-02",
      "RockZombie-03"
    ],
    "Kit ID Tree Zombie": [
      "TreeZombie-01",
      "TreeZombie-02",
      "TreeZombie-03"
    ],
    "Show messages": true,
    "NPC drop a Backpack with loot": true,
    "Use Random Skins": true,
    "Spawn Min Amount Items": 2,
    "Spawn Max Amount Items": 6,
    "Loot Table": [
      {
        "shortname": "ammo.pistol",
        "amount": 5,
        "skin": 0,
        "amountMin": 5
      },
      {
        "shortname": "ammo.pistol.fire",
        "amount": 5,
        "skin": 0,
        "amountMin": 5
      },
      {
        "shortname": "ammo.pistol.hv",
        "amount": 5,
        "skin": 0,
        "amountMin": 5
      },
      {
        "shortname": "ammo.rifle",
        "amount": 5,
        "skin": 0,
        "amountMin": 5
      },
      {
        "shortname": "ammo.rifle.explosive",
        "amount": 5,
        "skin": 0,
        "amountMin": 5
      },
      {
        "shortname": "ammo.rifle.hv",
        "amount": 5,
        "skin": 0,
        "amountMin": 5
      },
      {
        "shortname": "ammo.rifle.incendiary",
        "amount": 5,
        "skin": 0,
        "amountMin": 5
      },
      {
        "shortname": "ammo.shotgun",
        "amount": 12,
        "skin": 0,
        "amountMin": 8
      },
      {
        "shortname": "explosive.timed",
        "amount": 1,
        "skin": 0,
        "amountMin": 1
      },
      {
        "shortname": "explosives",
        "amount": 1,
        "skin": 0,
        "amountMin": 1
      },
      {
        "shortname": "pistol.m92",
        "amount": 1,
        "skin": 0,
        "amountMin": 1
      },
      {
        "shortname": "shotgun.spas12",
        "amount": 1,
        "skin": 0,
        "amountMin": 1
      },
      {
        "shortname": "pickaxe",
        "amount": 1,
        "skin": 0,
        "amountMin": 1
      },
      {
        "shortname": "hatchet",
        "amount": 1,
        "skin": 0,
        "amountMin": 1
      },
      {
        "shortname": "can.beans",
        "amount": 3,
        "skin": 0,
        "amountMin": 1
      },
      {
        "shortname": "can.tuna",
        "amount": 3,
        "skin": 0,
        "amountMin": 1
      },
      {
        "shortname": "black.raspberries",
        "amount": 5,
        "skin": 0,
        "amountMin": 3
      }
    ]
  }
}

Localisation :
English language file included to use a different language just make a new file in the language folder.

{
  "Zombie_Spawn": "Braaains",
  "Zombie_Dropped_Backpack": "{npc} dropped his old Backpack !",
  "Prefix": "[<color=green>Rock Zombie</color>] : ",
  "infoRock": "The diffrent stone/sulfur/metal rocks can hide a Zombie that can ressurect from their rocky grave.",
  "infoTree": "When cutting down Trees a Zombie can ressurect from under their roots.",
  "infoPickup": "When picking up resources a Zombie can sneak up behind you.",
  "Nodes": "<<color=orange>Nodes</color>> ",
  "Trees": "<<color=green>Trees</color>> ",
  "Pickups": "<<color=orange>Pickups</color>> "
}

API :

bool IsZombieRocksNpc(global::HumanNPC npc)

example call :

object OnEntityDeath(global::HumanNPC npc, HitInfo info)
{
  if (npc == null) return null;
  if (ZombieRocks.Call<bool>("IsZombieRocksNpc", npc))
  {
    Puts($"Target : {npc} net.ID : [{npc.net.ID}] Event : ZombieRocks NPC");
  }
  return null;
}

 

  • Like 1
  • Love 1

User Feedback

388.6k

Downloads

Total number of downloads.

2k

Customers

Total customers served.

27.9k

Files Sold

Total number of files sold.

433.9k

Payments Processed

Total payments processed.

×
×
  • 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.