Garry's Mod

Garry's Mod

66 ratings
ConVar that controls brightness of maps
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Build, Roleplay, Scenic
File Size
Posted
720.000 B
11 Dec, 2021 @ 12:32pm
1 Change Note ( view )

Subscribe to download
ConVar that controls brightness of maps

Description
Title.

Simply type engine.LightStyle in console with any letter from the alphabet to change a map's lighting, where "a" is dark and "z" is bright, normal map lighting is "m". You can also chain them together to create flashing effects like "azah". This is for those that don't use CSM, or those that can't use CSM on a non supported map.

You can also do that without the addon but it will only support singleplayer use, you enter commands in this order into the console;
lua_run engine.LightStyle(0, "z")
lua_run_cl render.RedownloadAllLightmaps( true, true )

Might not work with every map, and complex maps could crash your game.
(works fine on gm_atomic)

Inspired by StormFox's lightning control.
Thanks to Riggs for showing me this incredible function.


make sure to check out my other addons if you are interested.
My Workshop Addons
28 Comments
Random_Guy 4 Nov, 2024 @ 4:48pm 
This is actually very useful, but the thumbnail probably misleads people not gonna lie
Jon Lennon 25 Dec, 2023 @ 6:42pm 
FUCK THIS SHIT!
JR0404 12 Nov, 2023 @ 12:59pm 
░░░░▄▄▄░░▄██▄░░░
░░░░░▐▀█▀▌░░░░▀█▄░░░
░░░░░▐█▄█▌░░░░░░▀█▄░░
░░░░░░▀▄▀░░░▄▄▄▄▄▀▀░░
░░░░▄▄▄██▀▀▀▀░░░░░░░
░░░█▀▄▄▄█░▀▀░░
░░░▌░▄▄▄▐▌▀▀▀░░ THIS IS BOB
▄░▐░░░▄▄░█░▀▀ ░░
▀█▌░░░▄░▀█▀░▀ ░░
░░░░░░░▄▄▐▌▄▄░░░BOB HAS A BODY COUNT, GUESS WHICH TYPE :]
░░░░░░░▀███▀█░▄░░
░░░░░░▐▌▀▄▀▄▀▐▄░░
░░░░░░▐▀░░░░░░▐▌░░
░░░░░░█░░░░░░░░█░░░
TireRire 1 May, 2023 @ 6:53pm 
░░░░▄▄▄░░▄██▄░░░
░░░░░▐▀█▀▌░░░░▀█▄░░░
░░░░░▐█▄█▌░░░░░░▀█▄░░
░░░░░░▀▄▀░░░▄▄▄▄▄▀▀░░
░░░░▄▄▄██▀▀▀▀░░░░░░░
░░░█▀▄▄▄█░▀▀░░
░░░▌░▄▄▄▐▌▀▀▀░░ THIS IS BOB
▄░▐░░░▄▄░█░▀▀ ░░
▀█▌░░░▄░▀█▀░▀ ░░ STOP COPY N PASTING THIS DUMB SHIT
░░░░░░░▄▄▐▌▄▄░░░
░░░░░░░▀███▀█░▄░░
░░░░░░▐▌▀▄▀▄▀▐▄░░
░░░░░░▐▀░░░░░░▐▌░░
░░░░░░█░░░░░░░░█░░░
the overmind 22 Apr, 2023 @ 8:58am 
wongla zumbsagogg
I IDENTIFY AS TOAST™ 9 Apr, 2023 @ 6:48pm 
░░░░▄▄▄░░▄██▄░░░
░░░░░▐▀█▀▌░░░░▀█▄░░░
░░░░░▐█▄█▌░░░░░░▀█▄░░
░░░░░░▀▄▀░░░▄▄▄▄▄▀▀░░
░░░░▄▄▄██▀▀▀▀░░░░░░░
░░░█▀▄▄▄█░▀▀░░
░░░▌░▄▄▄▐▌▀▀▀░░ THIS IS BOB
▄░▐░░░▄▄░█░▀▀ ░░
▀█▌░░░▄░▀█▀░▀ ░░
░░░░░░░▄▄▐▌▄▄░░░
░░░░░░░▀███▀█░▄░░
░░░░░░▐▌▀▄▀▄▀▐▄░░
░░░░░░▐▀░░░░░░▐▌░░
░░░░░░█░░░░░░░░█░░░
nasty rat 16 Jan, 2023 @ 1:14pm 
for the people in the comments,






why.
HelloTR_sfm 3 Dec, 2022 @ 4:24am 
░░░░▄▄▄░░▄██▄░░░
░░░░░▐▀█▀▌░░░░▀█▄░░░
░░░░░▐█▄█▌░░░░░░▀█▄░░
░░░░░░▀▄▀░░░▄▄▄▄▄▀▀░░
░░░░▄▄▄██▀▀▀▀░░░░░░░
░░░█▀▄▄▄█░▀▀░░
░░░▌░▄▄▄▐▌▀▀▀░░ THIS IS BOB
▄░▐░░░▄▄░█░▀▀ ░░
▀█▌░░░▄░▀█▀░▀ ░░ COPY AND PASTE HIM,
░░░░░░░▄▄▐▌▄▄░░░ SO, HE CAN TAKE
░░░░░░░▀███▀█░▄░░ OVER THE WORKSHOP
░░░░░░▐▌▀▄▀▄▀▐▄░░
░░░░░░▐▀░░░░░░▐▌░░
░░░░░░█░░░░░░░░█░░░
Dodyssey 13 Aug, 2022 @ 12:12pm 
is ther radol
Fvynchynch 30 Mar, 2022 @ 1:42am 
On one hand, handy lighting convar.

On the other hand, folks need some sauce.