Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (array[0] == "shadowdistance")
- {
- float num3;
- if (array.Length == 1)
- {
- this.Print("shadowdistance requires a Number!");
- }
- else if (float.TryParse(array[1], NumberStyles.Float, CultureInfo.InvariantCulture, out num3))
- {
- this.Print("Setting ShadowDistance to: " + num3);
- QualitySettings.shadowDistance = num3;
- }
- }
- if (array[0] == "shadowcascades")
- {
- int num4;
- if (array.Length == 1)
- {
- this.Print("shadowcascades requires a Number!");
- }
- else if (int.TryParse(array[1], NumberStyles.Integer, CultureInfo.InvariantCulture, out num4))
- {
- this.Print("Setting ShadowCascades to: " + num4);
- QualitySettings.shadowCascades = num4;
- }
- }
- if (array[0] == "pixellights")
- {
- int num5;
- if (array.Length == 1)
- {
- this.Print("pixellights requires a Number!");
- }
- else if (int.TryParse(array[1], NumberStyles.Integer, CultureInfo.InvariantCulture, out num5))
- {
- this.Print("Setting PixelLightCount to: " + num5);
- QualitySettings.pixelLightCount = num5;
- }
- }
- if (array[0] == "softparticles")
- {
- float num6;
- if (array.Length == 1)
- {
- this.Print("softParticles requires 1 on, 0 off");
- }
- else if (float.TryParse(array[1], NumberStyles.Float, CultureInfo.InvariantCulture, out num6))
- {
- if (num6 == 1f)
- {
- this.Print("Setting softParticles true!" + num6);
- QualitySettings.softParticles = true;
- }
- else
- {
- this.Print("Setting softParticles false!" + num6);
- QualitySettings.softParticles = false;
- }
- }
- }
- if (array[0] == "clutterdist")
- {
- float num7;
- if (array.Length == 1)
- {
- this.Print("ClutterDistance requires a Number!");
- }
- else if (float.TryParse(array[1], NumberStyles.Float, CultureInfo.InvariantCulture, out num7))
- {
- this.Print("Setting CluterDistance to: " + num7);
- ClutterSystem.instance.m_distance = num7;
- ClutterSystem.instance.ApplySettings();
- }
- }
- if (array[0] == "cluttergrasssize")
- {
- float num8;
- if (array.Length == 1)
- {
- this.Print("Clutter - Grass Size requires a Number!");
- }
- else if (float.TryParse(array[1], NumberStyles.Float, CultureInfo.InvariantCulture, out num8))
- {
- this.Print("Setting Clutter - Grass Size to: " + num8);
- ClutterSystem.instance.m_grassPatchSize = num8;
- ClutterSystem.instance.ApplySettings();
- }
- }
- if (array[0] == "clutteramount")
- {
- float num9;
- if (array.Length == 1)
- {
- this.Print("Clutter - AmountScale requires a Number!");
- }
- else if (float.TryParse(array[1], NumberStyles.Float, CultureInfo.InvariantCulture, out num9))
- {
- this.Print("Setting Clutter - AmountScale to: " + num9);
- ClutterSystem.instance.m_amountScale = num9;
- ClutterSystem.instance.ApplySettings();
- }
- }
- if (array[0] == "clutterenabled")
- {
- float num10;
- if (array.Length == 1)
- {
- this.Print("Clutter Enabled requires 1 on, 0 off");
- }
- else if (float.TryParse(array[1], NumberStyles.Float, CultureInfo.InvariantCulture, out num10))
- {
- if (num10 == 1f)
- {
- this.Print("Setting Clutter - Enabled - true!" + num10);
- ClutterSystem.instance.enabled = true;
- ClutterSystem.instance.ApplySettings();
- }
- else
- {
- this.Print("Setting Clutter - Enabled - false!" + num10);
- ClutterSystem.instance.enabled = false;
- ClutterSystem.instance.ApplySettings();
- }
- }
- }
- if (array[0] == "dofmax")
- {
- float num11;
- if (array.Length == 1)
- {
- this.Print("Depth of Field Max- requires a Number!");
- }
- else if (float.TryParse(array[1], NumberStyles.Float, CultureInfo.InvariantCulture, out num11))
- {
- this.Print("Depth of Field Max Setting to: " + num11);
- CameraEffects.instance.m_dofMaxDistance = num11;
- CameraEffects.instance.ApplySettings();
- }
- }
- if (array[0] == "dofmin")
- {
- float num12;
- if (array.Length == 1)
- {
- this.Print("Depth of Field Min - requires a Number!");
- }
- else if (float.TryParse(array[1], NumberStyles.Float, CultureInfo.InvariantCulture, out num12))
- {
- this.Print("Depth of Field Min Setting to: " + num12);
- CameraEffects.instance.m_dofMinDistance = num12;
- CameraEffects.instance.ApplySettings();
- }
- }
- if (array[0] == "forcedof")
- {
- float num13;
- if (array.Length == 1)
- {
- this.Print("Force Depth of Field requires 1 on, 0 off");
- }
- else if (float.TryParse(array[1], NumberStyles.Float, CultureInfo.InvariantCulture, out num13))
- {
- if (num13 == 1f)
- {
- this.Print("Force Depth of Field- Enabled - true!" + num13);
- CameraEffects.instance.m_forceDof = true;
- CameraEffects.instance.ApplySettings();
- }
- else
- {
- this.Print("Force Depth of Field - Enabled - false!" + num13);
- CameraEffects.instance.m_forceDof = false;
- CameraEffects.instance.ApplySettings();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement