10 public static class EmpArcParams {
15 public float segmentLengthMult = 1f;
21 public float zigZagReductionFactor = 0f;
23 public float maxZigZagMult = 1f;
28 public float fadeOutDist = 100f;
33 public float minFadeOutMult = 2f;
35 public float flickerRateMult = 1f;
36 public float glowSizeMult = 1f;
37 public float glowAlphaMult = 1f;
44 public float movementDurOverride = -1f;
45 public float movementDurMax = 0.1f;
46 public float movementDurMin = 0f;
51 public float brightSpotFullFraction = 0.33f;
52 public float brightSpotFadeFraction = 0.33f;
53 public float nonBrightSpotMinBrightness = 0f;
54 public Color glowColorOverride =
null;
56 public boolean flamesOutMissiles =
true;
58 public void loadFromSystemJson(JSONObject json) {
59 if (json ==
null)
return;
60 segmentLengthMult = (float) json.optDouble(
"emp_segmentLengthMult", 1f);
61 zigZagReductionFactor = (float) json.optDouble(
"emp_zigZagReductionFactor", 0f);
62 maxZigZagMult = (float) json.optDouble(
"emp_maxZigZagMult", 1f);
63 fadeOutDist = (float) json.optDouble(
"emp_fadeOutDist", 100f);
64 minFadeOutMult = (float) json.optDouble(
"emp_minFadeOutMult", 2f);
65 flickerRateMult = (float) json.optDouble(
"emp_flickerRateMult", 1f);
66 glowSizeMult = (float) json.optDouble(
"emp_glowSizeMult", 1f);
67 glowAlphaMult = (float) json.optDouble(
"emp_glowAlphaMult", 1f);
68 flamesOutMissiles = json.optBoolean(
"emp_flamesOutMissiles",
true);