Anti-Aircraft Gun

From PlanetsWiki

Jump to: navigation, search


Anti-Aircraft Gun
Tech 8
Megacredits 100
Supplies 10
Limit 10,000
Orbital Bombardment
Hit Points 100

[edit] Overview

  • Shoots at enemy fighters in orbit if the enemy wing as attack ground On, other wise they do not fire.
  • Costs one ord unit per shot.
  • Able to shoot even if the base shield is ON.
  • Take part in Ground Combat, if the enemy attacks with fighters.

[edit] AA Guns vs. Wings

Base generator:

BaseGen = Ion Cannons + Cities + Factories / 20 + AAGuns / 2

Base energy:

At start:

BaseE = 100 * BaseGen, but at least 20

At ticks 49,51,54,57,...,300,301,302,303,...:

BaseE = BaseE + 2*BaseGen, but max. 1,000,000

Each tick:

For w=1 to AAGuns
 If Rnd<0.25 And BaseE>BaseGen then Fire AAGuns, BaseE = BaseE - AADrain
Next w

With standard HConfig settings AADrain=10. So with AA AAguns the mean drain per tick is AA * 2.5 and AA * 5/2 = 2/3 *(IC + C + F/20 + AA/2) has to be fulfilled within the first 300 ticks for max firepower.
This can be achieved by optimizing the number of factories:

F = 65*AA - 20*(IC+C)

So thousands of factories are needed to get just all the 110 AA guns online.

Effect on wings:

Each shot is applied on each type. Fires only at wings which are set to attack ground and within AArange.

rodds     = AAOdds * 1.5 - Holo Decoys (of wing's player)/40 (but at least 3)
rMaxRange = AARange * 1.5
rT        = (1- rRange/rMaxRange) * 1.5 + 0.5
rMT       = (3 - fighterEvasive/100) (but at least 0.1)
rOdds     = rOdds * rT * rMT (but at least 10)
If Rnd*100 < rOdds then HIT!

BUT: If fighter armor>15 then only with a chance 60% the fighter count is decreased by 1. If armor<=15 then the fighter count is always decreased by 1 (if HIT!)

GFM GToeroe

[edit] Research

  • Do Ion Cannons that are turned off count towards base Energy?
  • Do Undercities generate power, or just cities?
  • Do Cities without people generate power (ie with 200,000 colonists, would 3 cities supply power)?
  • Do Factories without the people to run them generate power?
Personal tools