This commit is contained in:
lifestorm
2024-08-04 23:12:27 +03:00
parent 0e770b2b49
commit ba1fc01b16
7084 changed files with 2173495 additions and 14 deletions

View File

@@ -0,0 +1,33 @@
--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
ITEM.name = "Ptasie jajo"
ITEM.model = "models/willardnetworks/food/egg2.mdl"
ITEM.description = "Małe jajo z którego niedługo wykluje się piskle."
ITEM.functions.Hatch = {
icon = "icon16/briefcase.png",
OnRun = function(item)
if (item:GetData("hatchTime", 0) < os.time()) then
net.Start("birdEggHatch")
net.Send(item.player)
return false
else
item.player:Notify("Jajo nie jest jeszcze gotowe do wyklucia!")
return false
end
end,
OnCanRun = function(item)
return item.player:Team() == FACTION_BIRD
end
}

View File

@@ -0,0 +1,59 @@
--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
ITEM.name = "Patyk"
ITEM.model = "models/props_debris/wood_splinters01a.mdl"
ITEM.description = "Mały ułamany patyk, raczej do niczego się nie przyda."
ITEM.birdDescription = "Mały patyk, który idealnie nadaje się do zrobienia gniazda. Jeżeli spojrzysz na gniazdo będziesz mógł dołożyć do niego patyki, w innym wypadku stworzysz nowe."
ITEM.category = "Junk"
ITEM.maxStackSize = 16
function ITEM:GetDescription()
return LocalPlayer():Team() == FACTION_BIRD and self.birdDescription or self.description
end
ITEM.functions.BuildNest = {
name = "Zbuduj gniazdo",
icon = "icon16/basket.png",
OnRun = function(item)
local client = item.player
local target = client:GetEyeTraceNoCursor().Entity
if (target and target:GetClass() == "ix_birdnest") then
local progress = target:GetNetVar("progress", 0)
local stackSize = item:GetStackSize()
target:SetProgress(progress + stackSize)
target:EmitSound("physics/cardboard/cardboard_box_break" .. math.random(1, 3) .. ".wav")
local position = target:LocalToWorld(target:OBBCenter())
local effect = EffectData()
effect:SetStart(position)
effect:SetOrigin(position)
effect:SetScale(1)
util.Effect("GlassImpact", effect)
item:RemoveStack(stackSize)
else
client.isBuildingNest = true
net.Start("toggleBuildingNest")
net.WriteBool(true)
net.Send(client)
end
return false
end,
OnCanRun = function(item)
return !IsValid(item.entity) and item.player:Team() == FACTION_BIRD
end
}