Raised This Month: $32 Target: $400
 8% 

Bullet Trail ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-07-2017 , 22:20   Bullet Trail ?
Reply With Quote #1

Hi guys.

i realy try to make a colored bullet trail in any color i choose but i don't have any idea on how to do that.
so can anyone show me how to make a colored bullet trail works for any weapons.

Thanks for advance.
yas17sin is offline
Send a message via ICQ to yas17sin
wickedd
Veteran Member
Join Date: Nov 2009
Old 02-07-2017 , 22:39   Re: Bullet Trail ?
Reply With Quote #2

Search "Tracers".
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-07-2017 , 22:57   Re: Bullet Trail ?
Reply With Quote #3

i know this one but i want the function for only one gun i will put it in the gun code.
yas17sin is offline
Send a message via ICQ to yas17sin
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-07-2017 , 23:24   Re: Bullet Trail ?
Reply With Quote #4

Here:

PHP Code:
if( iWeapon == CSW_KNIFE 
Try if works when you add your's guns index name.
I mean on the advanced weapon tracers' code.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 02-07-2017 at 23:24.
EFFx is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-07-2017 , 23:47   Re: Bullet Trail ?
Reply With Quote #5

no you didn't understand me well.
i created a weapon and i need to make a colored tracer bullet for the weapon i create only and i ask for a function can do this so i put it in the code without need to do any other plugins.
yas17sin is offline
Send a message via ICQ to yas17sin
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-07-2017 , 23:51   Re: Bullet Trail ?
Reply With Quote #6

Just re-read again what I said, this must work.

Here:

PHP Code:
public TraceAttack(iEntiAttackerFloat:flDamageFloat:fDir[3], ptriDamageType)
{
    if( !
IsPlayer(iAttacker) || get_pcvar_num(g_pCvarTraceEnabled) == )
    {
        return
    }

    new 
iWeapon get_user_weapon(iAttacker)
    if( 
iWeapon == CSW_KNIFE // here
    
{
        return
    } 
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 02-07-2017 at 23:54.
EFFx is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-08-2017 , 00:32   Re: Bullet Trail ?
Reply With Quote #7

and how i can set the color for bullet trace.
yas17sin is offline
Send a message via ICQ to yas17sin
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-08-2017 , 00:42   Re: Bullet Trail ?
Reply With Quote #8

If you're using the laser tracers, have a cvar for it

PHP Code:
g_pCvarColor register_cvar("amx_trace_laser_color""255160100"
These numbers are R, G and B together ( 255, 160 and 100 ), the same at write_byte() numbers.

If you're using the advanced weapon tracers, add this

PHP Code:
    message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(TE_TRACER)
    
write_coord(iOrigin[0])
    
write_coord(iOrigin[1])
    
write_coord(iOrigin[2])
    
write_coord_f(flEnd[0]) 
    
write_coord_f(flEnd[1]) 
    
write_coord_f(flEnd[2]) 
    
write_byte(R)
    
write_byte(G)
    
write_byte(B)
    
message_end() 
On r, g and b is where you chance the colors.

Like

PHP Code:
    write_byte(255)
    
write_byte(0)
    
write_byte(0
All tracers will be red.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 02-08-2017 at 00:44.
EFFx is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-08-2017 , 01:07   Re: Bullet Trail ?
Reply With Quote #9

it didn't work at all.
yas17sin is offline
Send a message via ICQ to yas17sin
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-08-2017 , 01:14   Re: Bullet Trail ?
Reply With Quote #10

Explain better, what doesn't work?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Reply


Thread Tools
Display Modes

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 20:18.


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