Bullet 'tracer'
I'm wondering how to create an entity to 'follow' a bullet. I looked at the tracer plugins but I didn't really figure it out. I didnt even see a create_entity or anything!
|
Code:
#define TE_TRACER 6 // tracer effect from point to pointCode:
|
Do like this?
Code:
new origin[3]And for shotgun, would I make it Code:
#define TE_MULTIGUNSHOT 126 // much more compact shotgun messageAlso -- 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! :( |
To get the ending point ( where the bullet will hit ):
Code:
|
Yes, you need to get the ending origin, and you can do it like v3x posted.
From that code it looks like TE_MULTIGUNSHOT will do some tracer action, and it will also create the bullet holes in the wall. This is xeroblood's method of determining when a shot is fired: Code:
|
Yes, I've already made it with a function that triggers on CurWeapon.. I think I will add a check like Xero's so it doesn't put a tracer on all currweap events..
|
| All times are GMT -4. The time now is 14:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.