mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-16 21:33:46 +03:00
34 lines
708 B
Lua
34 lines
708 B
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/
|
|
--]]
|
|
|
|
ENT.Type = "anim"
|
|
ENT.Base = "base_anim"
|
|
|
|
ENT.PrintName = "Oil Lamp"
|
|
ENT.Author = "Nak"
|
|
ENT.Purpose = "An old lamp with a moden sun-sensor."
|
|
ENT.Instructions = "Place it somewhere"
|
|
ENT.Category = "StormFox2"
|
|
|
|
ENT.WireDebugName = "Oil Lamp"
|
|
|
|
ENT.Editable = true
|
|
ENT.Spawnable = true
|
|
ENT.AdminOnly = false --true
|
|
|
|
ENT.RenderGroup = RENDERGROUP_BOTH
|
|
|
|
function ENT:IsOn()
|
|
if SERVER then
|
|
return self.on
|
|
else
|
|
return self:GetNWInt("on",0) > 0
|
|
end
|
|
end |