AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Solved Change map lighting (https://forums.alliedmods.net/showthread.php?t=300715)

_GamerX 08-26-2017 19:26

Change map lighting
 
Is possible change map lighting e.g. to darkness?

fiction 08-27-2017 13:23

Re: Change map lighting
 
Check out SDK Tools' SetLightStyle().
  • style is how the lighting will behave, you can see all the values here.
  • value is the brightness, a being the darkest, z being the brightest. (a is bugged in certain games making surfaces completely black)

PHP Code:

//This will make the map as dark as possible (using SetLightStyle) in CS:GO.
public void OnMapStart()
{
    
SetLightStyle(0"b");


Here is a comparison of the default lighting vs. light value b:

_GamerX 08-28-2017 11:50

Re: Change map lighting
 
Quote:

Originally Posted by fiction (Post 2544713)
Check out SDK Tools' SetLightStyle().
  • style is how the lighting will behave, you can see all the values here.
  • value is the brightness, a being the darkest, z being the brightest. (a is bugged in certain games making surfaces completely black)

PHP Code:

//This will make the map as dark as possible (using SetLightStyle) in CS:GO.
public void OnMapStart()
{
    
SetLightStyle(0"b");


Here is a comparison of the default lighting vs. light value b:


Thanks so much :3

FroGeX 10-30-2022 10:01

Re: Change map lighting
 
Is possible this change runtime? Not only on map start.

Sreaper 11-01-2022 04:05

Re: Change map lighting
 
Quote:

Originally Posted by FroGeX (Post 2791843)
Is possible this change runtime? Not only on map start.

I believe Ent Control uses SetLightStyle under menus.sp allowing you to change a map's brightness at runtime. https://forums.alliedmods.net/showthread.php?p=1470189


All times are GMT -4. The time now is 12:58.

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