Raised This Month: $ Target: $400
 0% 

Env_fog questions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Misery
Senior Member
Join Date: Dec 2010
Old 05-05-2012 , 17:00   Env_fog questions
Reply With Quote #1

Hi,

I'm working on a weather experiment to implement later in a mod similar to Zombie Mod.
However I just cannot get the desired effect. Trying to reproduce a green fog with some decent density.

The fog code is contained in plugin_precache() right?

Code:
public plugin_precache() {
// [...]
	new entFog = create_entity( "env_fog" );

	DispatchKeyValue( entFog , "density" , "0.007" );
	DispatchKeyValue( entFog , "rendercolor", "0 255 0" );
	DispatchSpawn( entFog );
// [...]
}
I can see some mist on the ground, like some random smoke, but it's not dense neither green.
Increasing the density has no effect. Weird...

Is there something I miss?

Thanks,
Misery

Last edited by Misery; 05-05-2012 at 17:00.
Misery is offline
 



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 00:22.


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