Author Topic: Hey HT: I got bored, want new ack code?  (Read 193 times)

Offline lemur

  • Zinc Member
  • *
  • Posts: 58
Hey HT: I got bored, want new ack code?
« on: February 20, 2001, 02:52:00 AM »
I'm bored and I thought I'd write up a pseudo-code description of how the 88mm ack should work:

Calculate distance from ack to target: D
Calculate Time of projectile flight: T = D / Speed of projectile.
Calculate Position plane will be at in T Secs: Ppoint = (pX + dX*t, pY + dY*t, pZ + dZ *t)

Calculate Aim Point:
If new target: Apoint = Ppoint + large random number.
If already 'locked' on, Apoint will chase Ppoint with some sort of homing algorhythm

When it fires, it spawns a blast at Apoint that goes off T seconds later.

If the plane is far away but traveling straight it will be dead meat quickly. But if it turns just a few degrees, Ppoint moves by
quite a large amount. e.g. when t = 10 seconds and  speed = 300 kts (or ~150Yps) a 10 degree turn means the pPoint shifts by about 250 yards.

Hard to home in on something that can jump 250 yrds in the time it takes to turn 10 degrees!

And if the homing algorhythm keeps averaging between two points (one low and in front of, one high and behind) coverging on the predicted location of the plane it can simulate spotting pretty well. As an added bonus, if the plane jinks too much, the convergence algorhythm would have to start over with a fresh point to converge from. This simulates spotters getting confused by a well flown plane and having widen the area of their ack.

Just a thought. If you want I can write up the c code to do it  

~Lemur

TheWobble

  • Guest
Hey HT: I got bored, want new ack code?
« Reply #1 on: February 20, 2001, 03:40:00 AM »
DAMN, that was GOOD!

Offline MiG Eater

  • Zinc Member
  • *
  • Posts: 46
      • http://www.avphoto.com
Hey HT: I got bored, want new ack code?
« Reply #2 on: February 20, 2001, 01:29:00 PM »
Genius, shear unadulterated genius.  
Ingressing in a maneuvering airplane to a target would be easier.  But the instant the pilot stops jinking in order to aim and drop weapons, the barrage ack could home in quickly.  An attacking pilot's success would be based mostly on skill, requiring very quick aiming and weapons employment before jinking again to avoid the flak bursts.  The only question is if the additional calculations (especially for tracking multiple aircraft) would ultimately affect frame rates.  

The wiley Lemur strikes again!

MiG

Offline lemur

  • Zinc Member
  • *
  • Posts: 58
Hey HT: I got bored, want new ack code?
« Reply #3 on: February 20, 2001, 02:01:00 PM »
This shouldn't have any effect on framerates since the code to do this is relatively simple. I'm guessing it could be done in 50 lines of c code or less.

And I was thinking more along the lines of code that could 'live' on the server, no framerate hit is the server's doing all the work.

Still, the code will work either way.

I may have to fool around with some Java code just to test this out  

~Lemur


TheWobble

  • Guest
Hey HT: I got bored, want new ack code?
« Reply #4 on: February 20, 2001, 02:24:00 PM »
It makes perfect sense..it would solve a problem with all good and no bad....no way they would use it      

Offline Spatula

  • Silver Member
  • ****
  • Posts: 1486
Hey HT: I got bored, want new ack code?
« Reply #5 on: February 21, 2001, 01:51:00 AM »
WTG. It sounds like what it should really be. I like it.
Airborne Kitchen Utensil Assault Group

Offline Pongo

  • Platinum Member
  • ******
  • Posts: 6701
Hey HT: I got bored, want new ack code?
« Reply #6 on: February 21, 2001, 08:56:00 AM »
Devils advocate here...
How suseptible to Jugs would the CV become with weaker ack. (it seems to know its shooting at fighters now and shoot better its way weaker against bombers)

Offline Jimdandy

  • Zinc Member
  • *
  • Posts: 46
Hey HT: I got bored, want new ack code?
« Reply #7 on: February 21, 2001, 09:15:00 AM »
 
Quote
Originally posted by Pongo:
Devils advocate here...
How suseptible to Jugs would the CV become with weaker ack. (it seems to know its shooting at fighters now and shoot better its way weaker against bombers)

I'm personally sick of the floating flak barges called the CV group. I sick of them parked of the shore capping the bases. I could care less if they are more susceptible to attack. I say GREAT. I can almost put up with the super ack that doesn't hurt the friendly plane that's right in the middle of it with you but the base capping in BS. Total BS. You wouldn't see a CV group that close to shore. They don't want that CV in range of shore batteries etc. We don't have any of that so the damn thing can be pulled up and be used totally unrealistically as a floating flack barge and CV. Make the ack weaker so people will keep the damn thing out to sea where it should be.
Make Task Forces of CA's and DD's for that if shore bombardment is what your after.

PS Pongo, I know you said your just playing devils advocate so I'm not directing this at you as much as HTC. So don't take it as a personal attack.  


[This message has been edited by Jimdandy (edited 02-21-2001).]

LJK Raubvogel

  • Guest
Hey HT: I got bored, want new ack code?
« Reply #8 on: February 21, 2001, 12:53:00 PM »
They really need to add some shore batteries for 1.06. Make them hardened so it takes more than a 100lb bomb or some hispanos to take them out. That would solve the Sea Osty problem.

Offline Ripsnort

  • Radioactive Member
  • *******
  • Posts: 27260
Hey HT: I got bored, want new ack code?
« Reply #9 on: February 21, 2001, 01:05:00 PM »
Strategy by users prevents CV's from approaching fields from the seas.  

Offline Jimdandy

  • Zinc Member
  • *
  • Posts: 46
Hey HT: I got bored, want new ack code?
« Reply #10 on: February 21, 2001, 01:20:00 PM »
Oh I see that strategy thing in the MA ALL the time. LOL! More like knee jerk 90% of the time with brief periods of brilliance.  

[This message has been edited by Jimdandy (edited 02-21-2001).]