127 lines
2.3 KiB
C#
127 lines
2.3 KiB
C#
namespace SmartNav.Model;
|
|
|
|
public static class MovementData
|
|
{
|
|
public static class Speeds
|
|
{
|
|
public const float Walk = 2.4f;
|
|
|
|
public const float JogWalk = 2.88f;
|
|
|
|
public const float Run = 6f;
|
|
|
|
public const float RunJog = 7.2f;
|
|
|
|
public const float RunSprint = 7.8f;
|
|
|
|
public const float MountWalkGround = 3.2f;
|
|
|
|
public const float MountGround0 = 9f;
|
|
|
|
public const float MountGround1 = 12f;
|
|
|
|
public const float MountGround2 = 15f;
|
|
|
|
public const float MountFly = 20f;
|
|
|
|
public const float Swim = 5f;
|
|
|
|
public const float SwimJog = 6f;
|
|
|
|
public const float SwimSprint = 6.5f;
|
|
|
|
public const float Dive = 6f;
|
|
|
|
public const float DiveJog = 7.2f;
|
|
|
|
public const float DiveSprint = 7.8f;
|
|
|
|
public static float GetMountGroundSpeed(int mountSpeedLevel)
|
|
{
|
|
int num;
|
|
float result = default(float);
|
|
switch (mountSpeedLevel)
|
|
{
|
|
default:
|
|
num = 1141934779;
|
|
goto IL_001d;
|
|
case 2:
|
|
result = 15f;
|
|
num = 1141934782;
|
|
goto IL_001d;
|
|
case 0:
|
|
goto IL_0081;
|
|
case 1:
|
|
goto IL_0092;
|
|
IL_001d:
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 1141934782;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
return result;
|
|
case 5:
|
|
num = 1141934783;
|
|
break;
|
|
case 1:
|
|
result = 9f;
|
|
num = 1141934782;
|
|
break;
|
|
case 6:
|
|
goto end_IL_001d;
|
|
case 2:
|
|
goto IL_0081;
|
|
case 4:
|
|
goto IL_0092;
|
|
case 3:
|
|
num = 1141934779;
|
|
break;
|
|
}
|
|
continue;
|
|
end_IL_001d:
|
|
break;
|
|
}
|
|
goto case 2;
|
|
IL_0092:
|
|
result = 12f;
|
|
num = 1141934782;
|
|
goto IL_001d;
|
|
IL_0081:
|
|
result = 9f;
|
|
num = 1141934782;
|
|
goto IL_001d;
|
|
}
|
|
}
|
|
}
|
|
|
|
public static class Thresholds
|
|
{
|
|
public const float DefaultSprintDistanceOpenWorld = 50f;
|
|
|
|
public const float DefaultSprintDistanceTown = 20f;
|
|
|
|
public const float DefaultMountGroundDistance = 20f;
|
|
|
|
public const float DefaultMountFlyDistance = 15f;
|
|
|
|
public const float DefaultStopDistance = 3f;
|
|
}
|
|
|
|
public static class Timings
|
|
{
|
|
public const float TeleportCastDuration = 5f;
|
|
|
|
public const float LoadingScreenDuration = 2f;
|
|
|
|
public const float MountCastDuration = 1f;
|
|
|
|
public const float SprintDurationOutOfCombat = 20f;
|
|
|
|
public const float SprintDurationInCombat = 10f;
|
|
|
|
public const float SprintCooldown = 60f;
|
|
}
|
|
}
|