Xonotic
|
Go to the source code of this file.
Macros | |
#define | CONSTANT_SPEED_DECAY |
Functions | |
void | BGMScript_Init () |
void | BGMScript_InitEntity (entity e) |
classfield (BGMScript) .float bgmscriptline | |
float | doBGMScript (entity e) |
float | GetAttackDecaySustainAmplitude (float a, float d, float s, float t) |
float | GetAttackTime (float a, float amp) |
float | GetCurrentAmplitude (entity e, float trel) |
float | GetReleaseAmplitude (float d, float s, float r, float t) |
float | GetReleaseTime (float d, float s, float r, float amp) |
float | GetTimeForAmplitude (entity e, float amp) |
Variables | |
float | bgmscriptbuf |
float | bgmscriptbufloaded |
float | bgmscriptbufsize |
#define CONSTANT_SPEED_DECAY |
Definition at line 6 of file bgmscript.qc.
void BGMScript_Init | ( | ) |
Definition at line 97 of file bgmscript.qc.
References bgmscriptbuf, bgmscriptbufloaded, bgmscriptbufsize, buf_create, fclose(), fgets(), FILE_READ, fopen(), and strcat().
Referenced by BGMScript_InitEntity().
Definition at line 116 of file bgmscript.qc.
References BGMScript_Init(), bgmscriptbuf, bgmscriptbufloaded, bgmscriptbufsize, LOG_INFOF, strcat(), strfree, strlen(), and substring().
classfield | ( | BGMScript | ) |
Definition at line 173 of file bgmscript.qc.
References argv(), autocvar_bgmvolume, bgmscriptbuf, bgmtime, drawframetime, GetCurrentAmplitude(), GetTimeForAmplitude(), stof(), and tokenize_console.
Definition at line 19 of file bgmscript.qc.
Referenced by GetCurrentAmplitude().
Definition at line 67 of file bgmscript.qc.
Referenced by GetTimeForAmplitude().
Definition at line 145 of file bgmscript.qc.
References GetAttackDecaySustainAmplitude(), and GetReleaseAmplitude().
Referenced by doBGMScript().
Definition at line 40 of file bgmscript.qc.
References max().
Referenced by GetCurrentAmplitude().
Definition at line 72 of file bgmscript.qc.
References max().
Referenced by GetTimeForAmplitude().
Definition at line 159 of file bgmscript.qc.
References GetAttackTime(), and GetReleaseTime().
Referenced by doBGMScript().
float bgmscriptbuf |
Definition at line 8 of file bgmscript.qc.
Referenced by BGMScript_Init(), BGMScript_InitEntity(), and doBGMScript().
float bgmscriptbufloaded |
Definition at line 10 of file bgmscript.qc.
Referenced by BGMScript_Init(), and BGMScript_InitEntity().
float bgmscriptbufsize |
Definition at line 9 of file bgmscript.qc.
Referenced by BGMScript_Init(), and BGMScript_InitEntity().