Raised This Month: $32 Target: $400
 8% 

[SM] Change light_enviroment entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dodsplayer
Junior Member
Join Date: May 2011
Old 09-04-2015 , 15:54   [SM] Change light_enviroment entity
Reply With Quote #1

Hey guys!
I would ask you for a help. Can somebody tell me, is it possible to change light_enviroment entity on map through sourcemod? I tried smlib Entity_FindByHammerId function and FindEntityByClassname and it always returns -1. But when I'm trying to choose "env_fog_controller" it seemes to be working. .

Any help is appreciated! Thanks for attention!
dodsplayer is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-04-2015 , 16:00   Re: [SM] Change light_enviroment entity
Reply With Quote #2

light_environment no longer exists once a map is compiled because it's an internal entity, just like prop_static (for example).
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 09-04-2015 , 16:00   Re: [SM] Change light_enviroment entity
Reply With Quote #3

no, it's removed when the map is created, like prop_static
Miu is offline
worMatty
Junior Member
Join Date: Jun 2015
Old 09-04-2015 , 19:34   Re: [SM] Change light_enviroment entity
Reply With Quote #4

Bear in mind that all of the light and shading is baked in to the map, so you wouldn't be able to change it anyway. But I'm told you can make a map with two light_environment, name them and use logic to switch between them but as you can imagine the increase in lightmap data would be horrendous.
worMatty is offline
dodsplayer
Junior Member
Join Date: May 2011
Old 09-05-2015 , 03:41   Re: [SM] Change light_enviroment entity
Reply With Quote #5

Thanks for your answers. Now I understand why I can't do that.
Quote:
But I'm told you can make a map with two light_environment, name them and use logic to switch between them
Unfortunately - that's my point: not to recompile map at all. Just wanted to make one of the official maps more brighter, colorful and beautiful. Nobody likes dark maps...
dodsplayer is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 09-05-2015 , 05:03   Re: [SM] Change light_enviroment entity
Reply With Quote #6

Color_correction
SetLightStyle
SkyBox

Last edited by kadet.89; 09-05-2015 at 05:07.
kadet.89 is offline
Send a message via Skype™ to kadet.89
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 09-05-2015 , 05:04   Re: [SM] Change light_enviroment entity
Reply With Quote #7

if you make map with two ligh_enviroment, the map is compiled for both of them and you can just choose which version is in use.
It's like light that you can turn on/off, the map is compiled for both states.
KissLick is offline
DanggServers
New Member
Join Date: Jun 2018
Location: yes
Old 07-06-2018 , 20:52   Re: [SM] Change light_enviroment entity
Reply With Quote #8

Quote:
Originally Posted by KissLick View Post
if you make map with two ligh_enviroment, the map is compiled for both of them and you can just choose which version is in use.
It's like light that you can turn on/off, the map is compiled for both states.
How to choose which version is used? (cs go cvar?)
__________________
DanggServers is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 07-06-2018 , 22:53   Re: [SM] Change light_enviroment entity
Reply With Quote #9

You would need a plugin to send an input to the light.
sv_skybox is also useful
Mitchell is offline
DanggServers
New Member
Join Date: Jun 2018
Location: yes
Old 08-19-2018 , 12:09   Re: [SM] Change light_enviroment entity
Reply With Quote #10

Quote:
Originally Posted by Mitchell View Post
You would need a plugin to send an input to the light.
sv_skybox is also useful
Can you give an example how to do it please?
__________________
DanggServers is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:37.


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