Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- easylua.StartEntity("useless")
- if CLIENT then
- function ENT:Draw()
- render.SetColorModulation(1,0,math.sin(CurTime()))
- self:DrawModel()
- end
- end
- if SERVER then
- function ENT:Initialize()
- self:SetModel("models/props/CS_militia/microwave01.mdl")
- self:PhysicsInit(SOLID_VPHYSICS)
- end
- function ENT:Use(ply)
- ply:Kill()
- end
- function ENT:OnTakeDamage(dmginfo)
- local ply = dmginfo:GetAttacker()
- if ply:IsPlayer() then
- ply:Kill()
- end
- end
- end
- easylua.EndEntity(true, true)
Advertisement
Add Comment
Please, Sign In to add comment