AA_Allies barrel velocity

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Handicap
Posts: 17
Joined: Wed May 11, 2011 1:55 pm

AA_Allies barrel velocity

Post by Handicap »

I have multiple times tried to change the barrel velocity of the AA_Allies object, or Bofors 40mm AA-gun if you wish to call it so. Every time I increase the velocity of the shot, the shot no longer explodes around the planes. I have tried to change the ProximityFusePrimer and explodeNearEnemyDistance but it hasn't helped. In the end I have just reverted the object back to it's previous settings. Has my brain farted made me miss something vital or is it just that the shot must fly at speed 300 or it won't explode from promixity?

Oh and how come the flak effect isn't visible farther away even if I edit the associated LOD values from the effects-directory? Is the gun hard-coded?
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

i have used .velocity 400 on .projectileTemplate Flak38_Projectile in a gun i made and that worked fine
User avatar
Apache Thunder
Posts: 1213
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: AA_Allies barrel velocity

Post by Apache Thunder »

Proximity bombs/projectiles don't seem to work properly when the velocity exceeds 400. The Shilka from DesertCombat originally had exploding projectiles, but they disabled them for this same reason. No way around this unfortunately. :(
ImageImageImage
I have cameras in your head!
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: AA_Allies barrel velocity

Post by Swaffy »

It has to do with its sensory system. The projectile needs to be near the plane long enough to "sense" that the airplane is there in order to explode.
If the projectile is moving over ~400 BFFPS [Battlefield Feet Per Second], it will not be near the plane long enough to "sense" its presence.

That's my guess.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Handicap
Posts: 17
Joined: Wed May 11, 2011 1:55 pm

Re: AA_Allies barrel velocity

Post by Handicap »

Code optimization makes sense. Guess I'll have to do with 400.
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: AA_Allies barrel velocity

Post by Swaffy »

You can probably set it at a high velocity and add a "shotgun" effect, with making multiple fireArms positions set at 0/0/0 and an accuracy of about 1.5 or 2.
Then, make sure there is only one tracer round per shot. [If there's 4 fireArms positions, set the tracer template to go off once every 4 rounds.]
Once that's done, you can make the "poof" of smoke go off on impact [like the explosion from a tank shell or rocket launcher].

... just an idea.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Handicap
Posts: 17
Joined: Wed May 11, 2011 1:55 pm

Re: AA_Allies barrel velocity

Post by Handicap »

Swaffy wrote:You can probably set it at a high velocity and add a "shotgun" effect, with making multiple fireArms positions set at 0/0/0 and an accuracy of about 1.5 or 2.
Then, make sure there is only one tracer round per shot. [If there's 4 fireArms positions, set the tracer template to go off once every 4 rounds.]
Once that's done, you can make the "poof" of smoke go off on impact [like the explosion from a tank shell or rocket launcher].

... just an idea.
Relatively good idea, but I'll leave aside the duct tape -contraptions. Most FW maps are tightly packed, or at least somewhat tight, so the velocity 400 vanilla-style AA-gun could be enough. But still, that's a good idea.
User avatar
Bongholio
Posts: 8
Joined: Thu Nov 11, 2010 12:51 am
Location: East of the Rockies

Re: AA_Allies barrel velocity

Post by Bongholio »

works for me local host on wake (lead ahead of the planes a little)

rem *** AA_allies firing & projectiles hack ***
ObjectTemplate.Active AA_Allies_GunBarrel
ObjectTemplate.reloadtime 0.5
ObjectTemplate.roundOfFire 9
ObjectTemplate.velocity 600
ObjectTemplate.addFireArmsPosition 0/0.02/0 0/-0.7/0
ObjectTemplate.addFireArmsPosition -0.02/0/0 -0.4/0.7/0

Now if I could only find out what I broke on battle of britain but who wants to sift thru 80 cd's of archives :roll:
You can't fix stupid,...but you can give it a plastic bag to play with
Post Reply