AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   remove TE_DLIGHT after it's executed (https://forums.alliedmods.net/showthread.php?t=93226)

Hunter-Digital 05-26-2009 02:42

remove TE_DLIGHT after it's executed
 
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 ? :)

Arkshine 05-26-2009 02:47

Re: remove TE_DLIGHT after it's executed
 
I guess resend it but with a short life like 1 ( 0.1 second ).

Emp` 05-26-2009 02:53

Re: remove TE_DLIGHT after it's executed
 
Quote:

Originally Posted by arkshine (Post 834927)
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.

Hunter-Digital 05-26-2009 03:30

Re: remove TE_DLIGHT after it's executed
 
After how many would an old one remove itself ? :?

Emp` 05-26-2009 03:32

Re: remove TE_DLIGHT after it's executed
 
Depends on its life. Life is in deciseconds (10 deciseconds == 1 second)

Hunter-Digital 05-26-2009 04:00

Re: remove TE_DLIGHT after it's executed
 
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 ? :?

Dr.G 05-26-2009 04:24

Re: remove TE_DLIGHT after it's executed
 
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)

Hunter-Digital 05-26-2009 06:18

Re: remove TE_DLIGHT after it's executed
 
No, I want that slow fadeout light that lasts some little time (I send only one), TE_DLIGHT is perfect, there's no replacement


All times are GMT -4. The time now is 01:32.

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