Garry's Mod
2,251 人が評価
Gmod Light / Environment Editor
7
2
2
6
6
3
2
   
アワード
お気に入り
お気に入り
お気に入りから削除
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Scenic
ファイルサイズ
投稿日
更新日
333.761 KB
2022年3月15日 8時38分
5月21日 7時16分
15 項目の変更履歴 ( 表示 )

サブスクライブしてダウンロード
Gmod Light / Environment Editor

JonahSoldier 作成の 1 件のコレクション
Octantis Addons
4 アイテム
解説
- About This Addon -

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 outdated, and a lot of things have been improved or added since then.)


- Extra Details -

This addon has the most functionality on maps with named light_environments, as this separates ambient light and sunlight (allowing you to adjust both separately). The rest of the addon works more-or-less the same with/without one, though you may need a different combination of work-arounds as the lighting behaves slightly differently in both contexts.

Since neither source nor gmod were designed to accommodate what this addon does, there's a lot of weird jank and a few unfixable issues. Nothing this addon does will persist beyond a restart. You may encounter entities that don't update their lighting with the ambient light slider. There's usually nothing that can be done about this, and there are a number of buttons to outright remove these for that reason. Wherever there are seemingly arbitrary limitations (e.g. the 1-26 range for light level) these are usually for technical reasons and can't be changed.

This addon may very rarely 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 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

- Console commands -

  • 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)
Command
Target
Environment_Destroy_Beams
Lightbeams
Environment_Destroy_Soundscapes
Soundscapes
Environment_Destroy_AmbientGeneric
Sound Emitters
Environment_Destroy_Sprites
Sprites
Environment_Destroy_SmokeVolume
Smoke effects
  • Environment_stopSoundscape
    - Runs stopsound and stopsoundscape for all players. Requires sv_cheats 1 to work properly.

  • Environment_DisableStaticAmbientLighting
    - Uses black-magic to disable the map lighting on static props entirely. This will last until you start a new game/restart the server, so only use it if you're planning to keep the map pitch-black for the entire session.

  • Environment_DisableStaticSelfIllum
    - Disable self-illumination on all static props. This one can be toggled on/off. This is useful for any lamp props that are part of the map, as otherwise they'll be fully-bright/glowing.

    *Note: This edits the material rather than the static prop itself, so props with the same material as a static prop on the map will also have no self-illumination while this is turned on.

If you wish to contribute, a github repository for this is available here[github.com]
人気スレッド 全て表示 (8)
12
1
7月30日 19時29分
Petition to make zeta player use flash light in the lowest sunlight option (also ambient light)
Deer-Lover
11
2月13日 0時11分
is this addon safe?
cleminite
2
5月15日 22時29分
Saves with the editor in them will crash the game
hawk tuah
251 件のコメント
KN1GHT 11月12日 14時56分 
does this work in rooms? or just outside
Rom blw.tf 10月22日 11時34分 
Finally! I can turn gm_construct into a horror map!
JonahSoldier  [作成者] 10月12日 12時50分 
It's a holdover from the original DOOM/Quake. This addon uses the same system that flickering lights use. Ordinarily that's determined by a sequence of letters indicating relative brightness levels, which makes some amount of sense for that application, but is obviously very limiting/arbitrary for anything else.

You can see a few examples on this page: https://developer.valvesoftware.com/wiki/Lightstyle
I'm pretty sure there's a more in-depth explanation of the system somewhere on the valve developer wiki, but I'm not entirely sure where it is.
wolfrcats 10月11日 15時48分 
Engine limits would be the cause if anything else
The Đoctor 10月11日 13時24分 
source be like
JonahSoldier  [作成者] 10月11日 1時10分 
I can't change the limit. The 1-26 numbers correspond to letter values which is why that really weird range exists.
wolfrcats 10月10日 18時40分 
26 Shouldnt be the limit. I feel like thats already unfair. I would make night maps 1000 times brighter if I could. Lua editing wouldnt allow such thing
stoeberljoaquin 9月26日 18時14分 
thanks, here is mi gift
vugcdfbhjk hjkrwhklkbwtjhgevbhwtioeghnrbjla.edithwougbnvsjfz.lkiatuhgkbnlszi.at4ujh4grnjavu45ij8gth7y4ouengvb i4eoatpu8sg\hec na t4ue7aw8sc\tfljn vgaweas847tygvunialetfvrjhoaeiurytgh457o86379690321
The Đoctor 8月22日 8時58分 
I just wanna give my thanks. This addon has been a godsend for my short film. It's been so important to have the lighting I need, especially being able to make it pitch black so I can add my own custom lighting to the scene.

Just overall great job on this and thank you!! :steamthumbsup:
JonahSoldier  [作成者] 8月21日 14時36分 
Set the skyname to "painted" in the text box at the top of the menu then spawn a sky editor and use that to mess with the sky. This addon only affects the map lighting itself.