FWGS / xash3d-fwgs

Xash3D FWGS engine
1.59k stars 242 forks source link

VOX functionality is broken (spk and speak commands) #343

Closed Vladislav4KZ closed 3 years ago

Vladislav4KZ commented 3 years ago

When using spk or speak command to play a sentence with some words, it`s not working.

For example spk "hello amigo" in old engine Xash3D FWGS and GoldSource reproduces the phrase "hello amigo"

In new engine, phrases don`t work, and not even a single word from "vox" folder is played. To play a word, you need to write as follows: spk vox/hello

And in addition, the following functions do not work: pitch (p), tempo (t), volume (v), start mark (s), end mark (e)

For example, using the start and end marks spk "(e30) research (s30 e100) expect" should play "respect" word, but that doesn't work either

By the way, the volume option doesn't work in old engine too, it works only on GoldSource engine It adjusts the volume of a word (from 0 to 100 where 100 is default volume)

nekonomicon commented 3 years ago

Original Xash3D does not support this commands at all. Need to backport fixes from old engine.

a1batross commented 3 years ago

Probably spk/speak should go through vox subsystem, rather than just playing sound files.

a1batross commented 3 years ago

Fixed.