AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Color Tracer (https://forums.alliedmods.net/showthread.php?t=318013)

SHIELD755 08-09-2019 04:02

Color Tracer
 
hello ,

can anybody help me how can i add the color in the tracer, did i have to use any sprite for color

please guide me :)

PHP Code:

tracer(Float:start[3], Float:end[3]) {
    new 
start_[3], end_[3]
    
FVecIVec(startstart_)
    
FVecIVec(endend_)
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY//  MSG_PAS MSG_BROADCAST
    
write_byte(TE_TRACER)
    
write_coord(start_[0])
    
write_coord(start_[1])
    
write_coord(start_[2])
    
write_coord(end_[0])
    
write_coord(end_[1])
    
write_coord(end_[2])
    
message_end()



E1_531G 08-09-2019 04:11

Re: Color Tracer
 
write_byte(TE_TRACER) cannot have color.

SHIELD755 08-09-2019 04:41

Re: Color Tracer
 
Quote:

Originally Posted by E1_531G (Post 2662590)
write_byte(TE_TRACER) cannot have color.

okay thanks for reply , i must find another way for Laser Tracer like any sprite :)

E1_531G 08-09-2019 04:48

Re: Color Tracer
 
Look at https://forums.alliedmods.net/showthread.php?t=310276
Maybe something will fit to you.

OciXCrom 08-09-2019 16:05

Re: Color Tracer
 
Quote:

Originally Posted by E1_531G (Post 2662594)
Look at https://forums.alliedmods.net/showthread.php?t=310276
Maybe something will fit to you.

te_create_user_tracer is the same as tracer, but allows customization, including changing color.

SHIELD755 08-10-2019 06:16

Re: Color Tracer
 
Quote:

Originally Posted by OciXCrom (Post 2662681)
te_create_user_tracer is the same as tracer, but allows customization, including changing color.

i am wanted the COLOR TRACER for SENTRYGUN . and i think the user tracer will work for player ? am i right ?

thEsp 08-10-2019 06:42

Re: Color Tracer
 
http://amxx-bg.info/api/msgstocks/te_create_user_tracer
Quote:

stock te_create_user_tracer(position[3], velocity[3], life = 1, color = 106, length = 1, receiver = 0, bool:reliable = true)
Where do you see param for user index?

OciXCrom 08-10-2019 07:23

Re: Color Tracer
 
There is XYZ position instead of index, so it will still function the same way. You can even set who can see it by modifying the "receiver" argument.


All times are GMT -4. The time now is 19:18.

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