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

LightStyle


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sumguy14
Senior Member
Join Date: Apr 2006
Old 07-12-2007 , 15:31   LightStyle
Reply With Quote #1

Is there currently an possible way to change the lightstyle of a map?
Kinda like how ZH/ZM make the map really dark.
sumguy14 is offline
sumguy14
Senior Member
Join Date: Apr 2006
Old 07-15-2007 , 23:20   Re: LightStyle
Reply With Quote #2

(bump)
sumguy14 is offline
pRED*
Join Date: Dec 2006
Old 07-15-2007 , 23:24   Re: LightStyle
Reply With Quote #3

Not through a plugin at the moment. You could add a request for it.. Or an extension that gives access to it wouldn't be hard, I saw it in the sdk the other day. Finding it again would be an issue..
pRED* is offline
sumguy14
Senior Member
Join Date: Apr 2006
Old 07-15-2007 , 23:26   Re: LightStyle
Reply With Quote #4

kk, thanks, I'll request it
sumguy14 is offline
pRED*
Join Date: Dec 2006
Old 07-15-2007 , 23:30   Re: LightStyle
Reply With Quote #5

If it doesn't make the 1.0 cut, I (or someone else) could prob make a quick extension to do it..

Memo to self or anyone else that wants to do it: hl2sdk/public/eiface.h - IVEngineServer::LightStyle( int style, const char *val )

Last edited by pRED*; 07-15-2007 at 23:33.
pRED* is offline
Xenogenetics
Member
Join Date: Jul 2007
Old 07-18-2007 , 18:20   Re: LightStyle
Reply With Quote #6

If you just need lights changed you can do it with entspy or whatever it's called.
Xenogenetics is offline
robot
Junior Member
Join Date: Oct 2005
Old 07-21-2007 , 23:29   Re: LightStyle
Reply With Quote #7

Hey sumguy,

Sorry for the delayed reply, but I just noticed your message. In short, it has been aaaages since I looked at that bit of code, but it is done by calling a function called LightStyle, found in IVEngineServer. We all learned it from fysh, who did it in nemod, except nemod uses a full dark parameter (check the nemod sources for that) whereas we prefer the 'semi-dark' appearance that doesn't blot out whole models etc.

I'm just starting to learn SourceMod myself, so I'm not sure how it should be done here, but please take a look at how we do it in ZombieHorde. We have always been proudly open source, so you can get our code here:

http://zombiehorde.svn.sourceforge.n...iehorde/trunk/

Look in zhplug.cpp, search for 'LightStyle'

I hope this helps.

.robot
robot 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 18:36.


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