targeting machineguns?

Moderators: GSH, VSMIT, Red Devil, Commando

Post Reply
Josiah
Sabre
Posts: 213
Joined: Mon Feb 21, 2011 6:45 am
Contact:

targeting machineguns?

Post by Josiah »

Are target locking machineguns possible? as in, you point your cursor/aimer/shooter/thingy at bad guy, and if it's on target, it'll shoot until your cursor/aimer/shooter/thingy is too far off target... Ok, of course it isn't. But how would I do something like that? extensive odfs? dll? hocus pocus? Some help please....
User avatar
Zax
Attila
Posts: 1388
Joined: Sat Feb 19, 2011 6:56 am

Re: targeting machineguns?

Post by Zax »

Josiah wrote:Are target locking machineguns possible? as in, you point your cursor/aimer/shooter/thingy at bad guy, and if it's on target, it'll shoot until your cursor/aimer/shooter/thingy is too far off target... Ok, of course it isn't. But how would I do something like that? extensive odfs? dll? hocus pocus? Some help please....
A well modified tag should work well. Give the leader round a pretty large albeit invisible geometry or give it shot variance and shot speed up the wazoo. Have the fire rate very fast, nearly no delay between the leader and the shot, and the shot be a missile (or cannon round? Not familiar with bz2's tag) with pretty much no direction changing ability. Make it simulate gunfire.

I did something similar in bz1 to make a laser-guided missile, where the leader was a long insta-fire stick that would do the same thing any tag leader would do.
Josiah
Sabre
Posts: 213
Joined: Mon Feb 21, 2011 6:45 am
Contact:

Re: targeting machineguns?

Post by Josiah »

that's interesting, never thought of using tag... would it be possible to have it auto shoot the tag leader? or is that unrealistic?
User avatar
Zax
Attila
Posts: 1388
Joined: Sat Feb 19, 2011 6:56 am

Re: targeting machineguns?

Post by Zax »

Josiah wrote:that's interesting, never thought of using tag... would it be possible to have it auto shoot the tag leader? or is that unrealistic?
You can set shot delays so infinitesimally small that it would be hard to notice any difference.

Forget about TAG the weapon and concentrate on TAG the code/class.
User avatar
Nielk1
Flying Mauler
Posts: 2991
Joined: Fri Feb 18, 2011 10:35 pm
Contact:

Re: targeting machineguns?

Post by Nielk1 »

I think a mini-unit attached to another unit by dll (invisible and unhittable, having its position and velocity set to match the parent unit every tick) would work for non-turreted craft. The gun would fire whenever it was pointing at something it could hit. There are many issues with that idea, one being most likely I would have to code it, let alone it might not work. I still need to come up with ammo sharing, attached item toggling, weapon sharing, and tons of other things before I can consider anything workable here.

Stick with TAG for now. Granted you would still have to hold the fire button. A super high speed tag round that fired a small salvo of machine gun shells would probably work pretty well in your case.
User avatar
TheJamsh
Bull Dog
Posts: 689
Joined: Sat Feb 19, 2011 5:49 pm

Re: targeting machineguns?

Post by TheJamsh »

could use laser rockets, although you still have to manually fire them, and they will change to another target if you move your reticle over something else thats targettable.
Josiah
Sabre
Posts: 213
Joined: Mon Feb 21, 2011 6:45 am
Contact:

Re: targeting machineguns?

Post by Josiah »

that's a good idea...
User avatar
MrTwosheds
Recycler
Posts: 3059
Joined: Sat Feb 19, 2011 8:37 am
Location: Outer Space
Contact:

Re: targeting machineguns?

Post by MrTwosheds »

I did make a smart chain, from the tag gun, use an invisible beam leader round fired quite rapidly, make little missiles that look like chain rounds and fire salvos of 20 or so... Damn dangerous chain gun! that can be fired round corners or over hills and makes you very scared of turrets, even AI scouts became a bit fearsome!
User avatar
Nielk1
Flying Mauler
Posts: 2991
Joined: Fri Feb 18, 2011 10:35 pm
Contact:

Re: targeting machineguns?

Post by Nielk1 »

Its fun to make things missiles after killing the acceleration ramp on them. It is just so weird when you see machine gun bullets curving to hit a target.
Post Reply