mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
43 lines
1.1 KiB
Lua
43 lines
1.1 KiB
Lua
|
|
--[[
|
||
|
|
| 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 = "Zamek DOB"
|
||
|
|
ITEM.description = "Metalowe urządzenie szyfrowane na drzwi, używane przez DOB."
|
||
|
|
ITEM.model = Model("models/willardnetworks/props_combine/wn_combine_lock.mdl")
|
||
|
|
ITEM.category = "Combine"
|
||
|
|
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
|
||
|
|
local data = {}
|
||
|
|
data.start = client:GetShootPos()
|
||
|
|
data.endpos = data.start + client:GetAimVector() * 96
|
||
|
|
data.filter = client
|
||
|
|
|
||
|
|
local lock = scripted_ents.Get("ix_combinelock_dob"):SpawnFunction(client, util.TraceLine(data))
|
||
|
|
|
||
|
|
if (IsValid(lock)) then
|
||
|
|
client:EmitSound("physics/metal/weapon_impact_soft2.wav", 75, 80)
|
||
|
|
|
||
|
|
ix.combineNotify:AddNotification("NTC:// Rozmieszczono Biorestryktor DOB", nil, client)
|
||
|
|
else
|
||
|
|
return false
|
||
|
|
end
|
||
|
|
end
|
||
|
|
}
|