mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
fix: use final thickness
This commit is contained in:
1 parent
cce61d8075
commit
c2de4952ad
1 file changed
+1
-1
@@ -51,7 +51,7 @@ void main() {
|
|||||||
|
|
||||||
if (canSplash && useSpacedArmor && isUnderSpacedArmor) {
|
if (canSplash && useSpacedArmor && isUnderSpacedArmor) {
|
||||||
float spacedArmorThickness = spacedArmorBufferFragment.r * penetration;
|
float spacedArmorThickness = spacedArmorBufferFragment.r * penetration;
|
||||||
float finalDamage = 0.5 * damage * (1.0 - distanceFromSpacedArmor / explosionRadius) - 1.1 * (thickness + spacedArmorThickness);
|
float finalDamage = 0.5 * damage * (1.0 - distanceFromSpacedArmor / explosionRadius) - 1.1 * (finalThickness + spacedArmorThickness);
|
||||||
|
|
||||||
penetrationChance = 0.0;
|
penetrationChance = 0.0;
|
||||||
splashChance = finalDamage > 0.0 ? 1.0 : 0.0;
|
splashChance = finalDamage > 0.0 ? 1.0 : 0.0;
|
||||||
|
|||||||
Reference in new issue
Block a user