]> git.pond.sub.org Git - empserver/blob - info/Hitchance.t
New info Hvy-Plastic
[empserver] / info / Hitchance.t
1 .TH Concept Hitchance
2 .NA Hitchance "The chance of a projectile hitting its target"
3 .LV Expert
4 This page describes the chance of a mine, torpedo, ship anti-missile
5 defense, missile, or plane hitting its target.
6 .nf
7
8 Sea Mine hitchance
9 The chance of a ship hitting a mine at sea is (mines/(mines+20)). (For
10 example, with 20 mines, the chance of hitting one is 20/40 = 50%) The
11 damage is dependent upon the size of the ship and the spot that the
12 mine hits.  (see \*Qinfo Damage\*U).
13
14
15 Land Mine Hitchance
16 The chance of a land unit hitting a land mine is mines/(mines+35).
17 (For example, with 20 mines, the chance of hitting one is 20/55 =
18 36%).  See \*Qinfo Damage\*U to find out how much damage things take
19 from land mines.  Note that the chance of land units hitting land
20 mines is divided by 3 if the land units are accompanied by engineers.
21
22 When moving commodities (civs, mil, shells, etc) or transporting
23 planes, the chance is also dependent upon the weight being moved.
24 First the above chance is checked, and then a chance equal to (weight
25 / 100) is checked.
26
27
28 Torpedo hitchance
29 The chance of a torpedo hitting its target is equal to:
30   hitchance = 0.9/(range + 1)
31 where "range" is the range to the target.  If the visibility of the
32 ship firing is less than 6, then (5 - visibility) * 0.03 is added to
33 the hitchance.
34
35 Thus, the base chance of a sub hitting its target (before visibility
36 modification) is:
37
38      Range   Chance
39      0       90%
40      1       45%
41      2       30%
42      3       22.5%
43      4       18%
44      5       15%
45
46
47 Ships anti-missile defense
48 If a ship has "anti-missile" defense capabiilty, then it will
49 intercept any marine missiles launched at ships within 1 sector of the
50 ship.  Only missiles belonging to a country you are "At War" with will
51 be intercepted.  Only ships which are at least 60% efficient will be
52 able to use their anti-missile defenses.  The chance of the ship
53 hitting the incoming missile it equal to:
54
55   hitchance = gun * eff * tfact * 4.5 - (missile "def" value)
56 where
57   gun = the number of guns the ship is allowed to carry
58   eff = the efficiency of the shiip
59   tfact = tech / (tech + 200)
60 where
61   tech is the tech level that the ship was built at
62
63
64 Plane and missile hitchance
65 If the target is
66 a sector, then the hitchance is 100%.  Otherwise, the following
67 procedure is used to calculate hitchance.
68
69 The formula for a plane or missile hitting its target depends on the
70 type of the target (ship, plane, land unit) and the "hardtarget" value
71 of the target (which represents how hard that target is to hit).
72
73 Ship:
74   vis = the visibility of the ship (from 'show ship stats').
75 For a sub, we set vis = visibility * 4.
76 If the ship is at sea, then:
77   hardtarget = (eff of ship) * (20 + speed/2 - vis)
78 otherwise:
79   hardtarget = (eff of ship) * (20 - vis)
80 The hardtarget of a fleet is the hardtarget if the "easiest" target in
81 the fleet.
82
83 Land unit:
84   hardtarget = (efficiency) * (10 + (sector defense) * 2 + speed/2 - vis)
85 The hardtarget of an army is the hardtarget of the "easiest" target in
86 the army.
87
88 Plane:
89 If the plane is in the air (satellite, icbm), then
90   hardtarget = the "def" value of the plane.
91 otherwise if the plane is on the ground:
92   hardtarget = 0
93
94 Once we have calculated the "hardtarget" value of the target, then the
95 chance of a plane or missile hitting its target is equal to:
96
97   hitchance = acc - hardtarget
98
99 where
100   acc = (efficiency) * (1 - 0.1 * tfact) * (1 - placc/100)
101 where
102   tfact = (pltech - mintech)/(pltech - mintech/2)
103 where
104   pltech = tech level of plane
105   mintech = min tech level required to build plane
106 and
107   placc = plane accuracy
108 and if the target is a ship and the plane is an ASW plane, then 
109   placc = placc - 20
110 and if the target is a ship and the plane does not have tactical capability
111   placc = placc + 35
112
113 Lastly we smooth out the bottom end of the hitchance curve.  If
114 hitchance is less than 20, then it is "belled up" using the following
115 curve:
116   hitchance = 5 + 300 / (40 - hitchance).
117
118 On the other hand, you can just find out the hitchance by pinbombing
119 or launching a missile--the hitchance is always printed!  :-)
120 .fi
121 .SA "fire, launch, bomb, torpedo, Attacking, Damage, Interception, Combat"