1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

MyThrust.cs

Discussion in 'Source Code' started by Elfi Wolfe, Oct 6, 2016.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. Elfi Wolfe

    Elfi Wolfe Apprentice Engineer

    Messages:
    498
    Possible addition?

    float Sandbox.ModAPI.Ingame.IMyThrust.MaxEffectiveThrust
    {
    get
    {
    return BlockDefinition.ForceMagnitude * m_thrustMultiplier * m_thrustComponent.GetLastThrustMultiplier(this);
    }
    }
    --- Automerge ---
    going to try to upload to GitHub.
    --- Automerge ---
    Submitted as push #564
     
  2. Elfi Wolfe

    Elfi Wolfe Apprentice Engineer

    Messages:
    498
    Work around till this gets in.
    Code:
               
                    if (thrusters[i].GetValueFloat("Override") > 1.0001 && thrusters[i].IsWorking){
                        normalThrust += thrusters[i].CurrentThrust * 100 / thrusters[i].GetValueFloat("Override");
                    }
                }
                if (normalThrust <= 0) normalThrust = 1;//because if there is no override you will get 0 back.
    
     
Thread Status:
This last post in this thread was made more than 31 days old.