Raised This Month: $12 Target: $400
 3% 

[L4D2] particle attachment type


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mich8441012
Junior Member
Join Date: May 2023
Old 09-25-2023 , 13:34   [L4D2] particle attachment type
Reply With Quote #1

I use the following code to create particles that follow the player, but the particles of the magic circle do not move in the video.
https://youtu.be/S0aRz9gZvWA
What modifications do I need to do to make it move with the player?
thanks!
PHP Code:
void ParticleFollow(char[] particleNameint clientfloat time)
{
    if(
GetClientTeam(client) == && IsPlayerAlive(client))
    {
        
int entity CreateEntityByName("info_particle_system");
        
float pos[3];
        
DispatchKeyValue(entity"effect_name"particleName);
        
GetEntPropVector(clientProp_Send"m_vecOrigin"pos);
        
TeleportEntity(entityposNULL_VECTORNULL_VECTOR);
        
DispatchSpawn(entity);
        
SetVariantString("!activator");
        
AcceptEntityInput(entity"SetParent"client);
        
ActivateEntity(entity);
        
AcceptEntityInput(entity"Start"); 

        
CreateTimer(timeDeleteParticlesentity);
    }

mich8441012 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:57.


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