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

Custom Particle Systems


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
donrevan
AlliedModders Donor
Join Date: Jul 2010
Old 08-05-2011 , 07:09   Custom Particle Systems
Reply With Quote #1

I'm wondering.. if you can create your own particle effects and force a client to download them why you cannot display them ?
I can't get it to work :S

I'm using this :
Code:
new Float:start_pos[3];
GetClientAbsOrigin(client,start_pos);
start_pos[2]+=20;
new particle = CreateEntityByName("info_particle_system");
 if (IsValidEdict(particle))
 {
  TeleportEntity(particle, start_pos, NULL_VECTOR, NULL_VECTOR);
  DispatchKeyValue(particle, "effect_name", effectName);
  DispatchSpawn(particle);
 
  ActivateEntity(particle);
  AcceptEntityInput(particle, "Start");
 }
But it will not displayed

Edit: added custom pcf
Attached Files
File Type: zip customparticle.zip (1.2 KB, 83 views)

Last edited by donrevan; 08-05-2011 at 07:15. Reason: See attachments, added custom particle effect file
donrevan is offline
Nail
BANNED
Join Date: May 2008
Location: PetrovЪ GradЪ
Old 08-05-2011 , 11:09   Re: Custom Particle Systems
Reply With Quote #2

http://www.gamebanana.com/maps/153717

on this map uses custom particle effects luffaren_particles.pcf
ze_predator_ultimate_v2_particles.txt
Nail is offline
donrevan
AlliedModders Donor
Join Date: Jul 2010
Old 08-05-2011 , 12:51   Re: Custom Particle Systems
Reply With Quote #3

thanks but that is not the problem, I want to force client downloading some Custom Particle Effects and then display them ingame
donrevan is offline
Pawn 3-pg
Senior Member
Join Date: Jul 2009
Old 08-05-2011 , 13:30   Re: Custom Particle Systems
Reply With Quote #4

If you want to use custom particle effects, you have to force the client to download a particle manifest file that is named after the current map (for example, cp_dustbowl_particles.txt).

If a client has already downloaded a particle list from another server, the client will not attempt to download your version, and your particle will not be visible to that client. The only way to make it work properly is to use unique map names so there is no chance for the client to download the particle file from anywhere else.
Pawn 3-pg 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 23:56.


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