C_MUSICTHEME Daedalus class
Class C_MUSICTHEME describes musical themes1.
Definition
Class definition as it is defined in Scripts/System/_intern/Music.d script file.
Members
string file
DirectMusic sound in *.sgt format or MIDI file.
float vol
The volume of the theme song. From 0.0 to 1.0.
int loop
Enable/disable theme music looping. Disabled = 0. Enabled = 1.
float reverbMix
Reverb mixing. Measured in decibels.
float reverbTime
Reverberation time in milliseconds.
int 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
int 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.
-
Heavily inspired by the amazing documentation site Gothic library. ↩