Raised This Month: $51 Target: $400
 12% 

SetLightStyle dont work.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 04-17-2012 , 17:46   SetLightStyle dont work.
Reply With Quote #1

I need to darken the light of the map, and change the sky but I'm having problems because SetLightStyle no longer works, anyone knows another method, the only method I found is by SetLightStyle, I thought about changing your method but only for a LEFT4DEAD2.

PHP Code:
SetLightStyle(0"n"); 
Thanks.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM
rodrigo286 is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-18-2012 , 07:04   Re: SetLightStyle dont work.
Reply With Quote #2

Try to do this each three, four or five seconds using a timer. In HL1 games, g_engfuncs.pfnLightStyle should be called each five seconds.

Last edited by claudiuhks; 04-18-2012 at 07:10.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 04-18-2012 , 18:11   Re: SetLightStyle dont work.
Reply With Quote #3

Anyone know a method for the HL2 games, that really works, thanks.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM
rodrigo286 is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-18-2012 , 19:10   Re: SetLightStyle dont work.
Reply With Quote #4

Quote:
Originally Posted by rodrigo286 View Post
Anyone know a method for the HL2 games, that really works, thanks.
Have you tried what I said?
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 04-18-2012 , 20:12   Re: SetLightStyle dont work.
Reply With Quote #5

Claudiuhks, it worked, but I used "SetLightStyle" even before did not work because I used the "n" value which is very clear, using a, b ​​or c, you have darker levels.

Values:

"a" super dark
"b" dark
"c" average

In my plugin, I use:

PHP Code:
SetLightStyle(0"b"); 
But now also need to know how to change the sky.

Regards.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM

Last edited by rodrigo286; 04-18-2012 at 20:14.
rodrigo286 is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-18-2012 , 20:19   Re: SetLightStyle dont work.
Reply With Quote #6

I think it's sv_skyname.
Of course, your custom sky should be precached using PrecacheGeneric.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 04-18-2012 , 20:30   Re: SetLightStyle dont work.
Reply With Quote #7

I put this way and it worked, I used a sky, which is the default of HL2, I think I will have no problems, right?


PHP Code:
public OnMapStart()
{
// Set ligth and sky ambient
    
SetLightStyle(0"b");
    
ServerCommand("sv_skyname sky_borealis01");

But if I use a custom sky, how can I do for the game to recognize that my texture would be a sky?

#EDIT

One last thing too, by putting completely dark map, a bug is generated, and some parts of the map as props are glowed, there is some way to solve this?

Look:


Regards.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM

Last edited by rodrigo286; 04-18-2012 at 20:46.
rodrigo286 is offline
Lord Canistra
Senior Member
Join Date: Mar 2009
Location: Tallinn, Estonia
Old 04-19-2012 , 00:47   Re: SetLightStyle dont work.
Reply With Quote #8

These are not just "some parts", but game models. Also note that particles (dust clouds) are not affected as well.
__________________
Lord Canistra is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-19-2012 , 00:59   Re: SetLightStyle dont work.
Reply With Quote #9

Why don't you just wait for the L4D2 Weather Plugin I'm making? It does all of this and a heap more. It's finished, just want to test more.
__________________

Last edited by Silvers; 04-19-2012 at 00:59.
Silvers is offline
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 04-19-2012 , 12:04   Re: SetLightStyle dont work.
Reply With Quote #10

Silvers, you plugin is for L4D2, i need for source, but, i test plugin for you.

Regards.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM
rodrigo286 is offline
Reply



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:27.


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