-#ifndef BGMSCRIPT_H
-#define BGMSCRIPT_H
+#pragma once
-.string bgmscript;
-.float bgmscriptattack;
-.float bgmscriptdecay;
-.float bgmscriptsustain;
-.float bgmscriptrelease;
+#include <common/mapobjects/bgmscript.qh>
-.float just_toggled;
+float autocvar_bgmvolume;
+
+classfield(BGMScript) .float just_toggled;
+
+float bgmtime;
void BGMScript_InitEntity(entity e);
-float BGMScript(entity e);
-#endif
+float doBGMScript(entity e);