More actions
| Line 110: | Line 110: | ||
==The To-Hit-Equation== | ==The To-Hit-Equation== | ||
This equation is used every single time someone fires a turret weapon in the game. The purpose of it is to determine the odds the turret has to hit its target. The value will always be between 0 and 1, or 0% and 100% if you will. The computer then generates a random number to see if a hit is scored or not. | This equation is used every single time someone fires a turret weapon in the game. The purpose of it is to determine the odds the turret has to hit its target. The value will always be between 0 and 1, or 0% and 100% if you will. The computer then generates a random number to see if a hit is scored or not. | ||
<math>\pagecolor{Black}\color{White}\text{Chance to Hit} = {0.5^{\left({\left({\frac{\text{Transversal Speed}}{\text{Range to Target} \times \text{Turret Accuracy Score}} \times {\frac{40000m}{\text{Target Signature Radius}}}}\right)^{2} + \left({\frac{max(0, \text{Distance} - \text{Optimal Range})}{\text{Falloff}}}\right)^{2}}\right)}}</math> | |||
...where: | ...where: | ||
* Transversal speed = Movement up/down/left/right relative to an object, but not towards or away from it (that thing is called radial speed). Measured in meters per second. | * Transversal speed = Movement up/down/left/right relative to an object, but not towards or away from it (that thing is called radial speed). Measured in meters per second. | ||
* Distance = The range to the target. Measured in meters. | * Distance = The range to the target. Measured in meters. | ||
* Turret | * Turret accuracy score = Found on the attributes tab of a turret. | ||
* Target signature radius = The size of the target, or more precisely the radius of an imagined circle that represents the target's sensor footprint. Measured in meters. | * Target signature radius = The size of the target, or more precisely the radius of an imagined circle that represents the target's sensor footprint. Measured in meters. | ||
* max(0, ''x'') = a math function that takes the highest value of zero or ''x''. It is used to prevent negative values in this case; any negative numbers are replaced with zero instead. | * max(0, ''x'') = a math function that takes the highest value of zero or ''x''. It is used to prevent negative values in this case; any negative numbers are replaced with zero instead. | ||