47 public override void Update(
float dt) {
49 if (MathF.Abs(num) > 0.1f) {
62 Bob += num4 * (num3 -
Bob);
65 float num5 =
m_componentCreature.ComponentLocomotion.LastFlyOrder.Value.LengthSquared() > 0.99f ? 1.5f : 1f;
114 num += 1.2f * MathF.Sin((
float)Math.PI * 2f * (
FlyPhase + 0.75f));
132 float yaw = m_componentCreature.ComponentLocomotion.LookAngles.X / 2f;
133 float yaw2 = m_componentCreature.ComponentLocomotion.LookAngles.X / 2f;
142 num4 -= 1.25f * (1f - (num6 >= 0f ? num6 : -0.5f * num6));
163 float num8 = m_componentCreature.ComponentBody.BoundingBox.Max.Y -
m_componentCreature.ComponentBody.BoundingBox.Min.Y;
164 Vector3 position = m_componentCreature.ComponentBody.Position
182 base.Load(valuesDictionary, idToEntityMap);
190 base.SetModel(model);
static float Remainder(float x, float y)
static int Min(int x1, int x2)
static int Max(int x1, int x2)
static float DegToRad(float degrees)
override float AttackFactor
float m_peckAnimationSpeed
float m_flyAnimationSpeed
override void AnimateCreature()
override void Load(ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
float m_walkAnimationSpeed
override void SetModel(Model model)
override void Update(float dt)
override float AttackPhase
SubsystemTime m_subsystemTime
ComponentCreature m_componentCreature
float MovementAnimationPhase
virtual void SetBoneTransform(int boneIndex, Matrix? transformation)
ValuesDictionary ValuesDictionary
static Matrix CreateRotationX(float radians)
static Matrix CreateTranslation(float x, float y, float z)
static readonly Matrix Identity
static Matrix CreateFromYawPitchRoll(float yaw, float pitch, float roll)
static Matrix CreateRotationY(float radians)
static Vector3 Normalize(Vector3 v)
static float Dot(Vector3 v1, Vector3 v2)