Raised This Month: $ Target: $400
 0% 

lighting tracers


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
schnitzelmaker
Senior Member
Join Date: Apr 2006
Location: HERE
Old 07-08-2006 , 10:23   Re: lighting tracers
Reply With Quote #4

have found a better way:
Code:
new vec1[3],Float:velocity[3],speed = 600 get_user_origin(id,vec1,1)     velocity_by_aim(id,speed,velocity) #define TE_USERTRACER            127 // larger message than the standard tracer, but allows some customization. // coord (origin) // coord (origin) // coord (origin) // coord (velocity) // coord (velocity) // coord (velocity) // byte ( life * 10 ) // byte ( color ) this is an index into an array of color vectors in the engine. (0 - ) // byte ( length * 10 )     message_begin(MSG_ALL,SVC_TEMPENTITY) write_byte(127) // TE_BEAMPOINTS) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_coord(floatround(velocity[0])) write_coord(floatround(velocity[1])) write_coord(floatround(velocity[2])) write_byte(10)     // Life write_byte(1)      //Color:1=red,2=green,max 12 colors write_byte(500)   //Higher value-> smaller tracers,lower = bigger tracers message_end()

But there is a problem:the trace fly through walls.
__________________

Last edited by schnitzelmaker; 07-09-2006 at 06:15.
schnitzelmaker 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 08:01.


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