TE_DLIGHT
a TE_DLIGHT cannot go longer than 1 second??
public fl(ent) { // check if entity isn't valid if(!pev_valid(ent)) return; // new variable for origin and get origin of entity static Float:origin[3]; pev(ent,pev_origin,origin); // send the light flash message_begin(MSG_BROADCAST,SVC_TEMPENTITY); write_byte(27); // TE_DLIGHT write_coord(floatround(origin[0])); // x write_coord(floatround(origin[1])); // y write_coord(floatround(origin[2])); // z write_byte(radius); // radius write_byte(255); // r write_byte(255); // g write_byte(255); // b write_byte(600); // life <<<<<<<< write_byte(60); // decay rate message_end(); remove_entity(ent) return } life is 600 = 60 seconds and it only lasts 1 second |
Re: TE_DLIGHT
i think this is because your decay is set to 60, try lowering your decay to something like 10 or 1 even. also, you could try increasing the life to something higher.
|
Re: TE_DLIGHT
10 life = 1 second, somehow just doesnt go over 1 second
do you even know what decay is? its how the edges of the light decay, not how fast the light decays away |
Re: TE_DLIGHT
Moin,
u have an overflow Quote:
hand, mogel |
Re: TE_DLIGHT
Quote:
|
Re: TE_DLIGHT
well a 600 didnt overflow
|
Re: TE_DLIGHT
Hi,
Quote:
set it to 255 -> 25.5 second u have a overflow hand, mogel |
Re: TE_DLIGHT
hm.. over 255 does go wierd, guess i cant do more than 25 sec without set tasks
i dont think the light can be removed on demand can you? |
| All times are GMT -4. The time now is 07:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.