mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-10 06:34:45 +01:00
1d552ab0e4
* initial commit * bullet fix + 100% armour pen * equivalent armour values * percentage armour pen * updates bombing * adds more defines * i like armour too much * review pass 1 * review pass 2 * updates with lavaland elites * armour penetration value tweaks * wt550 AP round change
7 lines
464 B
Plaintext
7 lines
464 B
Plaintext
// Armour defines for the new armour system.
|
|
|
|
#define ARMOUR_CONSTANT 50
|
|
#define ARMOUR_EQUATION(damage, armour, modifier) (armour <= -ARMOUR_CONSTANT ? INFINITY : (damage / (1 + (armour / ARMOUR_CONSTANT))) * modifier)
|
|
#define ARMOUR_PERCENTAGE_TO_VALUE(percentage) (percentage >= 100 ? INFINITY : (5000 / (100 - percentage)) - 50)
|
|
#define ARMOUR_VALUE_TO_PERCENTAGE(value) (value == INFINITY ? 100 : round((100 - (100 / (1 + (value / ARMOUR_CONSTANT)))), 0.01))
|