Xonotic
music.qh
Go to the documentation of this file.
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
float state
Definition: subs.qh:32
entity() spawn
#define classfield(name)
Definition: oo.qh:52
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition: bits.qh:8
float lifetime
Definition: music.qh:3
const int SF_MUSIC_ORIGIN
Definition: music.qh:5
#define entityclass(...)
Definition: oo.qh:47