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 = "Benefactor Radio"
|
||||
ITEM.model = Model("models/props_lab/citizenradio.mdl")
|
||||
ITEM.description = "A manufactured radio with a tuner that can only tune to official Union-Approved radio stations."
|
||||
ITEM.width = 4
|
||||
ITEM.height = 3
|
||||
ITEM.category = "Technology"
|
||||
ITEM.functions.Deploy = {
|
||||
name = "Deploy",
|
||||
OnRun = function(itemTable)
|
||||
local client = itemTable.player
|
||||
if client.CantPlace then
|
||||
client:NotifyLocalized("You need to wait before you can place this!..")
|
||||
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 = "Rebel Radio"
|
||||
ITEM.model = Model("models/props_lab/citizenradio.mdl")
|
||||
ITEM.description = "A small, salvaged radio with a tuner that can be tuned to anti-combine pirated radio stations."
|
||||
ITEM.category = "Technology"
|
||||
ITEM.width = 4
|
||||
ITEM.height = 3
|
||||
ITEM.functions.Deploy = {
|
||||
name = "Deploy",
|
||||
OnRun = function(itemTable)
|
||||
local client = itemTable.player
|
||||
if client.CantPlace then
|
||||
client:NotifyLocalized("You need to wait before you can place this!..")
|
||||
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 = "Combine Approved Radio Tuner"
|
||||
ITEM.description = "A radio tuner which can be used to modify the frequencies a radio can tune to."
|
||||
ITEM.category = "Technology"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/skills/circuit.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "You can acquire this item via the Crafting skill."}
|
||||
ITEM.maxStackSize = 1
|
||||
ITEM.functions.install = {
|
||||
name = "Install",
|
||||
tip = "Install this item into the radio you're looking at.",
|
||||
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 = "Resistance Radio Tuner"
|
||||
ITEM.description = "A radio tuner which can be used to modify the frequencies a radio can pick up."
|
||||
ITEM.category = "Technology"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/skills/circuit.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "You can acquire this item via the Crafting skill.", ["red"] = "It is suspicious to carry this item."}
|
||||
ITEM.maxStackSize = 1
|
||||
ITEM.functions.install = {
|
||||
name = "Install",
|
||||
tip = "Install this item into the radio you're looking at.",
|
||||
icon = "icon16/wrench.png",
|
||||
OnRun = function(item)
|
||||
ix.musicRadio:InstallTuner(item.player, true)
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user