Raised This Month: $ Target: $400
 0% 

TE_DLIGHT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 08-16-2007 , 19:53   TE_DLIGHT
Reply With Quote #1

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 Floatrigin[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
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
 



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:58.


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