Raised This Month: $ Target: $400
 0% 

Create a shotgun burst with tracers


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Max!
Member
Join Date: Jun 2009
Old 08-12-2009 , 08:51   Re: Create a shotgun burst with tracers
Reply With Quote #3

Code:
public GunShot(id)
{
    new aiming[3], Float:origin[3]
    get_user_origin(id, aiming, 3);
    pev(id, pev_origin, origin)
    message_begin(MSG_BROADCAST, SVC_TEMPENTITY) //  MSG_PAS MSG_BROADCAST
    write_byte(TE_TRACER)
    write_coord(floatround(origin[0]))
    write_coord(floatround(origin[1]))
    write_coord(floatround(origin[2]))
    write_coord(aiming[0])
    write_coord(aiming[1])
    write_coord(aiming[2])
    message_end()
    message_begin(0, SVC_TEMPENTITY, _, 0);
    write_byte(TE_GUNSHOTDECAL);
    write_coord(aiming[0]);
    write_coord(aiming[1]);
    write_coord(aiming[2]);
    write_short(0);
    write_byte(41);
    message_end();
}
thats what i wrote, and when i call it i loop it 8 times, how would i add some spread to that?
Max! 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 18:23.


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