Raised This Month: $ Target: $400
 0% 

Create light entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Emp0wer
Member
Join Date: Jul 2010
Location: Ukraine mother
Old 08-12-2010 , 09:53   Re: Create light entity
Reply With Quote #3

Quote:
Originally Posted by lazarev View Post
It send this every time on thinking, that makes my player really lagy if there are a lot of lights in the map, I knew about TE_DLIGHT but I want something that should not be updated every time, and could be attached to player, like a light enitity.
PHP Code:
        message_begin(MSG_BROADCASTSVC_TEMPENTITY);
        
write_byte(TE_DLIGHT);
        
engfunc(EngFunc_WriteCoordvOrigin[0]);
        
engfunc(EngFunc_WriteCoordvOrigin[1]);
        
engfunc(EngFunc_WriteCoordvOrigin[2]);
        
write_byte(iRadius);        // radius in 10's
        
write_byte(iR);        // R
        
write_byte(iG);        // G
        
write_byte(iB);        // B
        
write_byte(3);      // life
        
write_byte(0);        // decay rate
        
message_end(); 
Emp0wer is offline
Send a message via ICQ to Emp0wer Send a message via Skype™ to Emp0wer
 



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 21:58.


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