This commit is contained in:
lifestorm
2024-08-04 23:54:45 +03:00
parent 0e770b2b49
commit df294d03aa
7526 changed files with 4011945 additions and 15 deletions

View File

@@ -0,0 +1,57 @@
--[[
| 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/
--]]
net.Receive("toggleBuildingNest", function()
LocalPlayer().isBuildingNest = net.ReadBool()
end)
local blocked = {}
net.Receive("BirdMountRequest", function()
local client = net.ReadEntity()
if (blocked[client]) then
net.Start("BirdMountDecline")
net.SendToServer()
return
end
local name = hook.Run("GetCharacterName", client, "ic") or client:GetName()
local panel = Derma_Query(name .. " is trying to land on you. Will you let it do that?", "Bird Mount Request",
"Allow", function()
net.Start("BirdMountAllow")
net.SendToServer()
end,
"Decline", function()
net.Start("BirdMountDecline")
net.SendToServer()
end,
"Block", function()
net.Start("BirdMountDecline")
net.SendToServer()
blocked[client] = true
end)
timer.Simple(30, function()
if (IsValid(panel)) then
panel:Remove()
net.Start("BirdMountTimeout")
net.SendToServer()
end
end)
end)
net.Receive("birdEggHatch", function()
vgui.Create("ixbirdEggHatch")
end)