]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/target/music.qh
Enable allowload from code too, so updating servers get it
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / target / music.qh
1 #pragma once
2
3 .float lifetime;
4
5 #ifdef CSQC
6 float music_disabled;
7 entity music_default;
8 entity music_target;
9 entity music_trigger;
10 // FIXME also control bgmvolume here, to not require a target_music for the default track.
11
12 entityclass(TargetMusic);
13 classfield(TargetMusic) .int state;
14 classfield(TargetMusic) .float lastvol;
15
16 void TargetMusic_Advance();
17
18 void Net_TargetMusic();
19
20 void Ent_TriggerMusic_Think(entity this);
21
22 void Ent_TriggerMusic_Remove(entity this);
23
24 #elif defined(SVQC)
25 void target_music_kill();
26 #endif