C_MUSICTHEME Daedalus class
Acknowledgment
Heavily inspired by the amazing documentation site Gothic library
Class C_MusicTheme
describes musical themes.
Class definition
Class definition as it is defined in Scripts/System/_intern/Music.d
script file.
C_MusicTheme Daedalus class
Class members
Variable | Type | Description |
---|---|---|
file | string | Sound file in DirectMusic .sgt format |
vol | float | Sound volume |
loop | int | Enable/disable cycle |
reverbMix | float | Reverb mixing |
reverbTime | float | Reverb time |
transType | int | The type of transition to the next theme song |
transSubType | int | The subtype of transition to the next theme song |
Class member overview
Description of the class member variables.
file
DirectMusic sound in *.sgt format or MIDI file.
vol
The volume of the theme song. From 0.0 to 1.0.
loop
Enable/disable theme music looping. Disabled = 0. Enabled = 1.
reverbMix
Reverb mixing. Measured in decibels.
reverbTime
Reverberation time in milliseconds.
transType
The type of transition to the next theme song.
The list of constants for all transitions types is described in the file Scripts/System/_intern/Music.d
transSubType
The subtype of transition to the next theme song.
The list of constants for all transitions subtypes is described in the file Scripts/System/_intern/Music.d
Name features
The musical themes of the game are played depending on the game situation. By default, the theme with the _STD
(standard) suffix is played. In case of a threat, the _THR
(threat) theme will be played. During the combat the _FGT
(fight) theme plays.
Danger
Make sure that you use proper naming convention for MusicThemes and oCZoneMusic
vobs. The theme with OC_
prefix will play in a zone with name like OLDCAMP_OC
or any other ending with _OC
_DAY_
and _NGT_
determines whether the theme should be played on day or night. Tip
In G2 the C_MUSICTHEME_STANDARD
, C_MUSICTHEME_THREAT
and C_MUSICTHEME_FIGHT
prototypes are used by default.