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

Entity light


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 07-15-2011 , 16:42   Entity light
Reply With Quote #1

How to do that entity in any place is always same light
pev_light_level don't work
DarkGL is offline
lazarev
Veteran Member
Join Date: Sep 2008
Old 07-15-2011 , 23:43   Re: Entity light
Reply With Quote #2

pev_effects | EF_BRIGHTLIGHT
lazarev is offline
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 07-16-2011 , 14:51   Re: Entity light
Reply With Quote #3

to big effect ;) I want to entity bright don't area around him
DarkGL is offline
Old 07-16-2011, 15:06
lazarev
This message has been deleted by lazarev.
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 07-16-2011 , 15:55   Re: Entity light
Reply With Quote #4

Try TE_ELIGHT message
__________________
Полный похуизм.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 07-16-2011 , 16:51   Re: Entity light
Reply With Quote #5

Code:
message_begin(MSG_PVS, SVC_TEMPENTITY, origin, 0);
	write_byte(TE_DLIGHT);
	engfunc(EngFunc_WriteCoord,fOrigin[0])
	engfunc(EngFunc_WriteCoord,fOrigin[1])
	engfunc(EngFunc_WriteCoord,fOrigin[2])
	write_byte(3); //radius
	write_byte(255);  //red 
	write_byte(255); //green
	write_byte(255); //blue
	write_byte(5);
	write_byte(1);
	message_end();
DarkGL is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-16-2011 , 16:53   Re: Entity light
Reply With Quote #6

ELIGHT not DLIGHT.
__________________
Hunter-Digital is offline
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 07-16-2011 , 17:24   Re: Entity light
Reply With Quote #7

TE_DLIGHT works good TE_ELIGHT was crashing
can you gave simple code how to use TE_ELIGHT i will find what I m doing wrong ?
DarkGL is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-16-2011 , 19:46   Re: Entity light
Reply With Quote #8

It doesn't crash, you used it wrong, see the correct syntax in include/messages_const.inc
__________________
Hunter-Digital is offline
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 07-16-2011 , 23:06   Re: Entity light
Reply With Quote #9

yes I know that I m doing something wrong so I asked for simple code
DarkGL is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 07-17-2011 , 06:09   Re: Entity light
Reply With Quote #10

Quote:
Originally Posted by DarkGL View Post
yes I know that I m doing something wrong so I asked for simple code
Maybe show what you've done which leads it to a crash?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu 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 06:56.


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