mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
local PLUGIN = PLUGIN
|
||||
|
||||
ITEM.name = "Radio Benefaktora"
|
||||
ITEM.model = Model("models/props_lab/citizenradio.mdl")
|
||||
ITEM.description = "Masowo produkowane radio ustawione na częstotliwość kontrolowaną przez Kombinat na której gra patriotyczna oraz klasyczna muzyka."
|
||||
ITEM.width = 4
|
||||
ITEM.height = 3
|
||||
ITEM.category = "Technology"
|
||||
ITEM.functions.Deploy = {
|
||||
name = "Rozmieść",
|
||||
OnRun = function(itemTable)
|
||||
local client = itemTable.player
|
||||
if client.CantPlace then
|
||||
client:NotifyLocalized("Musisz poczekać zanim będziesz mógł to postawić!..")
|
||||
return false
|
||||
end
|
||||
|
||||
client.CantPlace = true
|
||||
|
||||
timer.Simple(3, function()
|
||||
if client then
|
||||
client.CantPlace = false
|
||||
end
|
||||
end)
|
||||
|
||||
local radio = ents.Create("wn_musicradio")
|
||||
local tr = client:GetEyeTrace()
|
||||
local dist = client:EyePos():Distance(tr.HitPos)
|
||||
|
||||
radio:SetPos(client:EyePos() + (tr.Normal * math.Clamp(dist, 0, 75)))
|
||||
radio:Spawn()
|
||||
radio:SetRadioClass("benefactor")
|
||||
|
||||
ix.saveEnts:SaveEntity(radio)
|
||||
|
||||
return true
|
||||
end
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
local PLUGIN = PLUGIN
|
||||
|
||||
ITEM.name = "Radio Rebelii"
|
||||
ITEM.model = Model("models/props_lab/citizenradio.mdl")
|
||||
ITEM.description = "Małe radio z odzysku radio dostrojone na pirackie stacji radiowe nadawające przeciwko Kombiantu."
|
||||
ITEM.category = "Technology"
|
||||
ITEM.width = 4
|
||||
ITEM.height = 3
|
||||
ITEM.functions.Deploy = {
|
||||
name = "Rozmieść",
|
||||
OnRun = function(itemTable)
|
||||
local client = itemTable.player
|
||||
if client.CantPlace then
|
||||
client:NotifyLocalized("Musisz poczekać zanim będziesz mógł to postawić!..")
|
||||
return false
|
||||
end
|
||||
|
||||
client.CantPlace = true
|
||||
|
||||
timer.Simple(3, function()
|
||||
if client then
|
||||
client.CantPlace = false
|
||||
end
|
||||
end)
|
||||
|
||||
local radio = ents.Create("wn_musicradio")
|
||||
local tr = client:GetEyeTrace()
|
||||
local dist = client:EyePos():Distance(tr.HitPos)
|
||||
|
||||
radio:SetPos(client:EyePos() + (tr.Normal * math.Clamp(dist, 0, 75)))
|
||||
radio:Spawn()
|
||||
radio:SetRadioClass("pirate")
|
||||
|
||||
ix.saveEnts:SaveEntity(radio)
|
||||
|
||||
return true
|
||||
end
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
--[[
|
||||
| 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 = "Tuner radiowy zatwierdzony przez Kombinat"
|
||||
ITEM.description = "Tuner radiowy, za pomocą którego można zmieniać częstotliwości odbieranych przez radio, na które można się dostroić."
|
||||
ITEM.category = "Technology"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/skills/circuit.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "Przedmiot ten można zdobyć za pomocą umiejętności Wytwarzania."}
|
||||
ITEM.maxStackSize = 1
|
||||
ITEM.functions.install = {
|
||||
name = "Zainstaluj",
|
||||
tip = "Zainstaluj ten przedmiot do radia na które się patrzysz.",
|
||||
icon = "icon16/wrench.png",
|
||||
OnRun = function(item)
|
||||
ix.musicRadio:InstallTuner(item.player, false)
|
||||
end
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
--[[
|
||||
| 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 = "Tuner radiowy ruchu oporu"
|
||||
ITEM.description = "Tuner radiowy, za pomocą którego można dowolnie zmieniać częstotliwości odbieranych przez radio."
|
||||
ITEM.category = "Technology"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/skills/circuit.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "Przedmiot ten można zdobyć za pomocą umiejętności Wytwarzania.", ["red"] = "Posiadanie tego przedmiotu może wzbudzać podejrzenia."}
|
||||
ITEM.maxStackSize = 1
|
||||
ITEM.functions.install = {
|
||||
name = "Zainstaluj",
|
||||
tip = "Zainstaluj ten przedmiot do radia na które się patrzysz.",
|
||||
icon = "icon16/wrench.png",
|
||||
OnRun = function(item)
|
||||
ix.musicRadio:InstallTuner(item.player, true)
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user