Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
music.qh
Go to the documentation of this file.
1#pragma once
2
3.float lifetime;
4
5const int SF_MUSIC_ORIGIN = BIT(2);
6
7#ifdef CSQC
12// FIXME also control bgmvolume here, to not require a target_music for the default track.
13
14entityclass(TargetMusic);
15classfield(TargetMusic) .int state;
16classfield(TargetMusic) .float lastvol;
17
19
21
23
25
26#elif defined(SVQC)
28
30#endif
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition bits.qh:8
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
float lifetime
Definition powerups.qc:23
int state
void target_music_kill()
Definition music.qc:48
void TargetMusic_RestoreGame()
Definition music.qc:85
void Ent_TriggerMusic_Remove(entity this)
entity music_trigger
Definition music.qh:11
const int SF_MUSIC_ORIGIN
Definition music.qh:5
float music_disabled
Definition music.qh:8
entity music_target
Definition music.qh:10
void Ent_TriggerMusic_Think(entity this)
void Net_TargetMusic()
void TargetMusic_Advance()
entity music_default
Definition music.qh:9
#define entityclass(...)
Definition oo.qh:52
#define classfield(name)
Definition oo.qh:57