Gmod Light / Environment Editor
To put it simply, this addon is meant to allow you to mess with the lighting of maps mid-game, while also reducing the negative side effects of doing so as much as possible.
If you need one, the first video on the workshop page is a quick tutorial on how to use this. (Though it is currently slightly outdated)
This addon works best on maps with named light_environments (Try gm_construct if you need a map that works well-ish).
Since maps aren’t exactly designed with messing with lighting in this way in mind, you’re likely to encounter weird lighting issues that I have no way of fixing (most notably static props sometimes not changing their lighting properly, like the ones in the skybox on construct). If you do, it’s best to just try hiding or working around these issues. I’ve found when things like this can’t be outright hidden, it’s usually works well to set ambient light to 2 and use a fog editor with black fog, as this usually gets best of both methods.
This addon may on-occasion cause lamps/lights to not work properly at all, in which-case you can disable the lamp/light fixer to make them work normally again.
The "Skybox Texture" box just directly changes sv_skyname, you can find the skybox names for most games by just searching for them on your preferred search engine; But to save you the trouble: Here’s the list of skyboxes for half-life 2
- Environment_ambientLightLevel (1-26)
– Controls light in shadows and from artificial sources, 12 is default, 1 is pitch black. - Environment_SunLightLevel (1-26)
– Controls direct light from the sun, 12 is default, 1 is pitch black - Environment_ChangeLightStyle (0-1)
– Whether or not the fix for lamps/lights is activated - Environment_ForceDisabledSkybox (0-1)
– Sets r_3dky to 0 for all players - Environment_ForceDisabledCubemaps (0-1)
– Sets mat_specular to 0 for all players - Environment_ForceRadiosityZero (0-1)
– Sets r_radiosity to 0 for all players (which helps in outdoor areas and with static/dynamic props still being lit) - Environment_DarkenWater (0-1)
– Darkens the colour of water fog based on the current value of Environment_ambientLightLevel to fix water sources appearing glow-y. - Environment_DarkenRopes (0-1)
– Sets the colour of any ropes that were part of the map to black
(The commands in this table remove all of a certain entity type from the map)
Environment_stopSoundscape
– Runs stopsound and stopsoundscape for all players. Requires sv_cheats 1 to work properly.
If you wish to contribute, a github repository for this is available here[github.com]