Re: TF2 Particles via TempEnts
L.Duke, if you ever need someone to birth your kids, im your man.
This works perfectly for me, I'm able to do a TF2 GoreMod now, yahoo! http://img.photobucket.com/albums/v3.../headshot2.jpg |
Re: TF2 Particles via TempEnts
Thanks a lot ! This is of great use !
There is just one slight bug with timers (ShowParticle) : when a round ends (waiting for players, team win, etc), one should take care to reset timers because on round reset/restart, particle systems are automatically destroyed by the server and when the timer tries to destroy them, it shows a warning saying it couldn't destroy an entity which has nothing to do with our particle. While this is not critical, I advise anyone using this snippet to hook whenever a round restart/resets (I'm using both words because I can't remember the actual event) and delete the active timers if that happens. Other than that, this is great stuff !! Thanks |
Re: TF2 Particles via TempEnts
can someone post a full axample plugin ?
|
Re: TF2 Particles via TempEnts
Damn, thanks! I've been trying to figure out how to display the achievement trophy on and off for months now.
|
Re: TF2 Particles via TempEnts
Quote:
|
Re: TF2 Particles via TempEnts
When I spawn the "nemesis" particle, DeleteParticles() only removes the animated border and detaches the particle from the player - the star-with-fists icon stays hanging in the air forever. Any idea how to remove that?
|
Re: TF2 Particles via TempEnts
Also, is there any way to attach a particle to a player, but hide it from the player's view? For example, I can attach a "nemesis" icon using the particle system, but it obscures the player's view if they look up. Likewise, I could use a tempent and specify which players to send it too, but then it isn't attached to the player and can't be destroyed.
Can you clarify what the "entindex", "m_iAttachType" and "m_iAttachmentPointIndex" properties of a tempent do? I couldn't find any documentation for them online. |
Re: TF2 Particles via TempEnts
Some icons like the nemesis icon do seem to remain. I don't know why.
I believe the tempents version "entindex" is the entity to attach to (player, prop_physics, etc.). I don't know about the attachement type, but I assume the attachment point index is the index of the attachment point on the entity. TF2 players have several including the party hat and eye attachments. |
Re: TF2 Particles via TempEnts
2 Attachment(s)
If you want a quick way to view the entities in game, heres a quick plugin I wrote. Just type "particle <particlename>" in console and it will parent it to the player for 5 seconds so you can check it out. I did this and made a list of all of the ones I want to use :P
|
Re: TF2 Particles via TempEnts
L4D Particles:
Code:
1: weapon_tracers |
| All times are GMT -4. The time now is 18:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.