Last active
May 15, 2017 16:36
-
-
Save Starwaster/02cc88fdf2baf685a027bdf1ef301119 to your computer and use it in GitHub Desktop.
Coming soon to Deadly Reentry: Hull burn through can let outside environment into the ship! Ohnoes!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Now: If a hole got burned in our hull... start letting the fire in! | |
if (part.machNumber >= 1) | |
{ | |
float damage = damageCube.GetCubeDamageFacing(part.partTransform.InverseTransformDirection(-this.vessel.upAxis)); | |
if (damage > 0f) | |
{ | |
double convectiveFluxLeak = part.thermalConvectionFlux * (double)damage; | |
part.AddThermalFlux(convectiveFluxLeak); | |
} | |
} | |
else | |
{ | |
float damage = damageCube.averageDamage; | |
if (damage > 0f) | |
{ | |
double convectiveFluxLeak = part.thermalConvectionFlux * (double)damage; | |
part.AddThermalFlux(convectiveFluxLeak); } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment