Raised This Month: $32 Target: $400
 8% 

Change size for EF_BRIGHTLIGHT


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 12-26-2011 , 03:56   Change size for EF_BRIGHTLIGHT
Reply With Quote #1

Hi after a lof of time! ;)

I need to change flashlight entity size - radius is too big. I know about that -> https://developer.valvesoftware.com/wiki/EF_BRIGHTLIGHT and hardcoded values. EF_DIMLIGHT radius is good, but color is too dim. Any solution for now?
__________________
Join US - custom Zombie Server - Custom Addons:




Last edited by Sn!ff3r; 12-26-2011 at 04:02.
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 12-26-2011 , 10:18   Re: Change size for EF_BRIGHTLIGHT
Reply With Quote #2

You cant change this message size/radius.

you can make same like this message , and then change your radius/size.

example

PHP Code:
 
public fwd_PlayerPreThink(id)
{
 static 
origin[3]
 
get_user_origin(idorigin)
 
 
message_begin(MSG_PVSSVC_TEMPENTITYorigin)
 
write_byte(TE_DLIGHT);
 
write_coord(origin[0]) // x
 
write_coord(origin[1]) // y
 
write_coord(origin[2]) // z
 
write_byte(floatround(FIRE_LGHT_RADIUS2/5.0)); // radius
 
write_byte(255); // r
 
write_byte(255); // g
 
write_byte(255); // b
 
write_byte(1); // life
 
write_byte(1); // decay rate
 
message_end();

this what i have done for you looks same like this message "EF_BRIGHTLIGHT"

And you can change color/size now.
.Dare Devil. 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 04:11.


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