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

(L4D2)How do I change the size and color of the particle?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edwinvega86
Senior Member
Join Date: Feb 2016
Old 08-14-2019 , 06:05   (L4D2)How do I change the size and color of the particle?
Reply With Quote #1

I want to change the size and color of this smoke that I use?




I have no effect when using
PHP Code:
    char buffer[12];
    
Format(buffersizeof(buffer), "%i %i %i"GetRandomInt(0255), GetRandomInt(0255), GetRandomInt(0255));
    
DispatchKeyValue(particle"RenderColor"buffer);
    
DispatchKeyValue(particle"scale""9"); 
edwinvega86 is offline
farawayf
Senior Member
Join Date: Jan 2019
Old 08-14-2019 , 06:32   Re: (L4D2)How do I change the size and color of the particle?
Reply With Quote #2

try to set key values "startsize" | "endsize" | "m_flRadius"

Last edited by farawayf; 08-14-2019 at 06:33.
farawayf is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 08-15-2019 , 07:53   Re: (L4D2)How do I change the size and color of the particle?
Reply With Quote #3

Not all particles can be changed the particle has to support custom colours, the only particle i know of is the boomer vomit particle that uses material prop to change the colour on screen, i don't know of any other particle in l4d that supports that.

You can use particle lights to change the colour of smoke according to the FGD

https://developer.valvesoftware.com/wiki/Env_smokestack
https://developer.valvesoftware.com/..._particlelight

maybe helpful.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
Reply


Thread Tools
Display Modes

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 04:35.


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