dune2themaker4j
dune2themaker4j copied to clipboard
Sounds that belong to the same 'group' should be randomly selected and played
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?
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.