Added a particle trail to railgun shells

This commit is contained in:
Regalis
2016-10-09 15:13:41 +03:00
parent e720fa366c
commit f4c5c5e542
4 changed files with 39 additions and 1 deletions

View File

@@ -309,6 +309,11 @@ namespace Barotrauma
{
crackColor = Color.Red;
}
else if (highlightedLocation != currentLocation &&
(connection.Locations.Contains(highlightedLocation) && connection.Locations.Contains(currentLocation)))
{
crackColor = Color.Red * 0.5f;
}
else if (!connection.Passed)
{
crackColor *= 0.2f;