Hi skellytz
skellytz, on 29 Apr 2022 - 03:00, said:
Stop Animation/Sound of Interrupted Casting=1
- If a spell has the primary casting sound (SPL: 0x10) and a sound in the spell abilities/effects (opcode #174: Play Sound) and/or a sound in the attached visual effects (VVC: 0x78), the casting sound will be abruptly cut off as soon as another sound (opcode or VVC) starts playing. All casting sounds, opcode sounds and VVC sounds should play in full even if another sound starts playing.
Engine itself uses ONE channel for pre- and post- casting sound, it always interrupts initial ApplyCastingEffect sound (CHA_FP07.wav) and overrides it to ApplyCastingEffPost sound (EFF_P07) if casting time < lengh of initial casting sound.
Don't sure about VVC channels, check sound text output, if you see "Abort" or "Mixer:Clear", it means one of VVC sound was stopped. Can you prepare spell with 3 three sounds or tell what existed spell has full sound combination ?
skellytz, on 29 Apr 2022 - 03:00, said:
Example:
Jaheira casts Cure Light Wounds on herself (no movement) -> the casting voice (CHA_FP07.wav) is played -> the SPL casting sound (EFF_P07.wav) is abruptly cut off -> the visual effect (SPHEALIN.vvc) starting sound (EFF_P26.wav) is played
Because i linked cast sound state to animation sequence, EFF_P07 was aborted because engine after casting animation changed sequence to READY.
skellytz, on 29 Apr 2022 - 03:00, said:
Jaheira casts Cure Light Wounds on another character (first moves up to the target) -> the casting voice (CHA_FP07.wav) isn't played -> the SPL casting sound (EFF_P07.wav) is abruptly cut off -> the visual effect (SPHEALIN.vvc) starting sound (EFF_P26.wav) is played
no CHA_FP07.wav - bug
I prepared better version:
1) Casting sounds splitted to CAST and postCAST phases, first phase can be interrupted because spell not applied yet. Second phase is ApplyCastingEffPost/VVC, it must continue playing even char making new action
2) Sound is not interrupted anymore when switching from CAST/CONJURE to READY sequence
https://anonfiles.co...obEx_cast_1_zip
Edited by Insomniator, 29 April 2022 - 09:41 AM.