Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddCSLuaFile("food_utilities.lua")
- include("food_utilities.lua")
- ENT.Type = "anim"
- ENT.Base = "base_gmodentity"
- ENT.PrintName = "Shmungo pill"
- ENT.Spawnable = true
- ENT.Category = "Frasiu's R&D"
- if CLIENT then
- function ENT:Draw()
- self:DrawModel()
- end
- end
- if SERVER then
- function ENT:Initialize()
- self:SetModel("models/alyx_emptool_prop.mdl")
- self:PhysicsInit( SOLID_VPHYSICS )
- self:SetMoveType( MOVETYPE_VPHYSICS )
- self:SetSolid( SOLID_VPHYSICS )
- self.isRunning = false
- self.Timer = 0
- self.FemaleModels = {}
- self.FemaleModels["models/player/mossman_arctic.mdl"] = true
- self.FemaleModels["models/player/alyx.mdl"] = true
- self.FemaleModels["models/player/p2_chell.mdl"] = true
- local phys = self:GetPhysicsObject()
- if phys:IsValid() then
- phys:Wake()
- end end
- function ENT:Use(a,c)
- if(self.Timer > CurTime()) then return end
- self:Remove()
- a:AddFoodEffect(5,function(ply,effect)
- CreateSound(ply,"player/breathe1.wav")
- ply:ChatPrint("huj")
- return true
- end,
- function (ply,effect)
- end,"effect_uno")
- self.Timer = CurTime() + 0.9
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement