Raised This Month: $ Target: $400
 0% 

TE_Dlight


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Abbz
New Member
Join Date: Jan 2016
Old 11-19-2023 , 01:23   TE_Dlight
Reply With Quote #1

hi, can someone guide me which one can i permenant stick to player so when he moves out the light follows them, can it be te_dlight or te_elight?
Abbz is offline
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 11-25-2023 , 17:50   Re: TE_Dlight
Reply With Quote #2

Optimized way, you cannot change the color or the radius, to disable it change EF_BRIGHTLIGHT to 0:
PHP Code:
        entity_set_intClientEV_INT_effectsEF_BRIGHTLIGHT ); 
Less optimized way, calls every so often to reset because the "TE" are temporary not infinite, but u can edit the color and radius:

PHP Code:
        set_task0.1"fxLight"Client__"b" );

public 
fxLightClient )
{
        
MakeLightClient202550030010 );
}
stock MakeLightTormentaClientRadiusRGBLifeDecayrate  );
{
        new 
Float:__fl_Origin[3];
        
entity_get_vectorClient0__fl_Origin );

        
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
        
write_byte(TE_DLIGHT// 27
        
write_coord_f(__fl_Origin[0]) // x
        
write_coord_f(__fl_Origin[1]) // y
        
write_coord_f(__fl_Origin[2]) // z
        
write_byte(Radius// radius
        
write_byte(R// Red
        
write_byte(G// Green
        
write_byte(B// Blue
        
write_byte(Life// life
        
write_byte(Decayrate// decay rate
        
message_end()    

You can remove it with remove_task( Client );

Last edited by MrPickles; 11-25-2023 at 17:52.
MrPickles is offline
Reply


Thread Tools
Display Modes

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 07:05.


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