]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/mapobjects/target/music.qh
Basic support for winning the level in campaigns when activating a target_changelevel
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mapobjects / target / music.qh
1 #pragma once
2
3 .float lifetime;
4
5 const int SF_MUSIC_ORIGIN = BIT(2);
6
7 #ifdef CSQC
8 float music_disabled;
9 entity music_default;
10 entity music_target;
11 entity music_trigger;
12 // FIXME also control bgmvolume here, to not require a target_music for the default track.
13
14 entityclass(TargetMusic);
15 classfield(TargetMusic) .int state;
16 classfield(TargetMusic) .float lastvol;
17
18 void TargetMusic_Advance();
19
20 void Net_TargetMusic();
21
22 void Ent_TriggerMusic_Think(entity this);
23
24 void Ent_TriggerMusic_Remove(entity this);
25
26 #elif defined(SVQC)
27 void target_music_kill();
28
29 void TargetMusic_RestoreGame();
30 #endif