View Issue Details

IDProjectCategoryView StatusLast Update
0002591The Dark ModAIpublic27.10.2011 05:16
ReporterSpringheel Assigned ToSpringheel  
PrioritynormalSeveritynormalReproducibilityhave not tried
Status closedResolutionfixed 
Target VersionTDM 1.04Fixed in VersionTDM 1.04 
Summary0002591: Cough sound not playing
DescriptionI notice that AI are not playing their cough bark during the cough animation, and a warning in the console says: "could not find bark priority for snd_cough".


If there is a spawnarg in the def files like this:

"snd_cough" "tdm_ai_pro_cough"


then a corresponding bark priority needs to be added to entityDef atdm:ai_bark_priority in tdm_ai_vocal_set_base.def:

"prio_relaxed" "1"



There is a bit of an explanation in the same file

Quote
By default, a bark with a higher priority overrides a lower one that is currently active.
If both tasks have equal priority, the new bark is discarded.
A bark with a lower priority is queued after the currently active bark.

Behaviour can be changed with the spawnargs
"prio_SNDNAME_onhigher" (new bark has higher priority than the currently active one),
"prio_SNDNAME_onequal",
"prio_SNDNAME_onlower" (new bark has lower priority than the currently active one)

Where SNDNAME is the portion after the "snd_" prefix: snd_relaxed: SNDNAME = "relaxed")

possibilities are "d" for discard, "o" for override, "q" for queue
and "p" for push (the new bark is pushed on top of the old bark task, the old bark task can continue when the new one is finished)
TagsNo tags attached.

Activities

Springheel

Springheel

01.02.2011 12:04

administrator   ~0003527

I've already adjusted this in the def file, just need to confirm that it's working.
greebo

greebo

06.02.2011 18:08

administrator   ~0003568

I see Springheel already added the prio_ key, and I can confirm that AI are playing their cough sound during the idle_cough anim.

Issue History

Date Modified Username Field Change
30.01.2011 00:31 Springheel New Issue
30.01.2011 00:31 Springheel Status new => assigned
30.01.2011 00:31 Springheel Assigned To => Springheel
30.01.2011 21:51 Springheel Status assigned => feedback
01.02.2011 08:37 greebo Assigned To Springheel => greebo
01.02.2011 08:37 greebo Status feedback => assigned
01.02.2011 12:04 Springheel Note Added: 0003527
06.02.2011 18:08 greebo Note Added: 0003568
06.02.2011 18:08 greebo Status assigned => resolved
06.02.2011 18:08 greebo Fixed in Version => TDM 1.04
06.02.2011 18:08 greebo Resolution open => fixed
06.02.2011 18:08 greebo Assigned To greebo => Springheel
27.10.2011 05:16 greebo Status resolved => closed