Category talk:Point Defense
From PlanetsWiki
Any idea how the size/mass of a ship enhances the point defense capabilities? Also how about Exotic Techs, how do they come into play? (Magik)
This formulas are rather funny. Take for example a TL against fighters:
rOdds = PDfighterOdds * 3 = 3* 35= 105
Range Modifier = (MaxRange – Range) / MaxRange * 0.9 + 0.5 = 0.5 (min) | = 1.4 (max)
Evasion Modifier = (300 – fighterEvasiveMod + shipAttackMod) / 100 = 3
rOdds = 105* * (0.5|1.4) * 3 = 165.5|441
Fighter and ships are assumed to compensate each other. Most fighter evasive values range from 0 to 50 only for Aczannys and Dracs we have higher values (IIRC)
If target raceNum >= 800: (3rd Party Race)
rOdds = rOdds – 40
Else (raceNum < 800) (“Tim�? Race)
rOdds = rOdds – 10
Still above 100...
So in many cases the anti fighter PDs produces hitting shots. And only the the ratio between the blast and fighter armor decides if the hit goes through the armor or not.
--GFM GToeroe 15:29, 23 Jan 2006 (CET)GFM GToeroe
Reading the lines about PD vs. Wings:
If HIT:
Fighter count reduced by 1
Splash = 1
If PD is Turbo Laser:
Fighter count reduced by 2 (total 3)
If Ship is owned by Draconian:
If Ship is Rostov Class AA Gunship:
Fighter count reduced by 2 (total 3; or 5 for Turbo Laser)
If PD is Turbo Laser:
Fighter count reduced by 4 (total 9)
Minimum Fighter count of 0.
I guess the second "If PD is Turbo Laser:" part is only inside the "If Rostov" part and not inside the "owned by Drac"? Jochen 21:07, 14 August 2007 (CEST)
Oops. My bad. Both increases are only for Draconian owned Rostovs. Amaranthine 22:19, 14 August 2007 (CEST)
The anti fighter range formulas still look a bit strange (do micro missile launchers really have a max range greater than 1000?) and the Anti Fighter Computer range increase is missing as well (that would give those micro missiles a 3000+ range!):
MaxRange = RangeOfPD * 5
If MaxRange > 1 AND Range < MaxRange:
Range Modifier = (MaxRange – Range) / MaxRange * 0.9 + 0.5
Minimum of 0.1
Else
Range Modifier = 0.5
It also appears that attack modifiers or evasive bonuses have no impact whatsoever on the odds of quad laser and micro missiles - which always hit a target in range regardless of attack bonuses or evasive bonuses (largely because of this line: rOdds = PDfighterOdds * 2). This might be correct? Seems a bit harsh if so! Shard 14:37, 18 January 2008 (CET)
PD vs. Wings prior to Host 213:
Set Flag Check if target is Robot (flag Robot) Confirm target is enemy If enemy Mode = 3 (is target a fighter?) If Ship Crew > 0 AND System Damage < 60 If at target has at least 1 fighter of any type: For each fighter type in target wing (k loop): rOdds = PDfighterOdds * 2 If High Guard present in Wing: decrease rOdds by 20 Minimum of 1 If Target Enhancer Active: increase rOdds by 30 MaxRange = RangeOfPD * 5 If MaxRange > 1 AND Range < MaxRange: Range Modifier = (MaxRange – Range) / MaxRange * 0.9 + 0.5 Minimum of 0.1 Else Range Modifier = 0.5 If PD Boost Active: Range Modifier = Range Modifier + 0.2 Evasion Modifier = (300 – fighterEvasiveMod + shipAttackMod) / 100 Minimum of 0.2 rOdds = rOdds * Range Modifier * Evasion Modifier If Anti-Fighter Computer Active: rOdds = rOdds + 30 If flag Robot: If target raceNum >= 800: (3rd Party Race) rOdds = rOdds – 40 Else (raceNum < 800) ("Tim" Race) rOdds = rOdds – 10 Minimum rOdds of 5 Check for HIT, (Rnd * 100) < rOdds: If HIT: If fighterArmor > PDBlast: Potentially Negate HIT If Anti-Fighter Computer Tech Active: If Fighter ECM Box Tech Active: If Rnd < 0.3: HIT not Negated Else If Rnd < 0.6: HIT not Negated Else If Rnd < 0.4: HIT not Negated If HIT: Fighter count reduced by 1 Splash = 1 If PD is Turbo Laser: Fighter count reduced by 2 (total 3) If Ship is owned by Draconian: If Ship is Rostov Class AA Gunship: Fighter count reduced by 2 (total 3; or 5 for Turbo Laser) If PD is Turbo Laser: Fighter count reduced by 4 (total 9) Minimum Fighter count of 0. If Splash = 1: Exit k-loop
