ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Get/SetHudmessageLightLevel ACS function

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Pending Requests
View previous topic :: View next topic  
Author Message
Body-Guard
Unstoppable!


Joined: 08 Jan 2006
Location: Hungary

PostPosted: Sat Dec 07, 2013 11:12 am    Post subject: Get/SetHudmessageLightLevel ACS function Reply with quote

Syntax:

Code:
GetHudmessageLightLevel(int hudmsgid);
SetHudmessageLightLevel(int hudmsgid, int lightlevel);


This would be a zdaemon exclusive feature, and as such, I know there is a fat chance for it to never see implementation but lets give it a try...

Hudmessages are always fullbright no matter the actual sector brightness. This is undesirable behavior when using hudmessages as weapon sprites for example. (the only way to create weapons with advanced features in zdaemon)

To replicate normal weapon brightness changing as you go from one sector to another with different light level, one could use such trick:

Code:
SetHudmessageLightLevel(0,GetActorLightLevel(0));


This would set hudmessage brightness for all hudmessages to the light level of the sector the actor is currently standing in.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Pending Requests All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group