AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Change size for EF_BRIGHTLIGHT (https://forums.alliedmods.net/showthread.php?t=174819)

Sn!ff3r 12-26-2011 03:56

Change size for EF_BRIGHTLIGHT
 
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? :mrgreen:

.Dare Devil. 12-26-2011 10:18

Re: Change size for EF_BRIGHTLIGHT
 
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.


All times are GMT -4. The time now is 21:02.

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