Raised This Month: $ Target: $400
 0% 

changing an entity's color/alpha


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SeLfkiLL
Member
Join Date: Nov 2005
Old 03-11-2006 , 15:35   changing an entity's color/alpha
Reply With Quote #1

Is this possible without dummy inserts? If so, how?
SeLfkiLL is offline
Send a message via AIM to SeLfkiLL
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 03-11-2006 , 17:13  
Reply With Quote #2

Pretty sure you can do it with just a CBE, like so: pEntity->SetRenderColor(r,g,b,a);

For this to work, I think you have to set the render mode to world glow with something like pEntity->SetRenderMode(kRenderWorldGlow);
__________________
sslice is offline
SeLfkiLL
Member
Join Date: Nov 2005
Old 03-11-2006 , 20:55  
Reply With Quote #3

After some trial and error, I figured out that the problem was that the color has to be reset each time a player joins the server for that player to see the effects.
SeLfkiLL is offline
Send a message via AIM to SeLfkiLL
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 16:33.


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