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

remove TE_DLIGHT after it's executed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-26-2009 , 02:42   remove TE_DLIGHT after it's executed
Reply With Quote #1

Is there any way to remove a TE_DLIGHT ?

I set the life to 255 and decay rate to 0, and it lasts 25.5 seconds, but after the new round it's still there if it's set at the roundend... my question is how can I remove TE_DLIGHTS on command ?
__________________
Hunter-Digital is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-26-2009 , 02:47   Re: remove TE_DLIGHT after it's executed
Reply With Quote #2

I guess resend it but with a short life like 1 ( 0.1 second ).
Arkshine is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-26-2009 , 02:53   Re: remove TE_DLIGHT after it's executed
Reply With Quote #3

Quote:
Originally Posted by arkshine View Post
I guess resend it but with a short life like 1 ( 0.1 second ).
That would most likely just create another one right on top of it for 1 decisecond.

One thing you could do is send it with a much shorter life, and keep updating it until the round ends.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-26-2009 , 03:30   Re: remove TE_DLIGHT after it's executed
Reply With Quote #4

After how many would an old one remove itself ?
__________________
Hunter-Digital is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-26-2009 , 03:32   Re: remove TE_DLIGHT after it's executed
Reply With Quote #5

Depends on its life. Life is in deciseconds (10 deciseconds == 1 second)
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-26-2009 , 04:00   Re: remove TE_DLIGHT after it's executed
Reply With Quote #6

Yes I know, I said, it has 255, 25.5 seconds, but I asked how many dynamic lights can be "live" in the same time ?

I tested sending 16 lights at origin 8192 with color 1/1/1, 10 life and 10 decay rate

Or are you saying all messages with the same life value can only be some of each ? if I send another message with 255 life and 255 decay would the rest go away ?

EDIT:

I tried just now 24 messages with 255 life and 255 decay, didn't work, after that with 32 messages, that worked... sounds like spam with 32 lights sent at roundstart... :/ isn't there any other way ?
__________________

Last edited by Hunter-Digital; 05-26-2009 at 04:09.
Hunter-Digital is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 05-26-2009 , 04:24   Re: remove TE_DLIGHT after it's executed
Reply With Quote #7

are you using the TE_DLIGHT cuz you want the light to have a color? else you can create an entity and

PHP Code:
set_pev(iEntpev_effectsEF_BRIGHTLIGHT
there is also EF_DIMLIGHT. and if you wanna remove it, just kill it. set_pev(iEnt, pev_flags, FL_KILLME)
__________________
Dr.G is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-26-2009 , 06:18   Re: remove TE_DLIGHT after it's executed
Reply With Quote #8

No, I want that slow fadeout light that lasts some little time (I send only one), TE_DLIGHT is perfect, there's no replacement
__________________
Hunter-Digital 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 23:31.


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