Raised This Month: $ Target: $400
 0% 

Bullet 'tracer'


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DahVid
Senior Member
Join Date: Jun 2005
Old 08-21-2005 , 19:47  
Reply With Quote #3

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!
DahVid 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 14:29.


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