Sound AI Types

Detailed information of all types can be found here: content\scripts\config.lua


For example, in a line like this: 

["npc_talk_uber_alert_loud"]    =    { id = 43, type = system_event_type.uber_alert.id,    range = 100.0,    feel2real = 0, power_boost = false, },

Definition: 
 
   

  1. ["npc_talk_uber_alert_loud"] – name in the list.
  2. id = 43 – identification number.
  3. type = system_event_type.uber_alert.id – sound type. The maximum mental state the sound can take an NPC to.
  4. range = 100.0 – the maximum distance at which the sound can still be heard by an NPC.
  5. feel2real = 0 – the amount of time it takes to interpolate the sound’s feel position into its real position.

    A sound has two positions, feel and real. Feel is the position where an NPC thinks the sound is coming from, while real is the position of the “real” sound source. In most cases, these positions coincide but there are sounds for which this is not so. For example, the sound of a bullet flying past ["bullet_whine"] and the sound of a bullet hitting something ["bullet_hit"]. In this case, the feel position is where the sound physically came from. For "bullet_whine" it is the position of the bullet when it traveled near the NPC; for "bullet_hit" it is the position where the bullet hit and created the hit sound.
    The real position is the place from which the enemy fired this bullet. For an NPC, it makes sense to target his response at the place where the shot came from because there is a real threat, that's why feel2real_time.f2r_real is used – that way the NPC only reacts to the real position disregarding the feel.
  6. feel2real_time.f2r_feel = 0 – makes the NPC only react to the real position, disregarding the feel.

6. power_boost = false  if true, this sound is perceived by the NPC with power no lower than the alert_threshold (AI/Sound/Free(Alert, Danger)/Alert) in the entirety of the specified range. That is, this sound is guaranteed to raise the NPC's mental state to the value stated in the type field.

Within the specified range, the sound power drops from 1 to 0. This means that at the border of the given radius, the sound is almost inaudible. Each NPC has hearing settings for every mental state. For example:

  • AI\Sound\Free\Disturb 0.2
  • AI\Sound\Free\Light Alert 0.4
  • AI\Sound\Free\Alert 0.7
  • AI\Sound\Free\Danger 0.25 

If a sound with a power of 0.3 arrives, it can alert the NPC while it’s in a free state to the maximum mental state. If the sound has a power of 0.7 or more, it will alert the NPC to the Uber Alert state.

Danger is used only for sounds of the Danger type.




Exodus SDK © 2005-2023, 4A Games Limited. Developed by 4A Games®.
4A Games® is a registered trademark, and 4A Games Limited, Exodus SDK and their respective logos are trademarks of 4A Games Limited.
Published by Deep Silver. Deep Silver is a division of PLAION GmbH, Austria. Deep Silver and Plaion are registered trademarks of PLAION GmbH.
Metro Exodus is inspired by the internationally best-selling novels METRO 2033 and METRO 2034 by Dmitry Glukhovsky.
All other trademarks, logos and copyrights are property of their respective owners. All rights reserved.
By using this site, downloading or using the Exodus SDK or related content, you are agreeing to be bound by the terms of the End User License Agreement.


EULA