dim3 Forum

Full Version: Barrel tracking zoom
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do you make is so that the proj. always hits the center of the zoom mask, or track the barrel?

its so annoying, in UTB the assault rifle zoom always hits right.
Chainfist Wrote:How do you make is so that the proj. always hits the center of the zoom mask, or track the barrel?

its so annoying, in UTB the assault rifle zoom always hits right.

Check out the weapons in the demo -- the pistol or the machine gun always hit center, the ray gun and the missile launcher always track by the barrel.

You're looking at two parts, making the crosshair center and making the fire method center (or making each barrel tracking.) There's two types of barrel tracking cursors, one that resizes based on distance (like the missile launcher) and one that doesn't (like the ray gun.)

To shoot from center, you only need ONE bone in the model (the point where the projectile/ray/etc) exits. For barrel tracking you need two; the barrel exit and the other "end" of the barrel (this is where it gets the angle to fire.)

[>] Brian
What im actually trying to do is add something that looks like you are looking down the barrel, and im doing it with zoom masks.
ggadwa Wrote:
Chainfist Wrote:How do you make is so that the proj. always hits the center of the zoom mask, or track the barrel?

its so annoying, in UTB the assault rifle zoom always hits right.

Check out the weapons in the demo -- the pistol or the machine gun always hit center, the ray gun and the missile launcher always track by the barrel.

You're looking at two parts, making the crosshair center and making the fire method center (or making each barrel tracking.) There's two types of barrel tracking cursors, one that resizes based on distance (like the missile launcher) and one that doesn't (like the ray gun.)

To shoot from center, you only need ONE bone in the model (the point where the projectile/ray/etc) exits. For barrel tracking you need two; the barrel exit and the other "end" of the barrel (this is where it gets the angle to fire.)

[>] Brian

Brian did you ever implement that thing where the projectile shoots at the crosshair?
Yea, that would make things so much easier!
Or add something to rotate the model to aim to the center based on the fire pose automaticly.... The first ways easier the second better Rolleyes.
Alexander Smith Wrote:Brian did you ever implement that thing where the projectile shoots at the crosshair?

Yes, both the pistol and the machine gun do this.

[>] Brian
Wait, you mean it could fire FROM the barrel to the center? awesome! Is that the fire to center one?
ccccc Wrote:Wait, you mean it could fire FROM the barrel to the center? awesome! Is that the fire to center one?
No you can only fire FROM the center TO the center OR FROM the barrel TO whereever the gun points.
Bink Wrote:
ccccc Wrote:Wait, you mean it could fire FROM the barrel to the center? awesome! Is that the fire to center one?
No you can only fire FROM the center TO the center OR FROM the barrel TO whereever the gun points.

Yes, firing down the barrel but to the center isn't physically possible, if you want to fire center, just put a bone at the end of your gun (where the fire position should be) and fire towards the center.

Barrel tracking is meant for one use -- things like missile launchers and other long barrel weapons where you can create something that fires physically "down" the barrel without any additional work, and no matter how you twist the view or change the model, it still works correctly.

A barrel fire that would go to the center would have to go in one direction out the barrel then immediately turn to head towards the center, which means just use center.

[>] Brian
Thats what I meant Smile.
Reference URL's