AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   TF2 Particles via TempEnts (https://forums.alliedmods.net/showthread.php?t=75102)

L. Duke 12-02-2008 17:33

Re: TF2 Particles via TempEnts
 
Nice! Thank you Pinkfairie!

DiscoBBQ 12-03-2008 16:11

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.

ratty 02-27-2009 20:38

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.

L. Duke 03-02-2009 11:02

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

HL-SDK 04-08-2009 16:11

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:

    new particle CreateEntityByName("info_particle_system"); 

Change to:
PHP Code:

    new particle[ent] = CreateEntityByName("info_particle_system"); 

But I might need more than one particle system per player.

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?

DJ Tsunami 04-09-2009 13:48

Re: TF2 Particles via TempEnts
 
Each info_particle_system is a seperate particle, you can have as many as you want.

Hardcor3 05-28-2009 11:00

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?

Muridias 05-28-2009 16:46

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[])
{
    new particle = CreateEntityByName("info_particle_system");
   
    new String:name[128];
    if (IsValidEdict(particle))
    {
        new Float:position[3];
        GetEntPropVector(entity, Prop_Send, "m_vecOrigin", position);
       
        TeleportEntity(particle, position, NULL_VECTOR, NULL_VECTOR);
       
        Format(name, sizeof(name), "target%i", entity);
        DispatchKeyValue(entity, "targetname", name);
       
        DispatchKeyValue(particle, "targetname", "tf2particle");
        DispatchKeyValue(particle, "parentname", name);
        DispatchKeyValue(particle, "effect_name", particleType);
        DispatchSpawn(particle);
        SetVariantString(name);
        AcceptEntityInput(particle, "SetParent", particle, particle, 0);
        SetVariantString("flag");
        AcceptEntityInput(particle, "SetParentAttachment", particle, particle, 0);
        ActivateEntity(particle);
        AcceptEntityInput(particle, "start");
    }
}


Muridias 05-31-2009 05:09

Re: TF2 Particles via TempEnts
 
Where can I find the new particle effects when an updates comes out??

scopesp 06-02-2009 10:47

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


All times are GMT -4. The time now is 18:11.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.