AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [REQ] INS Fog control (https://forums.alliedmods.net/showthread.php?t=118106)

bouncer 02-07-2010 19:53

[REQ] INS Fog control
 
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.

deadbwoy 02-09-2010 04:10

Re: [REQ] INS Fog control
 
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 02-09-2010 14:24

Re: [REQ] INS Fog control
 
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?

Luke Penny 02-09-2010 18:36

Re: [REQ] INS Fog control
 
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.

bouncer 02-09-2010 20:01

Re: [REQ] INS Fog control
 
Yes stripper works for source.. wow thanks man.. I will try this later today or tomorrow, real busy.

Thank You a lot!

bouncer 02-09-2010 21:20

Re: [REQ] INS Fog control
 
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 02-09-2010 21:28

Re: [REQ] INS Fog control
 
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! :)

Luke Penny 02-10-2010 02:51

Re: [REQ] INS Fog control
 
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.


All times are GMT -4. The time now is 04:05.

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