Added a settings to control the amount smoke effects on frontlines. Default smoke spacing changed from 800 to 1600 (half the current amount)

This commit is contained in:
Khopa
2021-05-07 12:49:56 +02:00
parent b289e41a0d
commit af5584d244
3 changed files with 28 additions and 9 deletions

View File

@@ -109,7 +109,7 @@ class VisualGenerator:
if not plane_start:
continue
for offset in range(0, distance, FRONT_SMOKE_SPACING):
for offset in range(0, distance, self.game.settings.perf_smoke_spacing):
position = plane_start.point_from_heading(heading, offset)
for k, v in FRONT_SMOKE_TYPE_CHANCES.items():
@@ -162,6 +162,7 @@ class VisualGenerator:
"",
_type=v,
position=position,
hidden=True,
)
break