Exemplo n.º 1
0
        public static double GetRunRate(float load, int runSkill, float scaling)
        {
            var loadMod = EncumbranceSystem.LoadMod(load);

            if (runSkill == 800.0f)     // max run speed?
            {
                return(18.0f / 4.0f);
            }
            else
            {
                return(((loadMod * (runSkill / (runSkill + 200) * 11) + 4) / scaling) / 4.0f);
            }
        }
Exemplo n.º 2
0
        public static float GetJumpHeight(float load, int jumpSkill, float power, float scaling)
        {
            if (power < 0.0f)
            {
                power = 0.0f;
            }
            if (power > 1.0f)
            {
                power = 1.0f;
            }

            var result = EncumbranceSystem.LoadMod(load) * (jumpSkill / (jumpSkill + 1300) * 22.200001f + 0.050000001f) * power / scaling;

            if (result < 0.35f)
            {
                result = 0.35f;
            }

            return(result);
        }