__________________________________________________________________
NPC Items Drop
Link: https://mega.nz/#!KMYVHCRA!j20_a-MzHTxrPtRyDZDuARkWSLFrKiwbFmPAZNgkmCo
Description: This plugin makes it when you kill a zombie it drops a random item from the junk category. Easily modifiable to your desires.
Preview video:
VIDEO
Big thanks to
@kurozael for helping me on this
Here are an alternate version of NPC Drop, it use math.random to drop single items. Feel free to use it. Just replace the actual code into the sh_plugin.lua
Code:
local PLUGIN = PLUGIN;
local Clockwork = Clockwork;
function PLUGIN:OnNPCKilled(entity)
local class = entity:GetClass()
local items = {}
local random1 = math.random(1,10)
local random2 = math.random(1,10)
if (class == "your_npc") then
if random1 == 3 or random2 == 3 then
local loot = Clockwork.item:CreateInstance("unique_id");
Clockwork.entity:CreateItem(nil, loot, entity:GetPos() + Vector(0, 0, 8))
end;
if random1 == 4 or random2 == 4 then
local loot2 = Clockwork.item:CreateInstance("unique_id");
Clockwork.entity:CreateItem(nil, loot2, entity:GetPos() + Vector(0, 0, 8))
end;
if random1 == 5 or random2 == 5 then
local loot3 = Clockwork.item:CreateInstance("unique_id");
Clockwork.entity:CreateItem(nil, loot3, entity:GetPos() + Vector(0, 0, 8))
end;
end;
end;
__________________________________________________________________
Mystery Chest
Link: https://mega.nz/#!PMZXFTIA!QnOtB18uyG8fMSY-7cTgoke45-PYE3CUV4qhWW3aSKo
Description: This plugin adds a mystery chest, you can lock pick it, then open it. Loot in the chest are randomly given. Easily modifiable to your desires.
Preview video:
VIDEO
__________________________________________________________________
More Food UU
Link: https://mega.nz/#!fIAngZDI!Ncshz-7CV_QreorVJ_mh4JReXMkUQHyz2TZv1wQSHBg
Preview:
Description: Add more UU food to the HL2RP Schema.
Addon required: http://steamcommunity.com/sharedfiles/filedetails/?id=593929594&searchtext=UU
__________________________________________________________________
Life and Armor
Link: https://mega.nz/#!fdYAiAjB!4ZgdpCkAX6cY0euTYZKbiZ0LQ4aSAtidkVEkx_QvAPE
Preview:
Code preview.
Here a video, in French.
VIDEO
Description: It's a very simple plugin, it add dynamic text under character description. You can easily do other text with shared vars.
__________________________________________________________________
More Items
Link: //
Preview:
Description: Add more items to the HL2RP Schema.
(Soon)
__________________________________________________________________
If any issue reported: http://steamcommunity.com/id/mixed10e/ Click to expand...