Official page:
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 cha...
codefling.com
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)
- Probability from value 0 to 1 is the spawn chance of any item
- Usage of custom naming is now possible (> v1.2.4)
Example of custom items like the ExtendedRecycler plugins recycler item.
- If multiple skins are added it will pick a random skin (make sure they are TOS safe)
Code:
{
"probability"
:
1.0
,
"shortname"
:
"pickaxe"
,
"name"
:
""
,
"Skin list"
:
[
3163818649
,
1962043729
],
"amountMin"
:
1
,
"amount"
:
1
},
Code:
{
"Use Debug"
:
false
,
"Only Trigger at Night Time"
:
false
,
"Night start"
:
20
,
"Night end"
:
8
,
"Tree spawns"
:
{
"Can spawn from trees"
:
false
,
"Spawn chance (1-100%)"
:
10.0
},
"Pickup spawns"
:
{
"Can spawn from resource pickups"
:
false
,
"Spawn chance (1-100%)"
:
10.0
},
"Node spawns"
:
{
"Stone Nodes"
:
{
"Can spawn from stone nodes"
:
true
,
"Spawn chance (1-100%)"
:
10.0
},
"Sulfur Nodes"
:
{
"Can spawn from sulfur nodes"
:
true
,
"Spawn chance (1-100%)"
:
10.0
},
"Metal Nodes"
:
{
"Can spawn from metal nodes"
:
true
,
"Spawn chance (1-100%)"
:
10.0
}
},
"NPC Settings"
:
{
"Spawn Amount Nodes"
:
1
,
"Spawn Amount Pickups"
:
1
,
"Health"
:
250
,
"Max Roam Distance"
:
20
,
"Damage multiplier"
:
0.6
,
"Lifetime (minutes)"
:
10.0
,
"Use kit (clothing)"
:
false
,
"Kit ID Rock Zombie"
:
[],
"Kit ID Tree Zombie"
:
[],
"Show messages"
:
true
,
"NPC drop a Backpack with loot"
:
false
,
"Spawn Min Amount Items"
:
2
,
"Spawn Max Amount Items"
:
6
,
"Loot Table"
:
[
{
"probability"
:
1.0
,
"shortname"
:
"ammo.pistol"
,
"name"
:
""
,
"Skin list"
:
[],
"amountMin"
:
128
,
"amount"
:
256
},
{
"probability"
:
1.0
,
"shortname"
:
"ammo.pistol.fire"
,
"name"
:
""
,
"Skin list"
:
[],
"amountMin"
:
128
,
"amount"
:
256
},
{
"probability"
:
1.0
,
"shortname"
:
"ammo.rifle.explosive"
,
"name"
:
""
,
"Skin list"
:
[
0
],
"amountMin"
:
128
,
"amount"
:
256
},
{
"probability"
:
1.0
,
"shortname"
:
"ammo.rifle.hv"
,
"name"
:
""
,
"Skin list"
:
[],
"amountMin"
:
128
,
"amount"
:
256
},
{
"probability"
:
1.0
,
"shortname"
:
"ammo.rifle.incendiary"
,
"name"
:
""
,
"Skin list"
:
[],
"amountMin"
:
128
,
"amount"
:
256
},
{
"probability"
:
1.0
,
"shortname"
:
"ammo.shotgun"
,
"name"
:
""
,
"Skin list"
:
[],
"amountMin"
:
128
,
"amount"
:
256
},
{
"probability"
:
1.0
,
"shortname"
:
"ammo.shotgun"
,
"name"
:
""
,
"Skin list"
:
[],
"amountMin"
:
128
,
"amount"
:
256
},
{
"probability"
:
1.0
,
"shortname"
:
"explosive.timed"
,
"name"
:
""
,
"Skin list"
:
[],
"amountMin"
:
1
,
"amount"
:
5
},
{
"probability"
:
1.0
,
"shortname"
:
"explosives"
,
"name"
:
""
,
"Skin list"
:
[],
"amountMin"
:
200
,
"amount"
:
200
},
{
"probability"
:
1.0
,
"shortname"
:
"pistol.m92"
,
"name"
:
""
,
"Skin list"
:
[],
"amountMin"
:
1
,
"amount"
:
1
},
{
"probability"
:
1.0
,
"shortname"
:
"shotgun.spas12"
,
"name"
:
""
,
"Skin list"
:
[],
"amountMin"
:
1
,
"amount"
:
1
},
{
"probability"
:
1.0
,
"shortname"
:
"pickaxe"
,
"name"
:
""
,
"Skin list"
:
[
3163818649
,
1962043729
],
"amountMin"
:
1
,
"amount"
:
1
},
{
"probability"
:
1.0
,
"shortname"
:
"hatchet"
,
"name"
:
""
,
"Skin list"
:
[],
"amountMin"
:
1
,
"amount"
:
1
},
{
"probability"
:
1.0
,
"shortname"
:
"can.beans"
,
"name"
:
""
,
"Skin list"
:
[],
"amountMin"
:
3
,
"amount"
:
5
},
{
"probability"
:
1.0
,
"shortname"
:
"can.tuna"
,
"name"
:
""
,
"Skin list"
:
[],
"amountMin"
:
3
,
"amount"
:
5
},
{
"probability"
:
1.0
,
"shortname"
:
"black.raspberries"
,
"name"
:
""
,
"Skin list"
:
[],
"amountMin"
:
3
,
"amount"
:
5
},
{
"probability"
:
0.0
,
"shortname"
:
"box.repair.bench"
,
"name"
:
"Recycler"
,
"Skin list"
:
[
1594245394
],
"amountMin"
:
1
,
"amount"
:
1
},
{
"probability"
:
0.6
,
"shortname"
:
"hmlmg"
,
"name"
:
""
,
"Skin list"
:
[],
"amountMin"
:
1
,
"amount"
:
1
},
{
"probability"
:
0.6
,
"shortname"
:
"supply.signal"
,
"name"
:
""
,
"Skin list"
:
[],
"amountMin"
:
1
,
"amount"
:
1
}
]
}
}
Localisation :
English language file included to use a different language just make a new file in the language folder.
Code:
{
"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 :
Code:
bool
IsZombieRocksNpc
(
global
::
HumanNPC
npc
)
example call :
Code:
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
;
}