Difference between revisions of "Defense Systems"

From StarMade Wiki
m (improved readability)
(removed outdated stuff)
 
(15 intermediate revisions by 6 users not shown)
Line 1: Line 1:
In [[StarMade]], each block has a [[Defense_Systems#Hit Points|hit point]] (HP) and an [[Defense_Systems#Armor|armor]] value. If a block is hit by any offensive weapon, the HP value of the block is lowered. If a block's HP is lowered to zero, the block is destroyed.
+
{{WIP}}
  
A pilot is instantly killed if the [[Ship Core]] is destroyed. The empty ship can then be looted, salvaged, or left in space for a short period before the core explodes (unless a player initiates a reboot before the timer is up by approaching the core in [[Modes#Astronaut Mode|Astronaut Mode]] and pressing {{K|Activate module}}).  
+
In [[StarMade]], players will often face a variety of threats to the safety of themselves and their entities (ships, stations, turrets or otherwise). Regardless of whether the attackers are players, NPCs, or both at once, the ways in which a player can ensure their survival are the same. This page details these mechanics by which a player can ensure the safety of their entities.
 +
 
 +
==Summary==
 +
 
 +
Here is a brief breakdown of the various mechanics which are relevant to defense.
 +
*'''Shields:''' A regenerating HP pool which absorbs all incoming damage until depleted. When depleted, they enter a brief "outage" phase (wherein they do not recharge) before beginning to regenerate again.
 +
**'''Defensive Ion Effect:''' Decreases damage dealt to shields by up to 60% when active.
 +
*'''Hit Points (HP):''' Every block has a set HP value, representing its own structural integrity. When the HP of a block is reduced to 0, it is destroyed.
 +
*'''Armor:''' A flat percentage value granted to a range of blocks, which reduces damage dealt to that block by the stated percentage. Applied before AHP absorption.
 +
*'''Armor HP (AHP):''' A non-regenerating HP pool which absorbs 50% (without defensive effects) of all damage dealt to any block which contributes to the AHP pool (in short, all tiers of hull and doors). Applied after armor reduction, and stacks multiplicatively with it.
 +
**'''Defensive Piercing Effect:''' Increases the amount of damage absorbed by AHP to a maximum of 75% (from 50%)
 +
**'''Defensive Punch-Through Effect:''' Reduces damage taken by AHP by up to 25%. Does not change amount of damage absorbed, but rather acts as an Armor value for the AHP pool itself.
 +
*'''Structure HP (SHP):''' A non-regenerating HP pool which serves as a measure of an entity's integrity. As it decreases, various penalties are applied to the entity. When it is reduced to 50%, the entity will overheat: this ejects any pilot in its [[Ship Core]] and renders it inoperable. An overheating entity has a countdown, proportional to the entity's size, before it collapses, disappearing altogether. This countdown can be stopped, and the entity rendered operable again, by "rebooting" it.
 +
*'''Turrets:''' Although not exclusively defensive in nature, AI-controlled turrets still play key roles in entity defense:
 +
**Shooting down incoming missiles, neutralizing damage which would otherwise have to be mitigated by shields or armor.
 +
**Allowing heavy, slow-turning ships to apply damage to smaller, more maneuverable vessels.
  
 
==Shields==
 
==Shields==
  
Shields are currently the most useful defensive system. They are made of two blocks, the [[Shield Capacitator]] and the [[Shield-Recharger]]. The amount of shield health, and speed of regeneration, are set by the amount of [[Shield Capacitator]]s and [[Shield-Recharger]]s on the ship. While your ship has any amount of shield health remaining, no blocks can be destroyed. As soon as all shields are depleted, the ship's blocks will begin taking damage.  
+
Shields are the first layer of an entity's defenses. A shield system relies on two blocks: the [[Shield Capacitor]] and the [[Shield-Recharger]]. The capacity of the shield is dependent on the number of Shield Capacitors, and its rate of regeneration is dependent on the number of Shield-Rechargers. While an entity has any shield remaining, it will not take block damage. Once the shield is depleted, it is rendered temporarily vulnerable.  
  
Once a ship's shields have been fully depleted, they will stop recharging for 10 seconds. After this 10 seconds has elapsed, the shields will begin recharging once more. However, if the ship is still taking damage, it is likely that they will be rapidly depleted again, and another 10 second recovery time will begin.
+
Once a ship's shields have reached 0 HP, they will stop recharging for 10 seconds. After this 10 seconds has elapsed, the shields will begin recharging once more. However, if the ship is still taking damage, it is likely that they will be rapidly depleted again, and another 10 second recovery time will begin, leaving the ship open to continued damage.
  
Unlike most other ship systems, Shield systems require no controller, nor do they have any placement rules which affect efficiency. Thus [[Shield Capacitator]]s and [[Shield-Recharger]]s may be placed anywhere on the ship, do not need to be grouped or linked, and are often used to fill in any spaces or pockets within the ship. The only design consideration is choosing the amount of shielding capacity and the speed of shield regeneration, keeping in consideration the power demands the [[Shield-Recharger]]s will make on the ship's [[Power_Systems|power system]].
+
Unlike most other ship systems, shield systems require no controller, nor do they have any placement rules which affect efficiency. This often serves to make them an ideal filler block, being used in small spaces where other blocks, which require efficient placement, would go to waste. The only design consideration is deciding what values of shield capacity and regeneration are desirable; bearing in mind the power demands the [[Shield-Recharger]]s will make on the ship's [[Power_Systems|power system]].
 +
 
 +
The strength of a shield can be increased using the [[Ion Effect Computer|Ion Effect system]]: this will reduce damage taken by shields by up to 60%, effectively functioning as an Armor value for shields. This is explained in more detail in the [[#Defensive Effects|Defensive Effects]] section below.
  
 
===Shield Rules===
 
===Shield Rules===
Line 32: Line 49:
 
Any decimal results produced by these formulas should be rounded down to the nearest whole number.  
 
Any decimal results produced by these formulas should be rounded down to the nearest whole number.  
  
The shield capacity, '''C''', of a ship with '''N<sub>C</sub>''' number of [[Shield Capacitator]]s, can be found by the formula:      <br>
+
The shield capacity, '''C''', of a ship with '''N<sub>C</sub>''' number of [[Shield Capacitor]]s, can be found by the formula:      <br>
 
<tt style="font-size: large">'''C''' = '''N<sub>C</sub>'''<sup>0.9791797578</sup> * '''110''' + '''220'''</tt>.
 
<tt style="font-size: large">'''C''' = '''N<sub>C</sub>'''<sup>0.9791797578</sup> * '''110''' + '''220'''</tt>.
  
Line 40: Line 57:
 
Upon taking a hit, the shield regeneration per second drops to <br>
 
Upon taking a hit, the shield regeneration per second drops to <br>
 
<tt style="font-size: large">'''R''' = '''N<sub>R</sub>''' * '''5.5''' * '''0.25''' * ('''1''' - '''0.5''' * '''S''' / '''C''')</tt> <br>
 
<tt style="font-size: large">'''R''' = '''N<sub>R</sub>''' * '''5.5''' * '''0.25''' * ('''1''' - '''0.5''' * '''S''' / '''C''')</tt> <br>
for one minute, where '''S''' is the current amount of remaining shields (effectively reducing the shield regeneration by 82.25% to 75% depending if your ship's shields are full or nearly depleted)
+
for one minute, where '''S''' is the current amount of remaining shields (effectively reducing the shield regeneration to 12.5% when shields are at max capacity,  increasing as shield levels drop, reaching 25% when your ship's shields are depleted)
  
 
The power usage per second, '''P''', for a given number of [[Shield-Recharger]]s changes depending on whether or not the ship's shields are fully charged.  
 
The power usage per second, '''P''', for a given number of [[Shield-Recharger]]s changes depending on whether or not the ship's shields are fully charged.  
Line 51: Line 68:
  
 
==Armor==
 
==Armor==
[[File:Armor_and_Piercing_Explained.png|thumb|An explanation of how armor reduction works]]
+
All blocks have an armor value, although in the majority of cases it is 0%. Non-0% armor values decrease damage dealt to that block by the given percentage. For example, consider a 400-damage cannon projectile striking a block of Advanced Armor (250HP, 75% armor reduction). 400  reduced by 75% is 100, and so the Advanced Armor block takes only 100HP of damage.  
All blocks have an '''armor''' value. Armor diminishes the hit point (HP) damage taken by the block from a weapon. The more armor a block has, the less HP damage it will take per hit. For damage done with an [[Effects|effect]] that deals additional damage to other blocks, the independent armor values for the other affected blocks are calculated into the damage reduction formula before damage is applied to them.  
 
<br><br>
 
For example, if an advanced armor block (which has an armor value of 75%) is attacked with a [[Damage_Beam_Computer|Damage Beam]] that also has the [[Effects|Piercing effect]] linked to it, the damage taken by the advanced armor block is first reduced by 75%. Every block that follows behind that one will reduce the damage it takes by its own armor value before the HP damage is applied. A visual example with mathematical calculations is provided in the image to the right. The information in the light-blue box is what initially occurs, while the information in the blue box is what actually occurs (due to the Piercing effect).
 
<br><br>
 
In practice, armor generally proves to be an ineffective way to defend against attacks, and one or more of the other methods are required.
 
  
 
==Hit Points==
 
==Hit Points==
[[File:Damaged_Blocks.png|thumb|Blocks in various damaged states]]
+
All blocks also have a Hit Points (HP) value, representative of that block's durability and integrity (stronger blocks, like armor, have higher HP). When the HP of a block reaches 0, it is destroyed.
In addition to having an armor value, all blocks have a '''hit point (HP)''' value as well. The HP of a block determines whether or not the block continues to exist after being influenced by a foreign source. As a block takes HP damage, the color of the block will begin to turn a bright orange, similar to that of [[Lava|lava]]. The more lava-like a block appears, the less HP it has. When a block's HP reaches zero, the block will be destroyed and will no longer be usable by anyone. See the image to the right for an example of what blocks look like in various damaged states, as well as what a block looks like when it is destroyed.
+
 
<br><br>
+
Damaged blocks can be repaired by [[Astrotech Computer|Astrotech Beams]].
The ship as a whole also has an HP value based on the HP of the blocks it is made of. The HP of a ship is separated into two types: Structure HP and Armor HP.
+
 
System blocks, such as weapon modules, computers, shield blocks, and power blocks, add their HP to the Structure HP of the ship. Weapons that cause damage to a system block will reduce the HP of that individual block as well as the total Structure HP of the ship. If the Structure HP of a ship drops below a certain percentage, it begins to lose functionality in different systems, regardless of whether those systems were ever directly damaged by a weapon. The lower the Structure HP becomes, the more systems are affected. Ships will also overheat if their Structure HP drops too low, forcing the player out of the core.
+
As the HP of a block decreases, it appears progressively more dented and darkened, with almost-broken blocks approaching black in colouration and being very visibly crumpled. Destroyed blocks break into fragments which will bounce around for a duration before disappearing altogether.
Armor HP is calculated by the armor value of armor and hull blocks. When a weapon does damage to an armor block, half of the damage is applied to the Armor HP rather than to the Structure HP. Armor HP will not cause major losses in ship system performance if it drops too low.
+
 
Larger ships take more damage per block hit than smaller ships.
+
As well as individual block HP, entities have two overall HP pools: Structure HP and Armor HP, both of which are detailed below.
 +
 
 +
===Structure HP===
 +
Structure HP, abbreviated to "SHP", is a measure of the overall structural integrity of a ship. Its maximum value is the sum of each block in the ship's individual SHP contribution: systems blocks such as power, shields, and weapons are the primary contributors to the SHP total. Armor and miscellaneous blocks provide very small SHP contributions. Any block that is intangible, or can become intangible (such as door blocks) provide no SHP: this prevents the creation of effectively-invulnerable pools of hitpoints.
 +
 
 +
SHP, being the measure of a ship's integrity, also defines when it is destroyed. When blocks on a ship are destroyed, the ship loses SHP proportional to both the SHP contribution of the block, and the overall size of the ship (the maximum SHP value remains unchanged, so that how damaged the ship is can be measured). As SHP decreases, various penalties are applied to the ship.
 +
 
 +
Once SHP has decreased to 50% of its maximum, the ship enters an "overheating" state. When a ship begins overheating, any player who is piloting it, or in a block such as a weapon computer or [[Build Block]], will be ejected: there are no direct penalties to the pilot or crew, but they will likely be threatened by whatever force has overheated their ship. An overheating ship has a countdown, proportional to its size,  before it "collapses", disappearing altogether: this countdown can be stopped by [[#Rebooting|rebooting]] the ship. Overheating ships are inoperable, and the core cannot be entered until rebooted.
 +
 
 +
While a ship's structure HP is at 100%, it can be edited normally, with no negative effect. However, when its SHP is below 100%, it cannot be edited without consequences: removing blocks will only remove their SHP value from the current HP amount, and adding blocks will only add their SHP value to the maximum SHP amount. In this way, any change made to a damaged ship will cause its current SHP% to decrease, eventually causing it to overheat if too many changes are made.
  
While below full Structure HP, changes made to the ship will not affect HP as normal. Removing blocks will only reduce current HP; there is no effect on maximum HP. Conversely, adding blocks will only increase maximum HP and have no effect on current HP. Thus, adding or removing blocks only reduces the current percent of HP while the structure HP is below full.
+
The table below displays the penalties applied to an entity as structure HP decreases. To ensure clarity, the definition of each term is explained beforehand:
  
To restore the HP of a ship, a player must initiate a system reboot. To initiate a reboot, the pilot must press {{K|Select previous entity}} while inside the core or, if the ship is overheating, activate {{K|Activate Module}} the ship core. While rebooting, power and shields will drain and the ship will not be controllable. Rebooting the ship takes longer the more HP the ship is missing. Reboots can be finished instantly for a price at shops. After the reboot has finished, the maximum HP of the ship will change to accurately represent the HP of the blocks that make it up, and the current percent HP will become 100%. Armor is not restored through a reboot; it must be repaired at a shop for a price. Note that a reboot will not restore blocks that have been destroyed, so manual repairs must be made after a reboot.
+
*'''SHP %''': When the entity's current SHP % is less than this, the stated penalties are in effect.
 +
*'''Power Recharge''': The percentage, of the normal value, which power regenerates at. Does not have any effect on [[Power Auxiliary|Power Auxiliaries]].
 +
*'''Shield Recharge''': The percentage, of the normal value, which shields regenerate at.
 +
*'''Thrust''': The percentage, of the normal value, which maximum speed is set to (thrust output, power cost, and thrust:mass ratio are seemingly unchanged)
 +
*'''Control Loss''': Makes the entity unresponsive to player input of any sort, besides rebooting. Particularly harmful if the ship is part-way through a rotation, as the pilot will be unable to stop the rotation.
 +
 
 +
{|class="wikitable"
 +
|+SHP Damage Penalties
 +
|-
 +
!SHP %
 +
!Power Recharge
 +
!Shield Recharge
 +
!Thrust
 +
!Control Loss
 +
!Overheating
 +
|-
 +
|90%
 +
|90%
 +
|90%
 +
|90%
 +
|No
 +
|No
 +
|-
 +
|80%
 +
|80%
 +
|80%
 +
|80%
 +
|No
 +
|No
 +
|-
 +
|70%
 +
|70%
 +
|70%
 +
|70%
 +
|No
 +
|No
 +
|-
 +
|60%
 +
|50%
 +
|50%
 +
|50%
 +
|No
 +
|No
 +
|- style="background-color:#e69500"
 +
|55%
 +
|50%
 +
|50%
 +
|50%
 +
|Yes
 +
|No
 +
|- style="background-color:#e60000"
 +
|50%
 +
|0%
 +
|0%
 +
|50%
 +
|Yes
 +
|Yes
 +
|}
 +
===Armor HP===
 +
Armor HP, abbreviated AHP, is a damage mitigation pool which applies only to armored blocks. As with SHP, its maximum value is the sum of individual blocks' AHP values. Comparatively few blocks contribute to AHP: Only door blocks (Glass Doors, Plex Doors, Blast Doors, and Forcefields) and all types of hull/armor (Basic, Standard, Advanced and Crystal). AHP absorbs 50% of damage dealt to any block which contributes to the AHP pool; this absorption takes place after per-block armor reduction. Note that AHP will only apply its absorption to blocks which have an AHP value themselves, and will not affect damage dealt to systems such as power or shields.
 +
 
 +
For example, consider a 400-damage cannon projectile striking a block of Advanced Armor (as mentioned in the Armor section), but this time factoring in AHP as well. The Advanced Armor block reduces the 400 damage by 75%, to 100 damage, but this is not actually dealt to the block yet. Armor HP absorbs 50% of this reduced amount, and so 50 damage is dealt to the Advanced Armor block, with the other 50 damage being taken by the AHP pool instead.  
 +
 
 +
The amount which armor HP absorbs can be increased by using the Piercing Effect defensively, and Punch-Through Effect will reduce the damage taken by the AHP pool, effectively negating up to 25% of all damage which it absorbs. These are explained in more detail in the [[#Defensive Effects|Defensive Effects]] section.
 +
 
 +
Because AHP takes damage based on incoming damage, ''not'' block destruction (Like SHP), it can often be depleted far in advance of all armor blocks on a ship being destroyed. When AHP reaches 0, it will no longer be able to absorb any of the damage dealt to armor blocks.
 +
 
 +
===Effective HP===
 +
An important concept to understand, when designing a ship's defenses, is that of Effective HP (EHP). This is the amount of damage it takes to destroy a block, accounting for armor and armor HP reductions. For a given block, its EHP can be found by the following formula. ''Note that percentages should be expressed as their decimal forms, in order to produce correct results. Armor HP reduction is 50% (0.5) by default, and reaches a maximum of 75% (0.75) with 25% Piercing Effect.''
 +
 
 +
<big>'''EHP''' = '''BlockHP''' / ( '''1''' - '''Armor%''' ) / ( '''0.5''' - '''Piercing%''' )</big>
 +
 
 +
The table below lists effective HP values for hull, standard armor and advanced armor. EHP values are displayed for 3 distinct states of damage reduction: AHP+25% Piercing Effect, AHP, and no AHP.
 +
 
 +
{|class="wikitable"
 +
|+ Armor EHP
 +
! Armor Tier !! AHP+Piercing !! AHP Only !! No AHP
 +
|-
 +
| [[:Category:Hull|Hull]] ||style="text-align:right"| 300 ||style="text-align:right"| 150 ||style="text-align:right"| 75
 +
|-
 +
| [[:Category:Standard|Standard Armor]] ||style="text-align:right"| 1,000 ||style="text-align:right"| 500 ||style="text-align:right"| 250
 +
|-
 +
| [[:Category:Advanced|Advanced Armor]] ||style="text-align:right"| 4,000 ||style="text-align:right"| 2,000 ||style="text-align:right"| 1,000
 +
|}
 +
 
 +
A simple [https://www.desmos.com/calculator/scuhccyzn5 Desmos graph] displays the change in an armor block's EHP as Piercing Effect is added to AHP absorption.
 +
 
 +
===Rebooting===
 +
A ship can be "rebooted" to reset its current SHP to 100%, also stopping it from overheating, if it currently is. Specifically, this sets the maximum SHP value of the ship to the sum of every remaining block's SHP value. Rebooting is accomplished by pressing {{K|Reboot}}, if in the ship, or simply activating the core by pressing {{K|Activate module}}. Rebooting takes a minimum of 30 seconds, with larger ships taking proportionally longer to reboot.
 +
 
 +
The formula below is believed to accurately express the reboot time, in seconds, of a given ship. This value is partially dependent on the current SHP, as a percentage, of the ship being rebooted. Mass is the most significant driver of reboot time, and very large ships can take exceedingly long periods to reboot.
 +
 
 +
<big>'''RebootTime''' = '''40''' - '''CurrentSHP%''' * '''10''' + '''ShipMass''' * '''0.0002'''</big>
 +
 
 +
Note that rebooting a ship will not reset its AHP value. AHP must be repaired at any station with shop capabilities; this includes player-made stations with [[Shop Module|Shop Modules]]. Repairs cost 1 credit per AHP repaired.
  
 
==Turrets==
 
==Turrets==
 +
Any entity can have turrets docked to it; separate entities which rotate freely about a [[Rail Turret Axis]], usually working in pairs to provide both axes of motion. Although not exclusively a defensive weapon, turrets play some key roles in defending an entity, both in shooting down missiles, and in protecting large, lumbering ships from more nimble harrassers.
 +
 +
===Anti-Missile===
 +
The foremost defensive use of turrets is in shooting down enemy missiles, readily negating often significant amounts of potential damage. Turrets used for this purpose are referred to as point-defense (PD), point-defense turrets (PDT), or sometimes anti-missile turrets (AMT). The term CIWS (Close-In Weapon System) also sees some use, as this is the real-world equivalent of such systems.
 +
 +
For a turret to shoot down missiles, it must be equipped with [[Cannon Computer|cannons]]: these are the only type of weapon which can damage missiles. Missiles have only 1 HP, and are therefore destroyed by any hit. Although a player operating a point-defense turret is technically possible, it is not advisable, as missiles do not have navigation markers, and players cannot reasonably match the rate at which AI can track and destroy them. Therefore, a point defense turret should also be equipped with a [[BOBBY AI Module]] set to behave as a turret, and ordered to target missiles in particular.
  
[[Ship|Ships]], [[Space Station|stations]], and [[Planet|planets]] can be equipped with [[Turret|turrets]]. Turrets can be designed defensively to attack enemy ships and missiles.
+
The weapons utilized by a point-defense turret have a few peculiarities, due to their specialized role. First and foremost, one must note that all [[Effects|tertiary effects]] are of no use on a point-defense turret: all it needs to do is deal 1 damage to each missile, and every tertiary effect simply modifies the effect of a weapon's damage, which is redundant when the target will die in one hit. As cannons are the only weapon type which can damage missiles, options are somewhat limited. The most important characteristic of a point-defense turret is to produce a great volume of fire, therefore increasing the chance of the turret hitting its target. The preeminent weapon combination, therefore, is cannon/cannon, due to its high rate of fire.  
  
While small ships are not usually a significant threat to large ships (except in groups), the large ship will likely have difficulty bringing its forward weapon batteries to bear on a smaller, more mobile target. In this situation, if the large ship has turrets, it can defend itself effectively against the small ship. Turrets can be controlled by a player or a [[BOBBY AI Module]]. When designing your turrets, keep in mind that just like ships, a larger turret may carry more shielding and weapons making it less vulnerable to attack and more dangerous, but it also turns more slowly making it less able to hit small, fast targets. On very large ships, it is often wise to mount turrets of different sizes of turrets to handle a broad range of targets.
+
A useful supplementary (but not primary, especially for-point defense) choice of weapon is cannon/missile, owing to its shotgun-like effect (producing a spread of 10 projectiles per firing of the weapon). This spread can prove useful against missile/missile systems (which also launch many projectiles), as the large area of a cannon/missile spread makes them more likely to collide with such clusters of missiles. However, it has a lower rate of fire than cannon/cannon, and, due to its arbitrary and non-centered spread (none of the projectiles fired fire directly forwards), is unsuited for use in most cases, particularly with AI. This is because an AI does not recognize the pattern which cannon/missile fires in, and simply aims as though the projectile will fire directly forwards.
  
To defend against missiles with turrets, it is advised to use a [[BOBBY AI Module]] that fires a cannon weapon and is set to attack missiles only. The power of this weapon is not relevant, as missiles have 1 HP and 0 armor. It is best to slave cannons (for rapid fire) or missiles (for spread fire) to the primary cannons as these increase the number of projectiles fired, increasing the chance of hitting the missile. Originally, only beams could destroy missiles, but this is no longer the case. Only cannons work in recent versions, although the [[BOBBY AI Module]] will fire any weapon at missiles regardless of whether the particular weapon can actually destroy the missile.
+
===Anti-Ship===
 +
Turrets are, of course, of particular use in defending slow or stationary targets against faster-moving entities which a large ship cannot neccessarily bring its main guns to bear on. This is a fairly broad topic, of course, and design varies significantly as it is not such a specific role as point-defense. There are no particular specifications to be upheld, as long as the turret is effective within the relevant context.  
  
==Effect Modules as a Defense==
+
A designer should, however, pay particular attention to the area which their turrets are able to target, and work to eliminate blind-spots where possible.
  
In addition to being a tertiary modification for weapons, effect modules can be used on their own for defensive purposes. For example, the [[Ion_Effect_Computer|Ion Effect system]] can provide defense if left un-linked to a weapons system. When activated, it will provide a boost to the shield system, based on the ratio of [[Ion_Effect_Module|Ion Effect modules]] to ship mass.
 
  
See the [[Effects#Defensive Use|Defensive Use]] section of the Effects page for more information.
+
==Related==
 +
{{Game Mechanics Navigator}}
  
 
[[Category:Ship]]
 
[[Category:Ship]]
 
[[Category:Game Mechanics]]
 
[[Category:Game Mechanics]]

Latest revision as of 18:09, 12 January 2021

In StarMade, players will often face a variety of threats to the safety of themselves and their entities (ships, stations, turrets or otherwise). Regardless of whether the attackers are players, NPCs, or both at once, the ways in which a player can ensure their survival are the same. This page details these mechanics by which a player can ensure the safety of their entities.

Summary

Here is a brief breakdown of the various mechanics which are relevant to defense.

  • Shields: A regenerating HP pool which absorbs all incoming damage until depleted. When depleted, they enter a brief "outage" phase (wherein they do not recharge) before beginning to regenerate again.
    • Defensive Ion Effect: Decreases damage dealt to shields by up to 60% when active.
  • Hit Points (HP): Every block has a set HP value, representing its own structural integrity. When the HP of a block is reduced to 0, it is destroyed.
  • Armor: A flat percentage value granted to a range of blocks, which reduces damage dealt to that block by the stated percentage. Applied before AHP absorption.
  • Armor HP (AHP): A non-regenerating HP pool which absorbs 50% (without defensive effects) of all damage dealt to any block which contributes to the AHP pool (in short, all tiers of hull and doors). Applied after armor reduction, and stacks multiplicatively with it.
    • Defensive Piercing Effect: Increases the amount of damage absorbed by AHP to a maximum of 75% (from 50%)
    • Defensive Punch-Through Effect: Reduces damage taken by AHP by up to 25%. Does not change amount of damage absorbed, but rather acts as an Armor value for the AHP pool itself.
  • Structure HP (SHP): A non-regenerating HP pool which serves as a measure of an entity's integrity. As it decreases, various penalties are applied to the entity. When it is reduced to 50%, the entity will overheat: this ejects any pilot in its Ship Core and renders it inoperable. An overheating entity has a countdown, proportional to the entity's size, before it collapses, disappearing altogether. This countdown can be stopped, and the entity rendered operable again, by "rebooting" it.
  • Turrets: Although not exclusively defensive in nature, AI-controlled turrets still play key roles in entity defense:
    • Shooting down incoming missiles, neutralizing damage which would otherwise have to be mitigated by shields or armor.
    • Allowing heavy, slow-turning ships to apply damage to smaller, more maneuverable vessels.

Shields

Shields are the first layer of an entity's defenses. A shield system relies on two blocks: the Shield Capacitor and the Shield-Recharger. The capacity of the shield is dependent on the number of Shield Capacitors, and its rate of regeneration is dependent on the number of Shield-Rechargers. While an entity has any shield remaining, it will not take block damage. Once the shield is depleted, it is rendered temporarily vulnerable.

Once a ship's shields have reached 0 HP, they will stop recharging for 10 seconds. After this 10 seconds has elapsed, the shields will begin recharging once more. However, if the ship is still taking damage, it is likely that they will be rapidly depleted again, and another 10 second recovery time will begin, leaving the ship open to continued damage.

Unlike most other ship systems, shield systems require no controller, nor do they have any placement rules which affect efficiency. This often serves to make them an ideal filler block, being used in small spaces where other blocks, which require efficient placement, would go to waste. The only design consideration is deciding what values of shield capacity and regeneration are desirable; bearing in mind the power demands the Shield-Rechargers will make on the ship's power system.

The strength of a shield can be increased using the Ion Effect system: this will reduce damage taken by shields by up to 60%, effectively functioning as an Armor value for shields. This is explained in more detail in the Defensive Effects section below.

Shield Rules

LEGEND
C Shield Capacity
NC Number of Shield Capacitators
NR Number of Shield-Rechargers
R Shield Regeneration per Second
S Current amount of shields
P Power Usage

The exact capacity, regeneration, and power consumption of a shield system can be calculated by using a few different formulas. Any decimal results produced by these formulas should be rounded down to the nearest whole number.

The shield capacity, C, of a ship with NC number of Shield Capacitors, can be found by the formula:
C = NC0.9791797578 * 110 + 220.

The shield regeneration per second, R, of a ship with NR number of Shield-Rechargers, can be found by the formula:
R = NR * 5.5

Upon taking a hit, the shield regeneration per second drops to
R = NR * 5.5 * 0.25 * (1 - 0.5 * S / C)
for one minute, where S is the current amount of remaining shields (effectively reducing the shield regeneration to 12.5% when shields are at max capacity, increasing as shield levels drop, reaching 25% when your ship's shields are depleted)

The power usage per second, P, for a given number of Shield-Rechargers changes depending on whether or not the ship's shields are fully charged.

If the shields are fully charged:
P = R

If the shields are not fully charged:
P = 10 * R

Armor

All blocks have an armor value, although in the majority of cases it is 0%. Non-0% armor values decrease damage dealt to that block by the given percentage. For example, consider a 400-damage cannon projectile striking a block of Advanced Armor (250HP, 75% armor reduction). 400 reduced by 75% is 100, and so the Advanced Armor block takes only 100HP of damage.

Hit Points

All blocks also have a Hit Points (HP) value, representative of that block's durability and integrity (stronger blocks, like armor, have higher HP). When the HP of a block reaches 0, it is destroyed.

Damaged blocks can be repaired by Astrotech Beams.

As the HP of a block decreases, it appears progressively more dented and darkened, with almost-broken blocks approaching black in colouration and being very visibly crumpled. Destroyed blocks break into fragments which will bounce around for a duration before disappearing altogether.

As well as individual block HP, entities have two overall HP pools: Structure HP and Armor HP, both of which are detailed below.

Structure HP

Structure HP, abbreviated to "SHP", is a measure of the overall structural integrity of a ship. Its maximum value is the sum of each block in the ship's individual SHP contribution: systems blocks such as power, shields, and weapons are the primary contributors to the SHP total. Armor and miscellaneous blocks provide very small SHP contributions. Any block that is intangible, or can become intangible (such as door blocks) provide no SHP: this prevents the creation of effectively-invulnerable pools of hitpoints.

SHP, being the measure of a ship's integrity, also defines when it is destroyed. When blocks on a ship are destroyed, the ship loses SHP proportional to both the SHP contribution of the block, and the overall size of the ship (the maximum SHP value remains unchanged, so that how damaged the ship is can be measured). As SHP decreases, various penalties are applied to the ship.

Once SHP has decreased to 50% of its maximum, the ship enters an "overheating" state. When a ship begins overheating, any player who is piloting it, or in a block such as a weapon computer or Build Block, will be ejected: there are no direct penalties to the pilot or crew, but they will likely be threatened by whatever force has overheated their ship. An overheating ship has a countdown, proportional to its size, before it "collapses", disappearing altogether: this countdown can be stopped by rebooting the ship. Overheating ships are inoperable, and the core cannot be entered until rebooted.

While a ship's structure HP is at 100%, it can be edited normally, with no negative effect. However, when its SHP is below 100%, it cannot be edited without consequences: removing blocks will only remove their SHP value from the current HP amount, and adding blocks will only add their SHP value to the maximum SHP amount. In this way, any change made to a damaged ship will cause its current SHP% to decrease, eventually causing it to overheat if too many changes are made.

The table below displays the penalties applied to an entity as structure HP decreases. To ensure clarity, the definition of each term is explained beforehand:

  • SHP %: When the entity's current SHP % is less than this, the stated penalties are in effect.
  • Power Recharge: The percentage, of the normal value, which power regenerates at. Does not have any effect on Power Auxiliaries.
  • Shield Recharge: The percentage, of the normal value, which shields regenerate at.
  • Thrust: The percentage, of the normal value, which maximum speed is set to (thrust output, power cost, and thrust:mass ratio are seemingly unchanged)
  • Control Loss: Makes the entity unresponsive to player input of any sort, besides rebooting. Particularly harmful if the ship is part-way through a rotation, as the pilot will be unable to stop the rotation.
SHP Damage Penalties
SHP % Power Recharge Shield Recharge Thrust Control Loss Overheating
90% 90% 90% 90% No No
80% 80% 80% 80% No No
70% 70% 70% 70% No No
60% 50% 50% 50% No No
55% 50% 50% 50% Yes No
50% 0% 0% 50% Yes Yes

Armor HP

Armor HP, abbreviated AHP, is a damage mitigation pool which applies only to armored blocks. As with SHP, its maximum value is the sum of individual blocks' AHP values. Comparatively few blocks contribute to AHP: Only door blocks (Glass Doors, Plex Doors, Blast Doors, and Forcefields) and all types of hull/armor (Basic, Standard, Advanced and Crystal). AHP absorbs 50% of damage dealt to any block which contributes to the AHP pool; this absorption takes place after per-block armor reduction. Note that AHP will only apply its absorption to blocks which have an AHP value themselves, and will not affect damage dealt to systems such as power or shields.

For example, consider a 400-damage cannon projectile striking a block of Advanced Armor (as mentioned in the Armor section), but this time factoring in AHP as well. The Advanced Armor block reduces the 400 damage by 75%, to 100 damage, but this is not actually dealt to the block yet. Armor HP absorbs 50% of this reduced amount, and so 50 damage is dealt to the Advanced Armor block, with the other 50 damage being taken by the AHP pool instead.

The amount which armor HP absorbs can be increased by using the Piercing Effect defensively, and Punch-Through Effect will reduce the damage taken by the AHP pool, effectively negating up to 25% of all damage which it absorbs. These are explained in more detail in the Defensive Effects section.

Because AHP takes damage based on incoming damage, not block destruction (Like SHP), it can often be depleted far in advance of all armor blocks on a ship being destroyed. When AHP reaches 0, it will no longer be able to absorb any of the damage dealt to armor blocks.

Effective HP

An important concept to understand, when designing a ship's defenses, is that of Effective HP (EHP). This is the amount of damage it takes to destroy a block, accounting for armor and armor HP reductions. For a given block, its EHP can be found by the following formula. Note that percentages should be expressed as their decimal forms, in order to produce correct results. Armor HP reduction is 50% (0.5) by default, and reaches a maximum of 75% (0.75) with 25% Piercing Effect.

EHP = BlockHP / ( 1 - Armor% ) / ( 0.5 - Piercing% )

The table below lists effective HP values for hull, standard armor and advanced armor. EHP values are displayed for 3 distinct states of damage reduction: AHP+25% Piercing Effect, AHP, and no AHP.

Armor EHP
Armor Tier AHP+Piercing AHP Only No AHP
Hull 300 150 75
Standard Armor 1,000 500 250
Advanced Armor 4,000 2,000 1,000

A simple Desmos graph displays the change in an armor block's EHP as Piercing Effect is added to AHP absorption.

Rebooting

A ship can be "rebooted" to reset its current SHP to 100%, also stopping it from overheating, if it currently is. Specifically, this sets the maximum SHP value of the ship to the sum of every remaining block's SHP value. Rebooting is accomplished by pressing Y, if in the ship, or simply activating the core by pressing R. Rebooting takes a minimum of 30 seconds, with larger ships taking proportionally longer to reboot.

The formula below is believed to accurately express the reboot time, in seconds, of a given ship. This value is partially dependent on the current SHP, as a percentage, of the ship being rebooted. Mass is the most significant driver of reboot time, and very large ships can take exceedingly long periods to reboot.

RebootTime = 40 - CurrentSHP% * 10 + ShipMass * 0.0002

Note that rebooting a ship will not reset its AHP value. AHP must be repaired at any station with shop capabilities; this includes player-made stations with Shop Modules. Repairs cost 1 credit per AHP repaired.

Turrets

Any entity can have turrets docked to it; separate entities which rotate freely about a Rail Turret Axis, usually working in pairs to provide both axes of motion. Although not exclusively a defensive weapon, turrets play some key roles in defending an entity, both in shooting down missiles, and in protecting large, lumbering ships from more nimble harrassers.

Anti-Missile

The foremost defensive use of turrets is in shooting down enemy missiles, readily negating often significant amounts of potential damage. Turrets used for this purpose are referred to as point-defense (PD), point-defense turrets (PDT), or sometimes anti-missile turrets (AMT). The term CIWS (Close-In Weapon System) also sees some use, as this is the real-world equivalent of such systems.

For a turret to shoot down missiles, it must be equipped with cannons: these are the only type of weapon which can damage missiles. Missiles have only 1 HP, and are therefore destroyed by any hit. Although a player operating a point-defense turret is technically possible, it is not advisable, as missiles do not have navigation markers, and players cannot reasonably match the rate at which AI can track and destroy them. Therefore, a point defense turret should also be equipped with a BOBBY AI Module set to behave as a turret, and ordered to target missiles in particular.

The weapons utilized by a point-defense turret have a few peculiarities, due to their specialized role. First and foremost, one must note that all tertiary effects are of no use on a point-defense turret: all it needs to do is deal 1 damage to each missile, and every tertiary effect simply modifies the effect of a weapon's damage, which is redundant when the target will die in one hit. As cannons are the only weapon type which can damage missiles, options are somewhat limited. The most important characteristic of a point-defense turret is to produce a great volume of fire, therefore increasing the chance of the turret hitting its target. The preeminent weapon combination, therefore, is cannon/cannon, due to its high rate of fire.

A useful supplementary (but not primary, especially for-point defense) choice of weapon is cannon/missile, owing to its shotgun-like effect (producing a spread of 10 projectiles per firing of the weapon). This spread can prove useful against missile/missile systems (which also launch many projectiles), as the large area of a cannon/missile spread makes them more likely to collide with such clusters of missiles. However, it has a lower rate of fire than cannon/cannon, and, due to its arbitrary and non-centered spread (none of the projectiles fired fire directly forwards), is unsuited for use in most cases, particularly with AI. This is because an AI does not recognize the pattern which cannon/missile fires in, and simply aims as though the projectile will fire directly forwards.

Anti-Ship

Turrets are, of course, of particular use in defending slow or stationary targets against faster-moving entities which a large ship cannot neccessarily bring its main guns to bear on. This is a fairly broad topic, of course, and design varies significantly as it is not such a specific role as point-defense. There are no particular specifications to be upheld, as long as the turret is effective within the relevant context.

A designer should, however, pay particular attention to the area which their turrets are able to target, and work to eliminate blind-spots where possible.


Related

Game Mechanics
Build ModeCreditDefense SystemsDocking/RailsDoorsEffectsFactionFleetsFlight ModeLinkingLogic SignalsMapPlayerPlayer ItemsProductionPropulsion SystemsReactorsReactor ChambersResourcesShipyardsShopsSpace StationSupport Tool SystemsTrade NetworkWarp GateWeapons