This commit is contained in:
lifestorm
2024-08-04 23:54:45 +03:00
parent 8064ba84d8
commit 6a58f406b1
7522 changed files with 4011896 additions and 15 deletions

View File

@@ -0,0 +1,51 @@
--[[
| 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 = "Group Lock"
ITEM.description = "A metal apparatus applied to doors. Requires a group to function."
ITEM.model = Model("models/willardnetworks/props_combine/wn_combine_lock.mdl")
ITEM.width = 1
ITEM.height = 2
ITEM.iconCam = {
pos = Vector(-0.5, 50, 2),
ang = Angle(0, 270, 0),
fov = 25.29
}
ITEM.functions.Place = {
OnRun = function(itemTable)
local client = itemTable.player
if !client.CantPlace then
local data = {}
data.start = client:GetShootPos()
data.endpos = data.start + client:GetAimVector() * 96
data.filter = client
local lock = scripted_ents.Get("ix_grouplock"):SpawnFunction(client, util.TraceLine(data))
if (IsValid(lock)) then
client.CantPlace = true
client:EmitSound("physics/metal/weapon_impact_soft2.wav", 75, 80)
timer.Simple(3, function()
if client then
client.CantPlace = false
end
end)
else
return false
end
else
client:NotifyLocalized("Bunu yerleştirmek için biraz beklemelisin!")
return false
end
end
}