33 public virtual void Update(
float dt) {
41 m_isEnabled = valuesDictionary.GetValue<
bool>(
"IsEnabled");
56 m_componentCreature.ComponentCreatureSounds.PlayIdleSound(true);
57 m_importanceLevel = 270f;
58 m_summonedTime = m_subsystemTime.GameTime;
89 m_componentCreature.ComponentCreatureModel.LookRandomOrder =
true;
102 v *= 0.75f * (GetHashCode() % 2 != 0 ? 1 : -1) * (1 + GetHashCode() % 3);
static float Saturate(float x)
static float Lerp(float x1, float x2, float f)
virtual void Update(float dt)
SubsystemTime m_subsystemTime
StateMachine m_stateMachine
override void Load(ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
ComponentBody SummonTarget
override float ImportanceLevel
virtual void FollowTarget(bool noDelay)
ComponentCreature m_componentCreature
ComponentPathfinding m_componentPathfinding
ValuesDictionary ValuesDictionary
static Vector3 Cross(Vector3 v1, Vector3 v2)
static Vector3 Normalize(Vector3 v)
static float Distance(Vector3 v1, Vector3 v2)
static readonly Vector3 UnitY