dune2themaker4j icon indicating copy to clipboard operation
dune2themaker4j copied to clipboard

Sounds that belong to the same 'group' should be randomly selected and played

Open stefanhendriks opened this issue 6 years ago • 1 comments

Ie:

Defining a sound 'group' would be within the ini file something like:

[SOUNDS]

[SOUND/BOOM/1]
File=Foo.wav

[SOUND/BOOM/2]
File=Bar.wav

Both share the same 'group' by the /1 and /2. The BOOM part means that a WEAPON or any other thing can point to this SOUND and the engine would know it is a group and thus it should play it randomly from the 2 sounds.

Another approach would be:

Or:

[SOUNDS]

[SOUND/FOO]
File=Foo.wav

[SOUND/BAR]
File=Bar.wav


[SOUNDGROUPS]

[SOUNDGROUP/BIGBOOMS]
Sounds=FOO,BAR

[WEAPON]
...
SoundGroup=BIGBOOMS # for exploding, shooting, etc

Need to think this over a bit. @arjenvanderende - any ideas?

stefanhendriks avatar Jul 22 '17 19:07 stefanhendriks

Note: this same principle could be applied(?) for images. Ie, we have a certain amount of explosions that randomly can be chosen from a certain 'group' of explosion images.

stefanhendriks avatar Jul 24 '17 06:07 stefanhendriks