Raised This Month: $ Target: $400
 0% 

[REQ] INS Fog control


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bouncer
Veteran Member
Join Date: Apr 2009
Old 02-07-2010 , 19:53   [REQ] INS Fog control
Reply With Quote #1

Couldn't find out how to do this, so just wondering... could someone make me a plugin that creates fog in a map without the players having to download anything? Or them downloading would be necessary?

Thanks.
__________________


bouncer is offline
deadbwoy
Member
Join Date: Mar 2009
Location: The Intarweb
Old 02-09-2010 , 04:10   Re: [REQ] INS Fog control
Reply With Quote #2

Not sure if this is possible...
Isn't there a plugin that spawns an entity?
You need an env_fog_controller entity in your map. (Im pretty sure all the INS default maps have fog entities built in already)

Anyone know if it would be possible to spawn an env_fog_controller, setting flag as Master to override any built in env_fog_controller's for the map?

Im not 100% sure, but Im thinking the map's default fog is loaded before sourcemod and its plugins...
deadbwoy is offline
deadbwoy
Member
Join Date: Mar 2009
Location: The Intarweb
Old 02-09-2010 , 14:24   Re: [REQ] INS Fog control
Reply With Quote #3

Ok so I found some console commands for fog, but the cvar that activates it is considered a cheat (fog_override)

Code:
fog_color -1 -1 -1
fog_colorskybox -1 -1 -1
fog_enable 1
fog_enable_water_fog 1
fog_enableskybox 1
fog_end -1
fog_endskybox -1
fog_override 0
fog_start -1
fog_startskybox -1

Isn't there a plugin that changes the cheat flag of a specific cvar?
deadbwoy is offline
Luke Penny
Senior Member
Join Date: Jan 2010
Location: Canada
Old 02-09-2010 , 18:36   Re: [REQ] INS Fog control
Reply With Quote #4

Those Cvars are clientside, sourcemod can not change them for clients. However, you could use Stripper: Source to add env_fog_controllers to your map, and assuming there isn't one already, it would take effect everywhere in the map.
http://www.bailopan.net/stripper/

You could do something as simple as this

Code:
add:
{
"classname" "env_fog_controller"
"origin" "1 1 1"
"fogcolor" "200 200 255"
"fogcolor2" "200 150 255"
"fogstart" "64" 
"fogend" "1280"
}
"
That is from my memory, but there are more properties that you could add for the fog controller, but I am not entirely sure if adding the fog controller will work, but it should.

EDIT: If INS already has env_fog_controllers, then you want something like this.
Code:
modify:
{
match:
{
"classname" "env_fog_controller"
}
replace:
{
"fogstart" "120"
"fogcolor" "200 200 200"
}
}
Just as an example, you could do other properties as well. I am assuming that stripper: Source works on INS, I have no idea if it does. If it doesn't, then I have a plugin I made a while ago for editing fog, I could dig it up and find it, but Stripper is much easier if it works.
__________________

Last edited by Luke Penny; 02-09-2010 at 18:41.
Luke Penny is offline
bouncer
Veteran Member
Join Date: Apr 2009
Old 02-09-2010 , 20:01   Re: [REQ] INS Fog control
Reply With Quote #5

Yes stripper works for source.. wow thanks man.. I will try this later today or tomorrow, real busy.

Thank You a lot!
__________________


bouncer is offline
bouncer
Veteran Member
Join Date: Apr 2009
Old 02-09-2010 , 21:20   Re: [REQ] INS Fog control
Reply With Quote #6

Hey it works without a flaw!
Quick question.. insurgency uses either light or light_environment entity , most likely light_environment for the sun entity, how do I modify that one?

Quote:
modify:
{
match:
{
"classname" "light_environment"
}
replace:
{
"fogstart" "50"
"fogcolor" "0 0 0"

}
}
__________________


bouncer is offline
bouncer
Veteran Member
Join Date: Apr 2009
Old 02-09-2010 , 21:28   Re: [REQ] INS Fog control
Reply With Quote #7

Or better yet.. how to change it to a moon? I'm trying to make a night map with fog.. If you could help me out with that.. that would be awesome!
__________________


bouncer is offline
Luke Penny
Senior Member
Join Date: Jan 2010
Location: Canada
Old 02-10-2010 , 02:51   Re: [REQ] INS Fog control
Reply With Quote #8

I am not sure for INS, but I believe that env_sun and env_moon are the sun and moon entities (in l4d anyways)
If not, most likely an env_sprite.

If you know how to use hammer, open up the map in that and check out the entities, or do a stripper_dump in console and search the dump file for sun or moon, and edit accordingly. As for lighting, environment_light is indeed the light that comes from the skybox. To change skybox texture, edit the classname worldspawn, again look in the dump file, I would write out a cfg but my phone has no special characters, but il check in tommorow invade you can't get it.
__________________
Luke Penny 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 04:06.


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