Originally posted by Turban
View Post
Code:
BlastRadius = BombExplodePixels * [weaponLevel + 1 + (4 if thor) ]
EBombTotalDamage = EBombDamagePercent * BombDamageLevel / 1000
PlayerDamagePortion = EBombTotalDamage / BlastRadius * ( BlastRadius - Distance between Player and Bomb )
IF the Shooter is within blast Radius
Then
DamageReduction = (EBombTotalDamage / blastRadius) * (blastRadius - shooter distance from bomb) / 2
PlayerDamagePortion = PlayerDamagePortion - DamageReduction
Total EMP Time = PlayerDamagePortion * [ EBombShutdownTime / EBombTotalDamage ]

Leave a comment: