Forged Alliance Forever Forged Alliance Forever Forums 2013-07-26T21:41:30+02:00 /feed.php?f=26&t=4589 2013-07-26T21:41:30+02:00 2013-07-26T21:41:30+02:00 /viewtopic.php?t=4589&p=49279#p49279 <![CDATA[GC death sound delayed, starts after animation finishes]]>
If you ctrl+k or otherwise kill a galactic colossus, you'll notice it has a unique death sound effect, much like the monkeylord and other experimental units.
However, you'll also hopefully find that the sound effect starts playing only after the unit falls over and turns into wreckage, instead of being synchronized with the animation.

This is easily fixed, though!
I looked into fixing this myself, so I found what the problem was. I'm not too familiar with Lua so pardon me if I use any incorrect terminology
In UAL0401_Script.lua, in the DeathThread function, you'll find a bunch of lines correlating to the death animation, including the offending line:

Code:
self:PlayUnitSound('Destroyed')

This is at the end of the function, after all the animation-related stuff, instead of at the top (As it would be in any other units script, the monkeylord for example)
If this line is moved to the start of the function, the sound effect will be synchronized with the animation and all will be well.

Surely I can't be the first to notice this!

Statistics: Posted by zeknife — 26 Jul 2013, 21:41


]]>