TF2 Particles via TempEnts
Here is a function to show tempents particles. Note that many of them (like rockettrail_! and flamethrower, see this pic) will not turn themselves off, so you'll have to spawn a particle system entity to control those. This method seems to work well with enties that end by themselves (like achieved and crit_text).
Code:
TE_Particle(String:Name[],Code:
error |
Re: TF2 Particles via TempEnts
Forgot many things as TeamNum,player which fired and more..
Edit: Can you explain how do we spawn a "particle system entity"? |
Re: TF2 Particles via TempEnts
Quote:
Spawning a particle system entity can be done like this: Code:
public Action:DeleteParticles(Handle:timer, any:particle)You'll also need to set the entities targetname to something unique before calling AttachParticle (I use something like DispatchKeyValue(ent, "targetname", TargetName); where TargetName is "myentXXX" and the XXX is the entity ID or some other unique number). |
Re: TF2 Particles via TempEnts
nice ;]
|
Re: TF2 Particles via TempEnts
Quote:
|
Re: TF2 Particles via TempEnts
Way to go valve :mrgreen:
|
Re: TF2 Particles via TempEnts
I love you L.Duke
:D Particle achievements......awesome stuff! http://i56.photobucket.com/albums/g1...ey2_b10002.jpg |
Re: TF2 Particles via TempEnts
Nice use of the achievements effect. :)
|
Re: TF2 Particles via TempEnts
L.Duke, Would you have any idea how to call an exploding player? I don't want the console command explode, I just want the animation and effects
|
Re: TF2 Particles via TempEnts
Quote:
|
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 |
Re: TF2 Particles via TempEnts
Nice! Thank you Pinkfairie!
|
Re: TF2 Particles via TempEnts
Regretabley though, there is no particle effect listed in the L4D tempents, so I have been unsuccessful in making use of the L4D particles.
|
Re: TF2 Particles via TempEnts
Is there an easy way to get the list of particles with a plugin? I dont know how to compile real plugins in C, so I'd need a sourcemod plugin if thats even possible.
I mostly want to get the name of the bonked particles in TF2 when youre hit with the baseball. |
Re: TF2 Particles via TempEnts
You can loop through the string tables and find one with particles in the name (I don't remember the exact name). Then loop through and print out all the strings in that table.
http://docs.sourcemod.net/api/?query=stringtable |
Re: TF2 Particles via TempEnts
Will these functions work to create multiple particles and then remove them when needed?
I am trying to create 3 or 4 particle effects (on a frozen player), that are removed (when that player is unfrozen). The potential problems I can see are having 4 people frozen and thawed at different times in different places. A potential solution I could see is looking at everything that is parented to the player (would only be particles I spawned I'd think) and remove them all at the right time. Or instead of: PHP Code:
PHP Code:
Thanks for any input, or output. --- EDIT After looking at PF's goremod, looks like It can handle more than one at a time, Is that true? |
Re: TF2 Particles via TempEnts
Each info_particle_system is a seperate particle, you can have as many as you want.
|
Re: TF2 Particles via TempEnts
My question might sound a little dumb and be answered already but ill ask anyways.
Is it possible to use custom particles with this code? |
Re: TF2 Particles via TempEnts
The attach particle doesn't work for me. It just spawns the particle and doesn't stay attach to the client/player.
EDIT: Fix Code:
AttachParticle(entity, String:particleType[]) |
Re: TF2 Particles via TempEnts
Where can I find the new particle effects when an updates comes out??
|
Re: TF2 Particles via TempEnts
hiii ;)
is this even possible to see that all the time with particle/trail ? http://img60.**************/img60/1549/hehet.jpg thxxxx |
Re: TF2 Particles via TempEnts
Quote:
|
Re: TF2 Particles via TempEnts
Can I access ones like rockettrail_! in CSS or is this OB only?
Is there any CSS version of that particle? |
Re: TF2 Particles via TempEnts
..There's no info_particle_system entity in CSS so naturally there's no rocket trail. This may be of some use: http://wiki.alliedmods.net/Mod_TempE...t_%28Source%29
|
Re: TF2 Particles via TempEnts
here's an updated list of all tf2 particles
Code:
achieved |
Re: TF2 Particles via TempEnts
since css was updated to the orange box it now supports info_particle_system
PHP Code:
|
Re: TF2 Particles via TempEnts
how to use drg_cowmangler_impact_charged? I see only gray splash :(
|
| All times are GMT -4. The time now is 18:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.