- Hitscan projectiles, projectiles can be set to disappear after hitting something.

- Option to adjust ranged weapon spread (separate values for "normal spread" and when being used by an unskilled character).
- Option to disable explosion flashes.
This commit is contained in:
Joonas Rikkonen
2017-10-18 23:48:25 +03:00
parent 142920d704
commit 6bfca5f7fe
4 changed files with 144 additions and 37 deletions
@@ -42,12 +42,14 @@ namespace Barotrauma
hull.AddDecal(decal, worldPosition, decalSize);
}
float displayRange = attack.Range;
if (displayRange < 0.1f) return;
var light = new LightSource(worldPosition, displayRange, Color.LightYellow, null);
CoroutineManager.StartCoroutine(DimLight(light));
if (flash)
{
float displayRange = attack.Range;
if (displayRange < 0.1f) return;
var light = new LightSource(worldPosition, displayRange, Color.LightYellow, null);
CoroutineManager.StartCoroutine(DimLight(light));
}
}
private IEnumerable<object> DimLight(LightSource light)