• Pointshop Particles
    6 replies, posted
I'm using TF2 pointshop particles and they're working fine but for some reason they aren't removed when player is not in team hunters (Using on prop hunt) I did the same thing to trails and it worked fine. Here's one of them [CODE]game.AddParticles("particles/item_fx.pcf") ITEM.Name = 'Cloud 9' ITEM.Price = 115000 ITEM.Attachment = 'eyes' ITEM.Material = "vgui/particlepics/Cloud_9.png" ITEM.Particle = "unusual_hearts_bubbling" PrecacheParticleSystem(ITEM.Particle) function ITEM:OnEquip(ply, modifications) if ply:Team() == TEAM_HUNTERS then ParticleEffectAttach(self.Particle, PATTACH_POINT_FOLLOW, ply, ply:LookupAttachment("eyes")) ply:SendLua("timer.Simple(1, function() LocalPlayer():StopParticles() end)") end end function ITEM:OnModify(ply, modifications) SafeRemoveEntity() self:OnEquip(ply, modifications) end function ITEM:OnHolster(ply) ply:StopParticles() end[/CODE]
Some particles don't have an "Emitter" behavior, so when you stop particles, you stop the emitter, causing in these particles being permanent, there's no solution
But when i call ITEM:OnHolster it works properly. Edit: This happends randomly. Sometimes i can see particles and sometimes i don't.
You're checking if ply it's on TEAM_HUNTER, not if the players it's not there...Also in Equip you're stopping particles in clientside, stop it in server
How can i stop them serverside?
SendLua runs from server to clients, so use correctly the condition and then Stop the particle with StopPartcles()
Yeah, well, can i get an example?
Sorry, you need to Log In to post a reply to this thread.