AddCSLuaFile() include("shared.lua") --Sets up basic physics for the confetti function ENT:Initialize() self:SetModel("models/weapons/w_grenade.mdl") self.ShowWorldModel = true self:SetNoDraw(true) self:PhysicsInit(MOVETYPE_VPHYSICS) self:SetMoveType(MOVETYPE_FLY) self:SetSolid(MOVETYPE_NOCLIP) self:SetTrigger(true) self:SetOwner(ply) self:DrawShadow(false) self:SetMoveCollide(MOVECOLLIDE_FLY_CUSTOM) self:SetCollisionGroup(COLLISION_GROUP_WORLD) local phys = self:GetPhysicsObject() if phys:IsValid() then phys:Wake() end end