This page describes the functionality and use of the Music Logic, which is adaptive to game-specific needs.
Music Logic is a game-dependent module that can have several inputs to change its internal state. Those Music Signals are manually placed within game code with a single line of code.
The signals drive points of input which are processed by the Music Logic code and passed on to the MusicLogicGraph. By traversing along the MusicLogicGraph, the Music System receives commands to change themes or moods.
The Music Logic needs to be activated by one of the triggers described below. When activated, the Music System should not be used by any other code or scripted events.
There are several entities or triggers that are used to control music:
The Music Logic can be easily adapted to game specific needs:
SendMusicLogicEvent(eMUSICLOGICEVENT_PLAYER_WOUNDED);
MusicLogic.SetEvent(MUSICLOGICEVENT_ENEMY_HEADSHOT);
Game\Libs\MusicLogic\musiclogicinputs.xml (using Text Editor)