AddCSLuaFile("shared.lua") include("shared.lua") ENT.MODEL = "models/jomodel/bottleketamine50.mdl" ENT.MASS = 2; --the model is too heavy so we have to override it with THIS ENT.LASTINGEFFECT = 30; --how long the high lasts in seconds --called when you use it (after it sets the high visual values and removes itself already) function ENT:High(activator,caller) --sound.Play("durgz/codeine/drank.wav", activator:GetPos(), 75, 100, 1) local sayings = { "Ahoy SpongeBob, I've overdosed on ketamine and I'm going to die!", } self:Say(activator, sayings) activator:SetLaggedMovementValue(.33) --activator:SetFOV(activator:GetFOV()/2, self.TRANSITION_TIME, self) end --set speed back to normal once your high is over hook.Add("Think", "durgz_ketamine_high_reset", function() for id,pl in pairs(player.GetAll())do if(pl:GetNWFloat("durgz_ketamine_high_end")-0.5CurTime())then pl:SetLaggedMovementValue(1) --pl:SetFOV(33, self.LASTINGEFFECT, self) end end end)