Ballistics System Overview

Armor and Penetration Mechanics

The Ballistics System defines how bullets interact with player and NPC armor, prioritizing Armor Durability loss over immediate health damage.

Durability Damage (Always Applied)

Regardless of the penetration outcome, when a bullet impacts an armor piece, durability is always affected:

  1. The hit armor loses durability based on the bullet's Armor Damage value.
  2. There is a 50% chance that the equipped backpack also loses durability due to the impact force.

Penetration Check

The outcome of the bullet's damage to health is determined by the Penetration Chance. This chance is calculated based on the interaction between the armor's Protection value and the bullet's Penetration power.

  • If the bullet penetrates: Damage is successfully applied to the target's health pool.
  • If the bullet does not penetrate: No damage is applied to the character's health.

Calculation Formulas

These core calculations govern the effect of every bullet fired in the game:

Damage Normalization (Base)

This formula calculates the initial damage factor used in subsequent calculations.

Damage Factor=Bullet Damage100\text{Damage Factor} = \frac{\text{Bullet Damage}}{100}

Armor Durability Damage

This calculates the final amount of durability lost by the armor upon impact.

Armor Durability Lost=Damage Factor×Bullet Armor Damage%100\text{Armor Durability Lost} = \text{Damage Factor} \times \frac{\text{Bullet Armor Damage} \%}{100}

Penetration Chance

This formula determines the percentage probability of the bullet passing through the armor and inflicting health damage.

Penetration Chance(%)=50×2((Bullet PenetrationArmor Protection)×0.025)\text{Penetration Chance} (\%) = 50 \times 2 ^ {((\text{Bullet Penetration} - \text{Armor Protection}) \times 0.025)}