AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Creating smaller tracer (https://forums.alliedmods.net/showthread.php?t=195736)

darktemplar 09-10-2012 22:13

Creating smaller tracer
 
Hi everyone,

Could anyone answer my question about the TE_TRACER :D. I use TE_TRACER message to create a trace line but you know, that line is big, ugly and doesnt allow me to change it color. Can anyone help me to create a small tracer and that tracer allow me to change its color and witdth :)

Thank you,

micapat 09-11-2012 07:15

Re: Creating smaller tracer
 
Quote:

#define TE_USERTRACER 127 // Larger message than the standard tracer, but allows some customization.
// write_byte(TE_USERTRACER)
// write_coord(origin.x)
// write_coord(origin.y)
// write_coord(origin.z)
// write_coord(velocity.x)
// write_coord(velocity.y)
// write_coord(velocity.z)
// write_byte(life * 10)
// write_byte(color) this is an index into an array of color vectors in the engine. (0 - )
// write_byte(length * 10)

darktemplar 09-11-2012 22:42

Re: Creating smaller tracer
 
But it doesnt allow me to change the tracer's size

darktemplar 09-12-2012 03:22

Re: Creating smaller tracer
 
I think about TE_LINE, but can anyone tell me how to make it look like a tracer please ? :D


All times are GMT -4. The time now is 08:13.

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