mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
Upload
This commit is contained in:
34
lua/entities/stormfox_oil_lamp/shared.lua
Normal file
34
lua/entities/stormfox_oil_lamp/shared.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
--[[
|
||||
| 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
|
||||
Reference in New Issue
Block a user