Do like this?
Code:
new origin[3]
get_user_origin(id,origin,1)
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(6); // TE_TRACER
write_coord(origin[0]);
write_coord(origin[1]);
write_coord(origin[2]);
write_coord(end[0]);
write_coord(end[1]);
write_coord(end[2]);
message_end();
If that is it, I will try to figure out how to find the ending (get_user_aiming or something probably)
And for shotgun, would I make it
Code:
#define TE_MULTIGUNSHOT 126 // much more compact shotgun message
// This message is used to make a client approximate a 'spray' of gunfire.
// Any weapon that fires more than one bullet per frame and fires in a bit of a spread is
// a good candidate for MULTIGUNSHOT use. (shotguns)
//
// NOTE: This effect makes the client do traces for each bullet, these client traces ignore
// entities that have studio models.Traces are 4096 long.
//
// coord (origin)
// coord (origin)
// coord (origin)
// coord (direction)
// coord (direction)
// coord (direction)
// coord (x noise * 100)
// coord (y noise * 100)
// byte (count)
// byte (bullethole decal texture index)
The only way I would know how to figure out if shooting is see if user is on mouse1.. That wouldn't be right. Only fire one bullet!
Also -- How would I figure if that entity is there, like hook on the 'trail?'
Sorry, Like I said I am noob, hard for me to figure this stuff out!