30 if (loudness >= 0.5f) {
31 Vector3 v = m_componentCreature.ComponentBody.Position - sourcePosition;
33 float num = 12f +
m_random.Float(0f, 3f);
40 public virtual void Update(
float dt) {
118 if (componentCattleDriveBehavior !=
null
static float Saturate(float x)
static int Max(int x1, int x2)
virtual void Update(float dt)
StateMachine m_stateMachine
virtual void HearNoise(ComponentBody sourceBody, Vector3 sourcePosition, float loudness)
SubsystemCreatureSpawn m_subsystemCreatureSpawn
ComponentHerdBehavior m_componentHerdBehavior
override void Load(ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
ComponentPathfinding m_componentPathfinding
virtual Vector3 CalculateDriveDirectionAndSpeed()
ComponentCreature m_componentCreature
SubsystemTime m_subsystemTime
override float ImportanceLevel
virtual void FadeDriveVector()
ComponentHealth ComponentHealth
ComponentBody ComponentBody
ValuesDictionary ValuesDictionary
Component FindComponent(Type type, string name, bool throwOnError)
static float DistanceSquared(Vector3 v1, Vector3 v2)
static Vector3 Normalize(Vector3 v)
static readonly Vector3 Zero