Skip to content

Commit

Permalink
new fx
Browse files Browse the repository at this point in the history
  • Loading branch information
InvalidArgument3 committed Oct 31, 2024
1 parent 50da206 commit 0781481
Show file tree
Hide file tree
Showing 2 changed files with 6,391 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Slipspace Engine/Data/Scripts/WarpDrive/WarpSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ private void DrawLineCenter1(Vector3D startPos, Vector3D endPos, float rad)
{
Vector4 baseCol = Color.DarkOrange;
string material = "SciFiEngineThrustMiddle"; // IlluminatingShell ReflectorGlareAlphaBlended
float ranf = MyUtils.GetRandomFloat(1.1f * rad, 1.8f * rad);
float ranf = MyUtils.GetRandomFloat(0.1f * rad, 0.8f * rad);
MySimpleObjectDraw.DrawLine(startPos, endPos, MyStringId.GetOrCompute(material), ref baseCol, ranf);
MySimpleObjectDraw.DrawLine(startPos, endPos, MyStringId.GetOrCompute(material), ref baseCol, ranf * 0.66f);
MySimpleObjectDraw.DrawLine(startPos, endPos, MyStringId.GetOrCompute(material), ref baseCol, ranf * 0.33f);
Expand Down Expand Up @@ -841,7 +841,7 @@ private void DrawLineCenter2(Vector3D startPos, Vector3D endPos, float rad)
{
Vector4 baseCol = Color.Orange;
string material = "SciFiEngineThrustMiddle"; // IlluminatingShell ReflectorGlareAlphaBlended
float ranf = MyUtils.GetRandomFloat(1.1f * rad, 1.8f * rad);
float ranf = MyUtils.GetRandomFloat(0.1f * rad, 0.8f * rad);
MySimpleObjectDraw.DrawLine(startPos, endPos, MyStringId.GetOrCompute(material), ref baseCol, ranf);
MySimpleObjectDraw.DrawLine(startPos, endPos, MyStringId.GetOrCompute(material), ref baseCol, ranf * 0.66f);
MySimpleObjectDraw.DrawLine(startPos, endPos, MyStringId.GetOrCompute(material), ref baseCol, ranf * 0.33f);
Expand Down Expand Up @@ -884,7 +884,7 @@ private void DrawLineCenter3(Vector3D startPos, Vector3D endPos, float rad)
{
Vector4 baseCol = Color.OrangeRed;
string material = "SciFiEngineThrustMiddle"; // IlluminatingShell ReflectorGlareAlphaBlended
float ranf = MyUtils.GetRandomFloat(1.1f * rad, 1.8f * rad);
float ranf = MyUtils.GetRandomFloat(0.1f * rad, 0.8f * rad);
MySimpleObjectDraw.DrawLine(startPos, endPos, MyStringId.GetOrCompute(material), ref baseCol, ranf);
MySimpleObjectDraw.DrawLine(startPos, endPos, MyStringId.GetOrCompute(material), ref baseCol, ranf * 0.66f);
MySimpleObjectDraw.DrawLine(startPos, endPos, MyStringId.GetOrCompute(material), ref baseCol, ranf * 0.33f);
Expand Down Expand Up @@ -1983,7 +1983,7 @@ private void PlayParticleEffect()
if (MainGrid.GridSizeEnum == MyCubeSize.Large)
scale = gridWidth / 60;

MyParticlesManager.TryCreateParticleEffect("Warp_Prototech", ref fromDir, ref origin, uint.MaxValue, out effect);
MyParticlesManager.TryCreateParticleEffect("Warp_Slipspace", ref fromDir, ref origin, uint.MaxValue, out effect);

if (effect != null)
effect.UserScale = scale;
Expand Down
Loading

0 comments on commit 0781481

Please sign in to comment.